//strike calculation
SetForeign("banknifty-I");
strike = 50*round (Close/50);
strike1 = Close;
format1ce = "banknifty"+VarGet("date3")+VarGet("month4")+VarGet("year3")+VarGet("strike")+"CE"; //concatenating date,month and strikeprice to create option symbol
format1pe ="banknifty"+VarGet("date3")+VarGet("month4")+VarGet("year3")+VarGet("strike")+ "PE"; //concatenating date,month and strikeprice to create option symbol
AddtextColumn(format1pe,"symbol",1);
AddtextColumn(format1ce,"symbol2",1);
AddColumn(strike,"Strike",1);
exploration - symbol is not dynamically stored barbybar instead last string value is copied to all bars.