EA to detect when ADX line and negative Di both move up
-
Help please! Can any one help suggest the blocks and possibly how to make EA detect when ADX line and negative Di both rise above 30 so that it opens short trade and when both ADX line and positive Di line rise above 30 so that it opens long trade. I tried, but it opens only short position when both ADX and negative DI rise above 30, and opens randomly: whether ADX and Positive Di are going up or ADX and negative Di line are going up, it will open sell trade, and sometimes it will even open when both lines are below 30, why?
-
Add a shared link to look at, but by the sound of it need 2 condition blocks, 1 checking if ADX is > 30, connected to another condition checking if +Di is above 30.
-
@jpsam Both D+ and D- lines are VERY unreliable ways to use the ADX indicator. They repaint like crazy. I do not recommend using them.
-
Really? So, which indicator or what can you recommend to get result close to that? Thanks for your contribution anyway.
-
@l-andorrà what I did seems to agree with your suggestion, however, here is the project linkhttps://fxdreema.com/shared/Z6MzQT5B
-
@jstap were you able to open the shared link to my project about ADX positive and negative di? I have not fully understand how to share project link. If you couldn't open it and want to tell me how to share, I shall be grateful. Thanks
-
To have both working you need them in a line, but a cross only happens once so is unlikely to happen, so test using > or <, then when working you will need to use something like a flag to turn on/off as things happen. With the link, you need to have a space before adding.

-
Thanks, I overwhelmed by your readiness to always help me!
-
@jpsam Sorry for my late response. be ready to be disappointed with the behaviour of D+ and D- lines. Trust me, your backtest results will be different form those in forward test on demo. Sorry for bringing bad news.
