Wich is the way to go optimizing session range? i mean, how i can optimize sessionStart sessionEnd, could you give some example code?.
At the beginning of your start() procedure put something like :
That will prevent execution at times outside the desired session
You could use broker or local time too for that purpose but in that case back-testing might become problematic. To use broker time do it the following way :
and for local time use this :
Thanks mladen,wich is the correct approach to do not have problems in backtesting/optimizing?Best,Vince.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.