avoiding vacation-time trading

Forums ProRealTime English forum ProOrder support avoiding vacation-time trading

Viewing 3 posts - 1 through 3 (of 3 total)
  • #86194

    Hi there,

    I noticed that my code will not work well during holidays or short days such as this last Thanksgiving half days.

    Is there a command to let the program know to skip half days or vacation days (days taht IG may be still trading on futures but the market is out)

    Thanks in advance

     

     

    #86204

    You can skip any date of your choice simply by coding it in to your strategy as a condition. The same with time.

    Make sure you actually have the candle time in your chosen time frame – for example there is no 233000 candle in an hourly chart.

    If it is the same date every year that you want to avoid then you can do something like this:

     

    1 user thanked author for this post.
    #86261

    ok thanks,

    I was kind of hoping there was some Database with vacation dates that can be used so i won’t have to hard coded it anew each year.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login