I've created a very straightforward EA. . And a system which I use in 3 Timeframe..May difficulty it doesn't stop opening and I don't wish to have 3 EA and 3 chart for a single pair. .

I want a code which would just do one order each bar per TF and still open if it's on another bar. .

Occasionally I have 3 sign in 3 different TF. . I want to have all order but I want only order each TF and I can still take another order exactly the same TF if it's still open but in another bar. .

Instance:
1 sign in 4h
1 sign in 1h but it drops in bar for 4h
1 sign in 30 min but just one bar for 1h and 4h. .

I am fine with using magicnumber

can someone help me? Thank you very much. .