buy order on monday not working (dayofweek=1)

Forums ProRealTime English forum ProOrder support buy order on monday not working (dayofweek=1)

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

    Hello,

    I was trying a new strategy that requires the buy order to be executed on Mondays. I have been testing the following very basic code:

    however this code does not trigger any buys, however if I use the same code and change the number of the variable “myday” to 2, 3, 4 and 5 it does triggers buy. Any reason why the buy will not be triggered on Mondays (dayofweek=1)?

    Thanks!

    #61193

    If you use it on a Daily TF you won’t get correct values, since DAYOFWEEK  refers to the candle when your trade will be entered, it works with intraday TFs.

    I suggest you use OPENDAYOFWEEK, since it always works!

     

    #61240

    Thank you! It worked!

    #184055

    I have the same problem. When I use “opendayofweek” instead “dayofweek” with opendyofweek = 1 then it works, thats true. But it opens also on Tuersday and not on Monday.  Therefore the result is the same as if i would use dayofweek = 2. But when I use opendyofweek = 0, which should refer to open a position at Monday Morning, then the result is the same like with dayofweek = 1, nothing happens.

    What could be the reason?

    Thanks

    #184058

    Keywords starting with OPEN (OpenDate, OpenTime, OpenDayOfWeek, etc…) return the Date, Time, DayOfWeek, etc… when a candle opens, otherwise data returned are those when a candle closes.

     

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