Forums › ProRealTime English forum › ProOrder support › Back testing strategies › Reply To: Back testing strategies
06/26/2018 at 12:30 PM
#74420
I got it to work.
On the time code you gave me this suggests to only enter trades between 8am and 1pm, is this correct? If so how do I get it to work to only place trades between 11pm and 7am which is the NYE market for me in Australia?
1 2 3 4 5 6 7 8 |
starttime = 080000 endtime = 130000 timeok = opentime >= starttime and opentime <= endtime if timeok and (your conditions) then buy 1 contract at market endif |