I made a mistake, the complete code that gives absurd results is:

Buy =   Close > 15
        AND Close > Ref( HHV(  Close , 250 ) , -1 )
        AND Volume > 100000;

Sell =  Close < MA(  Close , 100 );

PositionSize = -1.5 * BuyPrice/(2*ATR(20));

ApplyStop( stopTypeLoss, stopModePoint, 2 * ATR( 10 ), True );


Sorry!

Reply via email to