daysForbiddenEntry – ASX

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48095 quote
    Andre Vorster
    Participant
    Senior

    Hello.

    I don’t want a strategy to run on Thursdays and Fridays on Australia ASX.
    When I insert the code “not daysForbiddenEntry” in to the strategy it still runs on Thursdays and Fridays. Yet when I use the same code on DAX then it does not open trades on Thursdays and Fridays.

    I assume it has to do with the difference in time zones.
    PRT platform and computer is set to UTC +2.

    How do I fix this please?
    Not just for ASX but for any other time zone.

    Sure most of you here knows this but for those that don’t know –
    Not all strategies performs well on all the days. One have to analyse the results in a spreadsheet to exclude some days.

     

    Thank you.

    #48407 quote
    Nicolas
    Keymaster
    Master

    ProBacktest will always use the instrument time zones, whatever custom trading hours you have set on your chart. So to compare what is the current days of your chart and what ProBacktest is reading from the server, you could try to add this line in your code:

    graph dayofweek
    Andre Vorster thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

daysForbiddenEntry – ASX


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/03/2017
Status: Active
Attachments: No files
Logo Logo
Loading...