Nanningbob 10.2 Autotrader's new home

Share your 10.x automated traders here.
Post Reply
jlcgarcia

Re: Nanningbob 10.2 Autotrader's new home

Post by jlcgarcia »

Hi,

a solution for the magic number generator would be to replace the following sentence:

Code: Select all

/---------------------------------------------------------------------
//---------------------------------------------------------------------
// GenMagic function
// @desc    Generates a unique magic number (hash)
// @param   string   suffix   additional suffix to create different magics for different style trades       
// @return  int               returns the unique magic number
int GenMagic(string suffix="")
{	int m;

//   string s=Symbol()+"_"+suffix;
   string s=StringConcatenate(AccountNumber(),"_",suffix);

Because this will generate the same number for all charts.

Regards

José Luis
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Re: Nanningbob 10.2 Autotrader's new home

Post by matt_32 »

Is it just me or sometimes when this EA opens a trade it leaves the take profit blank (0) and I have to manually reload the EA in order to fix it?

Matt
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
hopfi2k
Trader
Posts: 35
Joined: Tue Nov 15, 2011 11:03 pm
Location: Germany

Re: Nanningbob 10.2 Autotrader's new home

Post by hopfi2k »

José,

Thanks for your proposal. Having the same number for all the charts can be dangerous though. The EA wouldn't be able anymore to distinguish which trade has been opened by itself and which one by another EA or another instance of the EA. This will maybe sooner than later result in complete random results.

Cheers,
Andy

jlcgarcia wrote:Hi,

a solution for the magic number generator would be to replace the following sentence:

Code: Select all

/---------------------------------------------------------------------
//---------------------------------------------------------------------
// GenMagic function
// @desc    Generates a unique magic number (hash)
// @param   string   suffix   additional suffix to create different magics for different style trades       
// @return  int               returns the unique magic number
int GenMagic(string suffix="")
{	int m;

//   string s=Symbol()+"_"+suffix;
   string s=StringConcatenate(AccountNumber(),"_",suffix);

Because this will generate the same number for all charts.

Regards

José Luis
worlock
Trader
Posts: 20
Joined: Thu Apr 26, 2012 7:57 pm

Re: Nanningbob 10.2 Autotrader's new home

Post by worlock »

One thing that I think should be looked at, is that the EA is opening the same trade again the moment it gets stopped out or even exits at TP. This week I had this happening on USCAD, EURUSD, EURCAD, EURAUD, EURGBP and GBPJPY.
Somehow we should have a filter not to take same trades again, or a filter by time like some other EAs in this forum.
User avatar
philcs65
Trader
Posts: 18
Joined: Thu Dec 01, 2011 7:45 am
Location: California

Re: Nanningbob 10.2 Autotrader's new home

Post by philcs65 »

worlock wrote:One thing that I think should be looked at, is that the EA is opening the same trade again the moment it gets stopped out or even exits at TP. This week I had this happening on USCAD, EURUSD, EURCAD, EURAUD, EURGBP and GBPJPY.
Somehow we should have a filter not to take same trades again, or a filter by time like some other EAs in this forum.

Same thing happened to me (eurjpy). Logged in almost 100 trades before I could stop it. Good news, demo account plus made about 150 pips!
Huuummmmm..That's Interesting.
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: Nanningbob 10.2 Autotrader's new home

Post by cuzgeorge »

worlock, phil,
is it possible to have a screen pic of the offending ea showing the verbose on the left side, and possibly a set file.
also, if you manage to look up the 'expert' tab or 'journal' if anything abnormal was showing. Sometimes you would get an error, or was it a normal condition where the ea would buy and sell as if it were meant to do that.

the abovementioned would give al3xx and anyone troubleshooting this a better idea.
I thought those days were over for this ea and i'd like to take a look at this myself. maybe i can re-create the problem.

you might not be infront of your screen when it happens but it would be helpfull if you could catch this info.

thanks,
cuzgeorge
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
User avatar
alorente
Trader
Posts: 358
Joined: Sat Aug 25, 2012 8:47 am

Re: Nanningbob 10.2 Autotrader's new home

Post by alorente »

cuzgeorge wrote:worlock, phil,
is it possible to have a screen pic of the offending ea showing the verbose on the left side, and possibly a set file.
also, if you manage to look up the 'expert' tab or 'journal' if anything abnormal was showing. Sometimes you would get an error, or was it a normal condition where the ea would buy and sell as if it were meant to do that.

the abovementioned would give al3xx and anyone troubleshooting this a better idea.
I thought those days were over for this ea and i'd like to take a look at this myself. maybe i can re-create the problem.

you might not be infront of your screen when it happens but it would be helpfull if you could catch this info.

thanks,
cuzgeorge
I think they mean it opens the trade again because the conditions are still valid. I don´t think this is a code problem. The EA is doing what it is supposed to.

I actually think this is a plus. For example, I am trying out a TP of 22 pips (20 pips plus spread). On trend trades, it pockets the 20 pips and opens the trade again. As the trend continues it keeps putting away the additional 20 pips, so you can´t lose them as is the case in a retracement and a larger TP. Sometimes, when you get a retracement, it will reenter the trade and you can make the 20 pips all over again. It´s pretty cool.
Observation is the path to discovery.
worlock
Trader
Posts: 20
Joined: Thu Apr 26, 2012 7:57 pm

Re: Nanningbob 10.2 Autotrader's new home

Post by worlock »

alorente wrote:
cuzgeorge wrote:worlock, phil,
is it possible to have a screen pic of the offending ea showing the verbose on the left side, and possibly a set file.
also, if you manage to look up the 'expert' tab or 'journal' if anything abnormal was showing. Sometimes you would get an error, or was it a normal condition where the ea would buy and sell as if it were meant to do that.

the abovementioned would give al3xx and anyone troubleshooting this a better idea.
I thought those days were over for this ea and i'd like to take a look at this myself. maybe i can re-create the problem.

you might not be infront of your screen when it happens but it would be helpfull if you could catch this info.

thanks,
cuzgeorge
I think they mean it opens the trade again because the conditions are still valid. I don´t think this is a code problem. The EA is doing what it is supposed to.
You are correct. The trade would still be valid according to the conditions. But if the EA does this, then there is no point in having a pre determined TP or SL.
User avatar
freereed
Trader
Posts: 19
Joined: Sat Nov 19, 2011 10:01 pm
Location: UK

Re: Nanningbob 10.2 Autotrader's new home

Post by freereed »

alorente wrote: I think they mean it opens the trade again because the conditions are still valid. I don´t think this is a code problem. The EA is doing what it is supposed to.

I actually think this is a plus. For example, I am trying out a TP of 22 pips (20 pips plus spread). On trend trades, it pockets the 20 pips and opens the trade again. As the trend continues it keeps putting away the additional 20 pips, so you can´t lose them as is the case in a retracement and a larger TP. Sometimes, when you get a retracement, it will reenter the trade and you can make the 20 pips all over again. It´s pretty cool.
I think that's a really neat idea alorente, if you don't mind losing the spread each time. Are you running a side-by-side demo with 'normal' parameters to compare them? Please do share the results down the line...
User avatar
alorente
Trader
Posts: 358
Joined: Sat Aug 25, 2012 8:47 am

Re: Nanningbob 10.2 Autotrader's new home

Post by alorente »

freereed wrote:
alorente wrote: I think they mean it opens the trade again because the conditions are still valid. I don´t think this is a code problem. The EA is doing what it is supposed to.

I actually think this is a plus. For example, I am trying out a TP of 22 pips (20 pips plus spread). On trend trades, it pockets the 20 pips and opens the trade again. As the trend continues it keeps putting away the additional 20 pips, so you can´t lose them as is the case in a retracement and a larger TP. Sometimes, when you get a retracement, it will reenter the trade and you can make the 20 pips all over again. It´s pretty cool.
I think that's a really neat idea alorente, if you don't mind losing the spread each time. Are you running a side-by-side demo with 'normal' parameters to compare them? Please do share the results down the line...
The problem is, when you try to run it as you would normally, the EA keeps getting you back in, so you really can´t set a reasonable TP. Still, thanks to this problem, I hit on my system which I really like. The spread is less than you would lose with price moving repeatedly back and forth over the same range.
I may try 12 pips TP next.
Observation is the path to discovery.
Post Reply

Return to “10.x EA forum”