Forum

TrailingStop doesn't modify only Sell orders

void ATRTrailingStop() { double ATR = NormalizeDouble ( iATR ( Symbol (),ATRTRSPERIOD,ATR_Period, 0 )*Trailing_ATR_Multiplier, 3 ); RefreshRates(); for ( int i= OrdersTotal ()- 1 ; i>= 0 ;i--) { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol ())

iCustom problem with multiple instances

Hello, I'm newbie on the coding expert advisor and try to do some thoughts. I have a problem at the start of my first project . I want to use the data of an indicator that have been coded before and just prepare statements for orders. However I can't get and data and could't find and solution. I'm