Distance Check Function - Need help!
-
Hi guys, im having trouble trying to achieve a particular function in my EA.
I will need to explain the rules of the EA for you to understand.-------- Trade Setup (Sell Trade) Example -------
[1] Bullish Candlestick over 5 pips, (Candlestick 1)
[2] Next Candle also Bullish above 3 pips (Candlestick 2)
[3] Wait for price to move atleast 20 pips bullish away from the close of the first candle (Candlestick 1)
[4] Now enter sell trade once RSI crosses below 70 level.
[5] Take profit level set to the close of the first candle (Candlestick 1)I feel like i have achieved Step [1] and [2] .. This issue i have is with the 'check distance' feature and how to enter a trade on the RSI crossover, only once price has moved atleast 20 pips away.
Does anybody have any idea's for this? Thanks in advance!
-
@highmoose Can you please share teh link to your project?
-
-
@l-andorrà Thank you. The link is below.
https://fxdreema.com/shared/Lvm8esqkb
This is currently just for a sell trade which is as described in the first post (y)
I was thinking that the best way would be to draw a chart line once the first 2 candlesticks have been confirmed, and then use the chart line in the 'check distance' block. But i am probabaly way off.
-
@highmoose You need to change all condition blocks on the left from 'the price, as is' to 'as price fraction' option.
-
@l-andorrà Great, i have done that.
I am still having an issue with the check distance block not functioning correctly as it is not placing any trades.
Once candlestick 1 and 2 have been confirmed, i need a way to make it wait until price has moved a minimum of 20 pips, and then enter the Sell trade on the RSI crossing below the 70 level.
Sorry, i am fairly new to this. Im still learning

-
@highmoose Can you please share the link to the latest version?
-
@l-andorrà Here you go.
-
I have managed to fix this! Thank you for your help.
-
@highmoose Congrats! Good for you.

-
@Highmoose i have the same check distance
problem right now could you share a link how you solve it?