Forum

My crossover EA automatically opens another trade after hitting TP. How do I make it wait til the next crossover?

I'm new to MQL and programming and running into an issue I can't figure out. My EA opens the trade but when it hits take profit it will automatically open another trade. it doesn't wait until the next crossover. How can I make it open trade ONLY on crossovers? Here's some of my code: *** I