I will be back testing and optimizing on a basket of 5 Futures contracts. My problem is that I don't want the same session template to be used on all the instrument in the basket. Is there some way to reference the current instrument that is being back tested so that I can create my own custom session templates in the strategy code so that not all instruments are taking trades on the same session template. For example:
If(Instrument == "ES 12-06" && ((Time[0].DayOfWeek == DayOfWeek.Monday) && (ToTime(Time[0]) >= ES-starttime)) && ((Time[0].DayOfWeek == DayOfWeek.Monday) && (ToTime(Time[0]) <= ES-endtime)))
{
ES-cantrade = true;
}
Thanks
Ash

Comment