The one strange thing that occurs in the previouse code is the exit time. I want to exit @ 1245 but with 15 min bars setting exittime to >=1244 results in an exit at 1300 so I had to use the previous 15 min bar and set exittime to 1229...
Not sure I understand why that happens.
Sid |