Advanced Support Resistance And Trendlines Afl

Amibroker AFL for plotting Trend Lines automatically.
Trend Lines are one of the most useful tool in identifying areas of Supports & Resistance. It takes time to learn in plotting Trend lines in a more professional way.
This AFL code helps a lot in marking important trend lines. New users can benefit a lot in learning the process of marking and plotting trend lines with the help of this AFL.
Copy the Code from the below Code Box. You may refer to the image below the code box to look how the Trend lines plotted by this AFL look on the price chart.
There is a substantial risk of loss associated with trading in Stock Markets. Losses can and
will occur. No responsibility for loss occurred to any person acting or refraining to act as a result
of using the AFL written by their respective creators and published in this Blog for sharing of knowledge can be accepted by the Blog owner.


Advanced support resistence and trendlines afl. Thread starter vijayanscbe; Start date Nov 9. I hav created a new afl which draw supp/resis line and trend line. Naturally, support and resistance do not always stop the price from continuing a trend. Breakouts can provide high probability trading signals as well. The conventional technical analysis says: The more often the price reaches a certain level of support or resistance, the stronger it becomes. Major Support Resistance Trend Line. Big Move Catcher Paid AFL For Free. Colorful MACD Buy Sell Signals. KBL Paid Amibroker AFL. MACD Crossover Buy Sell Arrow. Aug 29, 2014 Prices respect a trend line, or break through it resulting in a massive move. Drawing good trend lines is the MOST REWARDING skill. The problem is, as you may have already experienced, too many false breakouts. You see trend lines everywhere, however not all trend lines should be considered. You have to distinguish between STRONG and WEAK trend. Advanced Support Resistance And Trendlines Afl Ms Word Bangla Font Jukto Borno Free Download Lagu Bond Victory Virtual Crash Bit Torrent Fwsim Keygen Download Mac Quicktime Can't Open Mov File Online Movie Watch.org Thadayam Qhsusbdload Driver Samsung Galaxy S2 15.

Auto Support Resistance advance trend lines for Amibroker (AFL)


_SECTION_BEGIN('Advanced Trend Lines');
function GetXSupport(Lo, Percentage, Back)
{
return ((BarCount - 1) - LastValue(TroughBars(Lo, Percentage,Back)));
}
function GetYSupport(Lo, Percentage, Back)
{
return (LastValue(Trough(Lo, Percentage, back)));
}
function GetXResistance(Hi, Percentage, Back)
{
return ((BarCount - 1) -LastValue(PeakBars(Hi, Percentage, Back)));
}
function GetYResistance(Hi, Percentage, Back)
{
return (LastValue(Peak(Hi, Percentage, Back)));
}
function TD_Supply(P)
{
return ( P > Ref(P, 1) AND P > Ref(P, -1) AND P > Ref(C, -2));
}
function TD_Demand(P)
{
return ( P < Ref(P, 1) AND P < Ref(P, -1) AND P < Ref(C, -2));
}
////////////////////////////////////////////////////////////////////////
//Parameters
Percentage = Param('Percentage', 1.5, 0.01, 100. ,0.01);
DrawAllLines = ParamToggle('Draw All Lines?', 'No|Yes');
Lines = Param('Lines?', 1, 1, BarCount-2);
DrawR = ParamList('Resistance Points', 'Off|High to High|High to Low', 1);
DrawS = ParamList('Support Points', 'Off|Low to Low|Low to High', 1);
ShowTDP = ParamToggle('Show TD Pionts', 'No|Yes', 1);
AllOrDownR = ParamToggle('Resistance Direction', 'All|Down');
AllOrUpS = ParamToggle('Support Direction', 'All|Up');
ShowSR = ParamToggle('Show Vert S/R','No|Yes', 1);
SRPer = Param('S/R Percentage', 3, 1);
SRBack = Param('S/R Back', 5, 1);
str = ';
Res = Sup = 0;
Con = 1;
////////////////////////////////////////////////////////////////////////
Main = C;
Con = ConS = ConR = 1;
if(DrawS'Low to Low')
{
Support1 = L;
Support2 = L;
}
else
{
Support1 = L;
Support2 = H;
}
if(DrawR'High to High')
{
Resistance1 = H;
Resistance2 = H;
}
else
{
Resistance1 = H;
Resistance2 = L;
}
////////////////////////////////////////////////////////////////////////
//Plotting Area

