We are willing to HELP you when you post your attempt (using Code button) and state the nature of your problem
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, I'm working on an EA that uses envelope conditions (tick based) when to open a long/short position.
Do describe my problem better I'll explain the goal;
(5 MIN chart)
Whenever the price is below/above the channel it will open a position. This is tick based so the order wont be placed on the bar close (could be anytime (as it crosses the channel roof or floor)).
However let's say that the following 5min bar meets the condition again and if so it will open another order in the same direction as the previous.
Problem:
It opens unlimited orders on the same bar due to the tick condition (which the EA need for calculation and entry point).
Therefore, is there a way to prevent it open several orders on the same bar?
Thanks for help.