How can I set time filter?
-
Hi, I'm new to this service. I'm currently developing a night scalper for testing, and I need some help. I want to open a Buy/Sell order when the price touches the Bollinger Band at -2σ, but only between 23:00 and 23:59. I've attached my script to this question. The script should filter by time, check for the Bollinger Band touch, and then open the Buy/Sell order. However, some trades are opening at exactly 23:00 without touching the Bollinger Band at ±2σ. How can I fix this?



-
Hi pharmlatex,
Use a cross 'x>' not a '>'. Also on Metatrader never use Candle ID 0. -
Hi Frosties,
Thanks to your kind advice, I was able to fix the EA, and it is now running as expected. Thank you!