don't open a trade if...
-
Hi everybody,
I need that my EA doesn't execute a trade while a certain condition happens.
So I explain for example: I want that a trade is open once RSI cross 50, but I want that the EA doesn't execute trades if RSI cross 70 and 30. I need this to avoid a trade if RSI cross 2 values on the same bar (for example 50 and 70 valute or vice versa). Thanks for your help -
use 3 conditions one after another
RSI x> 50
RSI < 70
RSI > 30 -
Hi miro Thank you very much for your kind reply, but it is not enough because also if I do this, the trade will open. In fact if I give a condition where rsi must be below 70 and cross below 50, anyway the cross of 2 values can happens during the same bar. I attach you a detail where you can see that also if RSI is below 70 and cross below 50, the EA open a trade. In a few words I need that RSI cut only the 50 value I tried also to use "Indicator moves within margins" but I have the same result. For this I need that the EA doesn't open a trade if RSI cross 70 or 30 level in any case. If you have an idea to solve this problem I will be really grateful. Thank you anyway for your suggestion
bye
L

-
use more conditions also with candle ID ... if you take first candle (the closed one, not current, current have ID 0) than ID is 1, for second closed is ID 2 ...
RSI[1] x< 50
RSI[1] > 30
RSI[2] < 70and opposite:
RSI[1] x> 50
RSI[1] < 70
RSI[2] > 30or any other combinations with Candle ID you can combine and come to the result ...
-
Thank you very much Miro. And what about the trailing stop? I set it as explained in FxDreema examples but it doesn't works. Also if the price touch the point of my trailing stop the trade doesn't close and often goes negative for me. Thank you again for your reply.
Bye
L.