Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Countback for Amibroker (AFL)
kesso
about 14 years ago
Amibroker (AFL)

Rating:
4 / 5 (Votes 3)
Tags:
amibroker, stop loss

Countback line

Stephane Carrasset’s Countback Line (CBL) popularized by Daryl Guppy

Screenshots

Similar Indicators / Formulas

NRTR WATR
Submitted by allexiss over 13 years ago
DODA BAND BUY SELL
Submitted by saas over 11 years ago
JMA Stoploss
Submitted by kuzukapama over 13 years ago
TSL & HL & New
Submitted by morgen over 12 years ago
Stop Loss Indicator
Submitted by nabcha over 14 years ago
ABKP Benchmark Bar
Submitted by amitabh over 14 years ago

Indicator / Formula

Copy & Paste Friendly
//* Stephane Carrasset's Countback Line (CBL) popularized by Daryl Guppy

//Refer to amibroker posting 30th December 2004 */

nR=2;

Cbl[nR]=Null;

bCBL=False;

for( i=nR; i < BarCount; i++)

{

if( (Low[i-2]<Low[i-1]) && (Low[i-1]<Low[i]) )

{

Cbl[i] = Low[i-2];

bCBL = True;

}

else if (bCBL)

{

if (Low[i] < Cbl[i-1])

{

Cbl[i] = Cbl[i-1];

bCBL = False;

}

else

{

n = nR;

minval[i] = Low[i];

breakloop= False;

for (j = 1; NOT(breakloop) && j <= i; j++)

{

if (Low[i-j] < minval[i])

{

if (n>1)

{

minval[i] = Low[i-j];

n--;

}

else

{

Cbl[i] = Low[i-j];

breakloop=True;

}

}

}

if (Cbl[i] < Cbl[i-1])

Cbl[i] = Cbl[i-1];

}

}

else

{

Cbl[i] = Cbl[i-1];

}

if (Cbl[i]==0)

Cbl[i] = Cbl[i-1];

}

Plot(Cbl,"",colorGreen,1);

Plot(C,"",-1,64);

_SECTION_END();

4 comments

1. morgen

If you can not decide ATRper and ATRMultiple, try this!
Very interesting, very good!

3. kv_maligi

Best stoploss for any kind of buy/sell signals :

Stoploss =(HHV(H,26)+LLV(L,26))/2;

Thanks
Viswanath

4. johnnypareek

@kv maligi.

Can u plez clear the formula? do you mean mean price of 26 average of highest high n low as sl

5. kv_maligi
Hi johnnypareek,

you are right, its mean price. I have used many SL such as Chandilier SL, ATR based SL and VSTOP. The best is the mean price of 26. Its one of the ichimoku components called Kiyunsen.

Thanks
Viswanath

Leave Comment

Please login here to leave a comment.

Back