Does anyone know what code to put in an EA so that it does not trigger multiple trades on each bar?
For example on an EA that uses 4 HR bars, how do you tell it to trade only once per each 4 hour bar. Instead of re-entering again after a stop or take profit is hit.
I would like to have it trade only once on per 4 hour bar if the entry signal is met. Instead of re-entering again multiple times on the same bar after each exit.
Thanks in advance.
For example on an EA that uses 4 HR bars, how do you tell it to trade only once per each 4 hour bar. Instead of re-entering again after a stop or take profit is hit.
I would like to have it trade only once on per 4 hour bar if the entry signal is met. Instead of re-entering again multiple times on the same bar after each exit.
Thanks in advance.