How to halt strategy during high volatility news

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9322 quote
    reihana9
    Participant
    New

    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

    #9323 quote
    Nicolas
    Keymaster
    Master

    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.

    #9324 quote
    reihana9
    Participant
    New

    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

    #9333 quote
    grizzly
    Participant
    Average

    You can add the code anywhere. You then need to add the condition to each If x then y endif order.

    Nicolas thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

How to halt strategy during high volatility news


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
reihana9 @reihana9 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by grizzly
9 years, 8 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 06/13/2016
Status: Active
Attachments: No files
Logo Logo
Loading...