Forum

Order not stopped on TP, please help!

Hi! Sometimes on some indicators when price hits TP it doesnt close order, it just goes until next SL... i think that something in my code is wrong, but i cannot figure out what...can you help me? my EA: //+------------------------------------------------------------------+ //|

Trix indicator EA zero divide error

Hi i am keep getting zero divide error on my EA with Trix indicator. can you help me? Indicator is attached below and this is my EA: //+------------------------------------------------------------------+ //| test.mq4 | //|

Custom indicator help

I have been trying to add a custom BB_PRC-1 indicator in my Ea, it gets displayed but the values of the lines are empty. Indicator works fine, and displays correct values in data window. But when i try to get values with iCustom i get 0 or EMPTY values for both lines... can you help me? My code is

ATR trailing stop modify order error 1

Hi! Why am i getting modify order error 1 here? void TrailStops(){ double ATR = iATR ( NULL , 0 , 14 , 0 ); double TrailingStop = ATR * 2 ; for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { OrderSelect (i, SELECT_BY_POS, MODE_TRADES); if ( OrderSymbol()== Symbol () ) { if (OrderType()

EA custom indicator problem beginner

My custom indicator looks similar to this it has 3 bands, and i am trying to code EA to set long position if bar close price crosses middle band up or is above middle band, but below upper band I tried different logic in my if statement with no luck. closest results i got is with current code where