Codes for not opening trades at month end

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • #175916

    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

    There you go (not tested):

    Use TradeON to enter a new trade.

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

     

    2 users thanked author for this post.
    #175921

    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

    Link to code above added as Log 303 here …

    Snippet Link Library

    2 users thanked author for this post.
    #175928

    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