Turn of Month Seasonality

Optuma Forums Optuma Scripting Turn of Month Seasonality


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #65135
    • Topics: 22
    • Replies: 5
    • Posts: 27

    Hi ,

    I want to do a trade testing using turn of month( i.e buying on 26th and selling on 5th), can someone  please help me how to go about it


    • Topics: 5
    • Replies: 521
    • Posts: 526


    You can use the DayNum() function if you wish to specify a Buy / Sell signal based on a date only.


    For the 26th for example you would use:

    And for the 5th…

    Keep in mind, that on a Trading Day chart where weekends and holidays are skipped, there is not always a 26th or 5th that occurs.

    • This reply was modified 6 months ago by Matthew.
    Jeffrey A.
    • Topics: 49
    • Replies: 72
    • Posts: 121

    I figured out a trick when I was doing similar research in the tester..

    Lets say you want the 26th as your entry date however it might fall on a weekend like Matthew said, which will then skip to the next month.

    Instead of it entirely skipping, maybe the following day was a Monday and it can enter then. Here is how to “Buy the next available date”


    2 users thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest