Forums › ProRealTime English forum › ProOrder support › trading on specific days of the month › Reply To: trading on specific days of the month
07/30/2019 at 1:54 PM
#103804
This will only buy the first Friday of any month (not tested):
|
1 2 3 4 5 6 7 8 9 10 |
Once TradeOn = 0 If TradeOn = 0 and Not OnMarket Then If openmonth <> openmonth[1] Then TradeOn = 1 Endif Endif If TradeOn and opendayofweek = 4 and MyConditions Then Buy 1 contract at market TradeOn = 0 Endif |
edit Tested on DAX 1min and it works as expected, replace 4 with 1 to 5 as needed