Hi guys!
Could someone help me this? I am really confusing.
1.4688=OrderOpenPrice
1.4724=OrderStopLoss
0.1=OrderLots
0.1=Lots
0.0001=point
1.4724-1.4688=0.0036
int risk=0; << Put in front of below looping code.
Print(risk);
if(OrderType()==OP_SELL) risk+=((OrderStopLoss()-OrderOpenPrice())/point)*(OrderLots()/Lots);
Print(risk," ",((OrderStopLoss()-OrderOpenPrice())/point));
Print result here
2013.02.21 17:37:252008.01.02 16:08 TEST EURUSD,M1: 0
2013.02.21 17:37:252008.01.02 16:08 TEST EURUSD,M1: 35 36
Why the "risk" value return 35 but is not 36?
Thanks.
Could someone help me this? I am really confusing.
1.4688=OrderOpenPrice
1.4724=OrderStopLoss
0.1=OrderLots
0.1=Lots
0.0001=point
1.4724-1.4688=0.0036
int risk=0; << Put in front of below looping code.
Print(risk);
if(OrderType()==OP_SELL) risk+=((OrderStopLoss()-OrderOpenPrice())/point)*(OrderLots()/Lots);
Print(risk," ",((OrderStopLoss()-OrderOpenPrice())/point));
Print result here
2013.02.21 17:37:252008.01.02 16:08 TEST EURUSD,M1: 0
2013.02.21 17:37:252008.01.02 16:08 TEST EURUSD,M1: 35 36
Why the "risk" value return 35 but is not 36?
Thanks.