+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Guppy Count Back line

The Guppy Count Back Line, an essential element in Amibroker AFL, utilizes historical price data from the Amibroker data feed to calculate a moving average that adapts to market conditions. This AFL helps traders gauge trend momentum and possible reversals by plotting the Count Back Line on the chart. Its dynamic nature allows for flexibility in adjusting to shifts in market behavior. Traders use this tool alongside other indicators to validate trends, enhancing their trading strategies.

/_SECTION_BEGIN("GUPPY COUNT BACK long");

MASK= ParamStyle("MASK",styleCandle, maskPrice);
barcolor = IIf(C > Ref(C,-1), ParamColor("Up Color",colorBrightGreen), IIf(C ==Ref(C,-1),colorOrange, ParamColor("Dn Color",colorOrange))); 
Plot( C, "Close", barcolor,MASK);

H1=0;
L1=0;
H2=0;
L2=0;
H3=0;
L3=0;


for( i = BarCount-20; i < BarCount; i++ ) 
{ 
if(L[i]L1 AND H[j]>H1)
{ L2=L[j];H2=H[j] ;L2bar=j;
for( k = L2bar-20; k < L1bar; k++ ) 
{
if(L[k]>L2 AND H[k]

Open chat
1
Hi, how can I help you?