Forum

OrderModify error 1 (trailing stop)

Hello, I have a problem related to the trailing stop , if I use it less than 15 PIPS it returns this error ----- OrderModify error 1 Please , does anyone know how to fix it in the code because I want to work with lower levels of trailing stop . void TrailingStops() { for ( int i = 0 ; i <

Errors during compilation

Please , I would like some help for errors that are happening when time compile the EA, I'm not getting correct ERROR -> ')' - not all control paths return a value double countprofit( int mode){ double profit= 0 ; if ( OrdersTotal ()> 0 ){ for (i= OrdersTotal ()- 1 ;i>= 0 ;i--){