next lot to go order.

 

i have a problem, every time when i push an order, if it hits my Stop Loss value example ...

FOR BUY order..

if (Bid<=setted_loss_point){

push_close = OrderClose(enter_Ticket_number,OrderLots(),Bid,Slippage,Blue);

}

then i get a return

profit_value = OrderProfit();

from the above close order.

i success get the profit which is : - 0.35

problem is.... i will do a martingale strategies to next order. assume i wanted to go order for "Buy" and i need to i place next lot which i loss last order is -0.35,

QUESTION: how can i turn the value which is -0.35 to 0.35, so that i can put in to next lot order.

it is a negative value... i need a positive value to put in next order.... help...

 
 

Or less precisely y = (x-(2*x));


:-)

CB

Reason: