Number of trading days per month

Forums ProRealTime English forum ProOrder support Number of trading days per month

Viewing 4 posts - 1 through 4 (of 4 total)
  • #120103

    Hello,

    In order to create a strategy based on seasonality, I would like to graph a variable that returns the number of trading days per month without including sunday candles.

    I can return with the following code the number of trading days including sundays. I have tried to add a “elsif dayofweek=2 then c1=c1” but it doesn”t work.

    Can someone help me?

    Magifina

     

    #120104

    Try this:

     

    #120105

    Thanks for your quick answer Vonasi. I have found the solution. In fact openday <>0 must be replace by dayofweek <> 2 in order to work.

     

    #120106

    Sorry – I just realised my typo – we need to use OPENDAYOFWEEK and not OPENDAY. Sunday is OPENDAYOFWEEK zero.

    Better to check the open day rather than the day as if there is a bank holiday monday it will mess things up and you will count a Sunday.

     

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

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