Ploting Level manually - AFL
Note : AFL corrected. As AFL posted earlier was not accepting maximum values beyond 100.
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
///////////// Resistance ///////////////
B1 = Param("Buy Avove", 5148.06,0,6500,0,0);
Plot( B1,"R1",colorGreen,styleLine);
R1 = Param("Resistance 1", 5163.43,0,6500,0,0);
Plot( R1,"R1",colorBlue,styleLine);
R2 = Param("Resistance 2", 5181.40,0,6500,0,0);
Plot( R2,"R2",colorBlue,styleLine);
R3 = Param("Resistance 3", 5199.41,0,6500,0,0);
Plot( R3,"R3",colorBlue,styleLine);
R4 = Param("Resistance 4", 5217.45,0,6500,0,0);
Plot( R4,"R4",colorYellow,styleLine);
///////////// Supports ///////////////
Sa1 = Param("Sell Below", 5130.14,0,6500,0,0);
Plot( Sa1,"Sa1",colorRed,styleLine);
s1 = Param("Support 1", 5114.8,0,6500,0,0);
Plot( s1,"S1",colorPink,styleLine);
s2 = Param("Support 2", 5096.93,0,6500,0,0);
Plot( s2,"R2",colorPink,styleLine);
S3 = Param("Support 3", 5079.41,0,6500,0,0);
Plot( S3,"S3",colorPink,styleLine);
s4 = Param("Support 4", 5061.29,0,6500,0,0);
Plot( s4,"s4",colorYellow,styleLine);
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
///////////// Resistance ///////////////
B1 = Param("Buy Avove", 5148.06,0,6500,0,0);
Plot( B1,"R1",colorGreen,styleLine);
R1 = Param("Resistance 1", 5163.43,0,6500,0,0);
Plot( R1,"R1",colorBlue,styleLine);
R2 = Param("Resistance 2", 5181.40,0,6500,0,0);
Plot( R2,"R2",colorBlue,styleLine);
R3 = Param("Resistance 3", 5199.41,0,6500,0,0);
Plot( R3,"R3",colorBlue,styleLine);
R4 = Param("Resistance 4", 5217.45,0,6500,0,0);
Plot( R4,"R4",colorYellow,styleLine);
///////////// Supports ///////////////
Sa1 = Param("Sell Below", 5130.14,0,6500,0,0);
Plot( Sa1,"Sa1",colorRed,styleLine);
s1 = Param("Support 1", 5114.8,0,6500,0,0);
Plot( s1,"S1",colorPink,styleLine);
s2 = Param("Support 2", 5096.93,0,6500,0,0);
Plot( s2,"R2",colorPink,styleLine);
S3 = Param("Support 3", 5079.41,0,6500,0,0);
Plot( S3,"S3",colorPink,styleLine);
s4 = Param("Support 4", 5061.29,0,6500,0,0);
Plot( s4,"s4",colorYellow,styleLine);
Note : AFL corrected. As AFL posted earlier was not accepting maximum values beyond 100.
Last edited: