Codes for not opening trades at month end

Forums ProRealTime English forum ProOrder support Codes for not opening trades at month end

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 5 posts - 1 through 5 (of 5 total)
  • #175916 Report

    Hi,

    Is there a code that tell your algo not to open any trade at month end?  Month-end here will mean the last business day of the month and not the last day of the month.  Thank you.

    #175920 Report

    There you go (not tested):

    Use TradeON to enter a new trade.

    EOM only recognizes regular weekend days, not National, Bank, Labor holidays, etc…

     

    1 user thanked author for this post.
    #175921 Report

    Thanks Roberto!  I was just thinking maybe need to hard-code a set of specific dates to tell the algo not to trade on those dates but the algo that you have suggested is awesome!  Thank you!

     

     

    #175922 Report

    Link to code above added as Log 303 here …

    Snippet Link Library

    1 user thanked author for this post.
    #175928 Report

    Yes, you can certainly add any date not to be traded in addition to EOM.

    Usually holidays are known well before Jan. 1st.

     

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

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