Respected All Members & Seniors
Pls modify the above afl........
_SECTION_BEGIN("Donchian Channel");
// Plots a 34 period <span class="h4dlw02vm" id="h4dlw02vm_6">Donchian channel</span>
pds=34;
DonchianUpper =HHV(Ref(H,-1),pds);
DonchianLower = LLV(Ref(L,-1),pds);
DonchianMiddle = (DonchianUpper+DonchianLower)/2;
Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianMiddle,"DM",colorGreen,styleLine);
Plot(DonchianLower,"DL",colorRed,styleLine);
_SECTION_END();
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
PLEASE CHANGE THE ABOVE AFL WITH BELOW CODE......
****
BUY = CLOSE THE CANDLE ABOVE UPPER BLUE LINE
COVER = CLOSE THE CANDLE ABOVE MIDDLE GREEN LINE
SELL = CLOSE THE CANDLE BELOW LOWER RED LINE
COVER = CLOSE THE CANDLE ABOVE MIDDLE GREEN LINE
****
BUY
SELL
SHORT
COVER
*****
WARM REGARDS
CHINMAY
Pls modify the above afl........
_SECTION_BEGIN("Donchian Channel");
// Plots a 34 period <span class="h4dlw02vm" id="h4dlw02vm_6">Donchian channel</span>
pds=34;
DonchianUpper =HHV(Ref(H,-1),pds);
DonchianLower = LLV(Ref(L,-1),pds);
DonchianMiddle = (DonchianUpper+DonchianLower)/2;
Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianMiddle,"DM",colorGreen,styleLine);
Plot(DonchianLower,"DL",colorRed,styleLine);
_SECTION_END();
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
PLEASE CHANGE THE ABOVE AFL WITH BELOW CODE......
****
BUY = CLOSE THE CANDLE ABOVE UPPER BLUE LINE
COVER = CLOSE THE CANDLE ABOVE MIDDLE GREEN LINE
SELL = CLOSE THE CANDLE BELOW LOWER RED LINE
COVER = CLOSE THE CANDLE ABOVE MIDDLE GREEN LINE
****
BUY
SELL
SHORT
COVER
*****
WARM REGARDS
CHINMAY
Last edited: