String storing barbybar dynamically

//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.

image

@Srini,

For posting questions on the forum, you are required to get "Verified".

Please search for "Verified" or "Verified Badge" and follow the steps.

Also see,
how-to-use-this-site.
how-to-ask-a-good-question.

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.