MSA5678 sir,
That I learnt from your previous thread that how to calculate BUY/SELL and Targets from calculator...
I was asking about HOW to identify BUY or SELL levels and then Target levels on CHART ???
You had given afl for GANN levels to display on chart and there are 2 levels (lines) below and above the VWAP line...I wanted to know that these below and top 2 lines are for BUY or SHROT levels and Targets (ON CHART as per your afl)???
Hope I am clear to you in asking my question ???
Bhupesh
OK my friend, You need that AFL. OK here it is.
----------
----------
------------
_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("BA", 5148.06,0,6500,0,0);
B2 = ParamList( "B2", "4813,4830,4848,4865,4883,4900,4918,4935,4970,4988,5023,5041,5059,5077,5094,5112,5130,5148,5166,5184,5220,5274,5293,5311,5366,5384,5421,5439,5458,5476,5495,5513,5532,5550,5569,5588,5625,5644,5663,5681,5700,5738,5757,5776,5814,5833,5871,5891,5910," );
B1 = StrToNum( B2 ) ;
//B1 = Param("BA", 5148.06,0,6500,0,0);
//Plot( B3,"B1",colorGreen,styleLine);
Plot( B1,"B1",colorGreen,styleLine);
//Plot( B1+0.2,"B1",colorGreen,styleLine);
//Plot( B1-0.2,"B1",colorGreen,styleLine);
Plot( B1+15.6,"B1",colorBlue,styleDashed);
Plot( B1+33.8,"B1",colorBlue,styleDashed);
Plot( B1+52.1,"B1",colorBlue,styleDashed);
Plot( B1+70.5,"B1",colorBlack,styleDashed);
Plot( B1+70.7,"B1",colorBlack,styleDashed);
Plot( B1+70.3,"B1",colorBlack,styleDashed);
///////////// Supports ///////////////
Sa2 = ParamList( "Sa1", "4796,4813,4830,4848,4865,4883,4900,4918,4970,5006,5023,5041,5059,5077,5094,5112,5130,5148,5166,5202,5256,5274,5293,5347,5366,5402,5421,5439,5458,5476,5495,5513,5532,5550,5569,5606,5625,5644,5663,5681,5719,5738,5757,5795,5814,5852,5871,5891,");Sa1 = StrToNum( Sa2 ) ;
//Sa1 = Param("Sa1", 5130.14,0,6500,0,0);
Plot( Sa1,"Sa1",colorRed,styleLine);
//Plot( Sa1+0.2,"Sa1",colorRed,styleLine,styleNoLabel);
//Plot( Sa1-0.2,"Sa1",colorRed,styleLine,styleNoTitle );
Plot( Sa1-15.6,"Sa1",colorBrown,styleDashed);
Plot( Sa1-33.9,"Sa1",colorBrown,styleDashed);
Plot( Sa1-52.1,"Sa1",colorBrown,styleDashed);
Plot( Sa1-70.4,"Sa1",colorBlack,styleDashed);
Plot( Sa1-70.6,"Sa1",colorBlack,styleDashed);
Plot( Sa1-70.2,"Sa1",colorBlack,styleDashed);
//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);
GfxSetBkMode(1);
GfxSelectPen( colorBlack, 1, 0) ;
GfxSelectSolidBrush( colorPink );
GfxRoundRect( 3, 3, 250, 65, 9, 9 ) ;
GfxSelectFont("Courier New", 9, 700 );
GfxTextOut(" VWAP - BANDS ", 25, 10);
//GfxTextOut((WriteIf(Buy , "Last Buy Trigger at : "+C+" ", "")), 25, 45);
//GfxTextOut((WriteIf(Sell , "Last Sell Trigger at : "+C+" ", "")), 25, 45);
GfxTextOut("Current Price : " + C, 25, 25);
GfxTextOut(" " +Date() , 25, 45);
_SECTION_BEGIN("Price1");
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();
_SECTION_BEGIN("Price2");
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();
_SECTION_BEGIN("Price3");
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();
-----------------
------------------
------------------
This AFL is fully customised. You just need to select BA and SB from the dropdown in the Parameters Box. The AFL will plot all the values.