Hey chaps,
Wondering if there’s a way to halt a trading strategy during high impact news, ensure trades are closed prior to it and that the system resumes after a set period of time after this news?
Thanks
Hi,
Another member (Andres) have posted something relevant to avoid NFP each month:
If Day<8 and DayOfWeek=5 then
DiaDatoEmpleoUSA=1
Else
DiaDatoEmpleoUSA=0
Endif
But you can also setup yourself the date and hours of any other high impact news in variables and then test their conditions to allow trade or not.
Thanks for the incredibly swift response. You’ll have to excuse me, I’m getting to grips, how do you add the code you just produced into the current code? Can it simply be added onto the end of existing?
Thanks
You can add the code anywhere. You then need to add the condition to each If x then y endif order.