Okay so far I've been looking for a great ADX strategy so I can auto trade it but I need it to be exactly how I would manual trade it. The way I would trade with ADX is to have the DMI and ADX match in periods and then when the dmi+ is above the dmi- AND the ADX has turned up from below 20 I would buy and the same thing with the ADX for sells it must turn up from below 20 but dmi's of course are vice versa the buy. I exit when ADX turns down from above 20. It is probably a simple code or it may already be developed but it will greatly help if I can have this strategy to fully backtest it, thanks for all you guys here at fxcodebase