Hello,

I don't understand the behaviour when I TRADE my code.

I have a loop:

while(Name = (loop(Assets)))

{ if(assetType(Name) != FOREX)
continue;
asset(Name);
if ( NumOpenShort<3){

StopFactor=1;
TakeProfit=15*PIP;
Stop=30*PIP;
enterShort();

}

if (NumOpenLong<3){

StopFactor=1;
TakeProfit=15*PIP;
Stop=30*PIP;
enterLong();

...And that's is all...but MT4 and Zorro close without SP or without TP.
I set TICKS and no more.

Maybe I need to set any var more ??

Why the reason ?

Thanks in advance

Last edited by sdelatorre; 06/27/18 20:57.