Testing a period without a few months
Author: mrsic
Creation Date: 10/20/2015 2:05 PM
profile picture

mrsic

#1
Hello,

I'm now testing a period in data range from 1997-2015. I like to test the same period but without June, July, August and September. I'm not a programmer, I'm just try to learn it.
I did find in the QuickRef. DateTimeToBar. Does anyone know is that the right one and how it works.

CODE:
Please log in to see this code.


I think i must this embed above of GetTradingLoopStartBar. Is that right?

CODE:
Please log in to see this code.



greetings
damir
profile picture

Cone

#2
Follow this design (added to the basic code template) to eliminate the possibility of entering trades during those months. It stores the month in an integer variable and adds a condition to test the month for the entry logic; statements (1) and (2)

CODE:
Please log in to see this code.
profile picture

mrsic

#3
Cone

Thanks a lot.

This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).