formula:
x = cumulative pips range of highs and lows of 14 candles before last trade open price / 14
after that the x is rounded
purpose:
ea place trade at latest price then i want the ea to place trade again if the price change nearby x pips away from the last trade open price (can be same or opposite direction from the last trade).
question:
How to do this? What blocks and algorithm can be used? Especially to calculate average pips range of highs and lows before trade open price so the ea can get value and then check if range of trade open price to the last price is equal or nearby the value.
proposal:
i need help please, i tried but i can't make it happen yet.