Condition - Limit distance away from MA
-
Hi,
I had explore and know how to open a trade when my candle open/close if X number of pips away from a MA using the "Adjust" as below:
Question how do I set a condition: if my current candle AKA Candle 0 is X number of pips away from MA, do not trade?
E.g If my candle close above MA > 10 pips trade but if > 10 pips but exceed 30 pips - DO not trade. I need the Do not exceed condition.Please help. Thank you
-
Try this:

Please note that this condition means that if price is BELOW MA+30 pips the it will pass to the next block (buy now for example). If price is ABOVER that value it will not pass, so there will not be a trade.
-
Hi @l-andorrà ,
Thank you for your response. The above will not work as I need the Candle to be above MA to open a buy trade. Meaning it has to be > MA but yet the distance between the opening candle and the MA cannot be more than 30 pips.
I tried using your concept but using "Ask" or "Bid" price and it works well

Thank you
Update - the above does not work accordingly. I misinterpreted the result
-
You're welcome.
-
Hi @l-andorrà ,
If you can help again.
What i need here is
Candle 0 open below Movin average- I want a sell. This is simple so it done.
- I want it to sell only if it is below a certain pip e.g 10 - You recommendation will works - Done
- I only want to sell if it is below BUT not exceeding 30 pips below. - This is the part i dont know how to set this limit.
Thank you
-
Can you please share your project? That will be way easier than describing something I cannot see.
-
Search on this
It helped me
Calculating distance in Pips / ticks from the High or Low of a candle to the 50 ma level