Forum

Orderstotal()<1) for specific pair, chart or magicnr

Hi, I am stuck for a week on this problem: I have the same EA (can easily give it different magic nr's) on like 7 pairs. I do not want the ea open a position when there is already a position open on that particulair pair. I searched a lot on orderstotal, bools, magicnr's et etc. Finally I get

How to insert a time interval for opening orders in EA?

Hi all, I would be very gratefull if someone could help me by advising how to implement a snippet of code in order to let my ea have an interval of a certain period between opening positions. So I want it to never open more tahn one position at a given time. Let's say 20 seconds So now it operates