Forums ProRealTime English forum ProOrder support Strategy DayOpen Straddle for DAX Reply To: Strategy DayOpen Straddle for DAX

#84334

Still working on it.. A problem though,

I want to skip the first 2 weeks every year since those two are bad for trading.

Does PRT support week-numbers perhaps?

 

I want to make it optional to exclude those days.

How should I code this most efficiently?

If you add the code below, and add trading=0 to the buy criteria, it doesn’t work.