"once per day" bar problems
-
Hi All,
I am trying to insert the "once per day" block into my EA. My EA works fine and then when I insert the once per day block it doesn't take any trades.
This is a sample of my EA (not the real one but close enough). It has a number of conditions then right before the buy/sell order I'm putting the "once per day" block.
https://fxdreema.com/shared/kIQmV4LWI played around by changing a number of different variables but haven't had any luck. I got it to take a trade on one pair, but not on any others 1 time.
Any suggestions or wisdom from the forum would be greatly appreciated.
-
What do you exactly want? The first crossing of that day or any one crossing per day?
-
The condition isn't very important. I have a set of conditions that work exactly how I want. That EMA is just a piece of my EA. My problem lies within the once per day box. When I add it doesn't work. Is there anything special that needs to be done for that to work?
-
You can use this structure:
https://fxdreema.com/shared/ZuFjm07Dc
You can put as many conditions as required before both buy/sell blocks. I created a constant to define the moment at the end of the day from wich all trades should be closed and no new trades should be open until tomorrow.