Please help with the condition below with illustration
-
Hi,
I have a similar post here: https://fxdreema.com/forum/topic/9057/condition-limit-distance-away-from-ma
and i have cracked my head a few days on this but really stuck. I have inserted a picture to better explain my requirement. How do i achieve the part that the trade will not execute (Sell) if it is too far away from the MA. Please help.
Thank you
-
-
Hi @Xfire
Thank you for your response. But the condition you suggest doesnt work and i think the reason is because
- The condition MA > than Candle is fulfilled and as long as the MA is higher than Candle after giving the candle a 40 pips grace it will execute So if lesser than 40 it won't. But what i need is, I dont want the trade to execute if it exceed 40 pips. If the candle close is away from the MA.
-
Please don't duplicate threads. Let's do the following. Plase list ALL conditions in the EXACT order for a trade to be open. Just a buy, for example. I mean:
- Position of the open/close of candle ID 0.
- Position of MA 1.
- Position of MA 2.
- etc...
-
@traderea6 Hi! Maybe the "check distance" option can help you.
I give you an example:
If distance of candle close >Greather than 40 pips from the MA then no trade.
-
-
@traderea6 OK you should try to solve your issue with change samples
the example working when MA is above candle and candle is less than 40 pip near MA
maybe 1 pip or 39 pip
just try and say to me what happened

-
@xfire said in Please help with the condition below with illustration:
@traderea6 OK you should try to solve your issue with change samples
the example working when MA is above candle and candle is less than 40 pip near MA
maybe 1 pip or 39 pip
just try and say to me what happened

Shouldn't block 15 in your screenshot read like +40 pips instead of just +40 ?
-
@trader-philipps Yes +40 pips. I just wrote logic
-
I will tested following your screenshot but trade are still open outside of the limit. I will stick to using the distance since it is working and easier to understand.
Thank you

