ADX CROSS EA-Help

 

Could somebody please help with the idea for the adx cross ea. I have attached a sample ea system and would like for the system to buy back the open order at the next adx cross instead of at a buy stop.ie: i have sold at negative cross and would like to buy back at the next positive cross. Thnx in advance