Advanced Support Resistance And Trendlines Aflevering

Plot(Main, ', IIf(C>O,colorGreen, colorRed), styleCandle);
if(DrawAllLines)
for(i = 2; i<=Lines+1; i++)
{
if(DrawS!='Off')
{
x0 = GetXSupport(Support1, Percentage, i);
x1 = GetXSupport(Support2, Percentage, i-1);
y0 = GetYSupport(Support1, Percentage, i);
y1 = GetYSupport(Support2, Percentage, i-1);
x = LineArray(x0, y0, x1, y1, 1);
if(AllOrUpS) ConS = StrToNum(NumToStr(y0 < y1));
if(Con AND ConS)
Plot(x, ', IIf(LastValue(C) < LastValue(x), colorBlue,colorBlue),
styleLine|styleThick);
}
if(DrawR!='Off')
{
x0 = GetXResistance(Resistance1, Percentage, i);
x1 = GetXResistance(Resistance2, Percentage, i-1);
y0 = GetYResistance(Resistance1, Percentage, i);

Auto Trend Line With Buy And Sell Signal Support Resistance

y1 = GetYResistance(Resistance2, Percentage, i-1);
x = LineArray(x0, y0, x1, y1, 1);
if(AllOrDownR) ConR = y0 > y1;
if(Con AND ConR)
Plot(x, ', IIf(LastValue(C) < LastValue(x), colorRed,colorRed),
styleLine|styleThick);
}
}
else
{
if(DrawS!='Off')
{
x0 = GetXSupport(Support1, Percentage, Lines+1);
x1 = GetXSupport(Support2, Percentage, Lines);
y0 = GetYSupport(Support1, Percentage, Lines+1);
y1 = GetYSupport(Support2, Percentage, Lines);
x = LineArray(x0, y0, x1, y1, 1 );
Sup = LastValue(LinRegSlope(x, Lines+1));
if(AllOrUpS) ConS = y0 < y1;
if(Con AND ConS)
Plot(x, ', IIf(LastValue(C) < LastValue(x), colorBlue,colorBlue),
Advanced support resistance and trendlines aflamstyleLine|styleThick);
}
if(DrawR!='Off')
{
x0 = GetXResistance(Resistance1, Percentage, Lines+1);
x1 = GetXResistance(Resistance2, Percentage, Lines);
y0 = GetYResistance(Resistance1, Percentage, Lines+1);
y1 = GetYResistance(Resistance2, Percentage, Lines);
x = LineArray(x0, y0, x1, y1, 1 );
Res = LastValue(LinRegSlope(x, Lines+1));
if(AllOrDownR) ConR = y0 > y1;
if(Con AND ConR)
Plot(x, ', IIf(LastValue(C) < LastValue(x), colorRed,colorRed),
styleLine|styleThick);
}
str = 'nR Slope=('+Res+'), S Slope=('+Sup+')';
}
if(ShowTDP)
{
PlotShapes(TD_Supply(H)*shapeSmallCircle, colorRed, 0, H, H*.001);
PlotShapes(TD_Demand(L)*shapeSmallCircle, colorGreen, 0, L, -L*.001);
}
if(ShowSR)
{
for(i=1; i<=SRBack; i++)
{
x0 = GetXSupport(L, SRPer, i);
x1 = BarCount-1;
y0 = GetYSupport(L, SRPer, i);
x = LineArray(x0, y0, x1, y0, 0);
Plot(x, ', IIf(LastValue(C) > x, colorDarkGreen, colorDarkRed),
styleLine|styleDashed|styleThick);
x0 = GetXResistance(H, SRPer, i);
y0 = GetYResistance(H, SRPer, i);
x = LineArray(x0, y0, x1, y0, 0);Aflevering
Plot(x, ', IIf(LastValue(C) > x, colorDarkGreen, colorDarkRed),
styleLine|styleDashed|styleThick);
}
}
Title =FullName()+' ({{NAME}})n{{DATE}}n'+'Open: '+O+', Hi: '+H+', Lo: '+L+',Close: '+C+StrFormat(' (%.2f %.2f%)', C-Ref(C, -1), SelectedValue(ROC(C,
1)))+str;

Advanced Support Resistance And Trendlines Aflam

_SECTION_END();