Month1 = NumToStr(Month(),1.0);
Year1 = NumToStr(Year(),1.0);
//Symbol2 = IIf(DateNum()>1171131 && DateNum()<1180101,
if(MONTH1=="10" && Year1=="2,018")
{
Symbol2= StrFormat("Apple");
}
if(MONTH1=="8" && Year1=="2,018")
{
Symbol2= StrFormat("IBM");
}
Here if the selected month by me using the cursor is august 2018 , my reference symbol is IBM whereas if the Selected month by me using the cursor is Oct 2018, my reference symbol is Apple , can i write some code to do backtesting that when the month is October 2018 , it uses the reference symbol as Apple and when the Month is August 2018 , it uses the reference symbol as IBM