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

my trend indicator for Amibroker (AFL)

Rating:
3 / 5 (Votes 6)
Tags:
amibroker, trend
I have developed this indicator myself and is using for last one year . It is giving very good results in live trading when you dont know when the trend will end . Trade in direction of indicator and hold your position till indicator flattens or reverses . If it flattens , then it is assumed that no much steam is there in counter trend . If it reverses , then talke a reverse position .

Similar Indicators / Formulas

Trend Following Indicator
Submitted by trek almost 14 years ago
Seasionality
Submitted by saiflingkon almost 13 years ago
PROFIT TRADING SYSTEM
Submitted by Muralikrishna over 10 years ago
An n bar Reversal Indicator
Submitted by kaiji about 14 years ago
Vertical Horizontal Filter
Submitted by mahesh.aranake about 14 years ago
TrendChart v2.0 by rmike
Submitted by rmike about 14 years ago

Indicator / Formula

Copy & Paste Friendly
r1 = PDI(14);
r2 = MDI (14);


Period = Param("Period",20,1,100,1);
TI = WMA( 2*WMA((r1-r2),int(Period/2))- WMA((r1-r2),Period),int(sqrt(Period)));



for( i = 1 ; i < BarCount-2; i++ ) 
{
if (TI[i] <TI[i-1] &&TI[i] <TI[i+1])
 Lpml[i]=1; 
else
Lpml[i] =0;

if (TI[i] >TI[i-1] &&TI[i] >TI[i+1])
 Lpmh[i]=1;
else
Lpmh[i] =0;
}

GR =ExRem(LpmH,Lpmh);
RD =ExRem(Lpml,Lpml);

Plot( TI, _DEFAULT_NAME(), ParamColor( "Color", colorBlue ), ParamStyle("Style") );

13 comments

1. dineshpal

Excellent results on back testing. Thanks for sharing it.

2. navin

Hi
in which time frame it give max
navin….

3. rajeevranjan51

Hi , Can you pls give me the limit like it should be in which range .

Like if it will go above 30-40 then oversold and it suppose to come back lke this. As such indicator looks very good .

Thanks for sharing.
Rajeev

4. hmsanil

Hi,

Please elaborate how to use the indicator for live trading.

Thanks

Sudha

5. tsarvjit

Rajeev , it works in all time frames . In case of equities , it can go upto 50 level and in indexes , i have seen it to go upto 40 level .That is my experince and i would like to share your experience . Regarding its use for live trading -—- I hold my position till it is going up or down . But it may turn flat a little later than the price tops or bottoms.That is only for a few points .But when it reverses , one should take an opposite position , too , for a good profit.I have seen it fail only once in one year , when price was moving in a channel upwards and slowly. But lower time frame confirmed the movement .

6. Shailendra-0

HI “Tsarvjit” IT LOOKS A GOOD & SMOOTH INDICATOR TO ME . GREAT WORK BUT IT IS CONFUSING … SO IF YOU COULD EXPLAIN ….

IS IT POSSIBLE TO ADD BUY SELL ARROWS TO THIS INDICATOR? IF NOT KINDLY EXPLAIN US HOW DO YOU USE IT PARAM SETTINGS FOR ANY MOSTLY TRADED COMMODITY /STOCK. OR YOU CAN MAIL ME THE DETAILS TO SHAAN_1000@YAHOO.CO.IN ….THANX IN ADVANCE.
7. adhi

Hi, This indicator is very very good. I never expect this type of performance. Really Very good.

Thank you very much “Tsarvjit” .

8. velmont

it will be good if the style will be line with dots

9. velmont

it will be good if the style will be line with dots

10. velmont

i had tried something hope u ol like it

r1 = PDI;
r2 = MDI (14);
OverBought = Param(“Over Bought Line”,64,0,100,1);
OverSold = Param(“Over Sold Line”,-64,-100,0,1);
ColOB = ParamColor(“Over Bought Color”,colorRed);
ColOS = ParamColor(“Over Sold”,colorGreen);

Period = Param(“Period”,20,1,100,1);
TI = WMA,int(Period/2))- WMA,Period),int(sqrt(Period)));

for( i = 1 ; i < BarCount-2; i++ )
{
if (TI[i] <TI[i-1] &&TI[i] <TI[i+1])
Lpml[i]=1;
else
Lpml[i] =0;

if (TI[i] >TI[i-1] &&TI[i] >TI[i+1])
Lpmh[i]=1;
else
Lpmh[i] =0;
}

GR =ExRem(LpmH,Lpmh);
RD =ExRem(Lpml,Lpml);

Plot( TI, _DEFAULT_NAME(), ParamColor( “Color”, colorBlue ), styleLine,styleDots );
Plot( TI, _DEFAULT_NAME(), ParamColor( “Color”, colorBlue ), styleHistogram,styleDots );
Plot(OverBought,“OB Line”,ColOB,8+16);//|styleNoLabel);//8+16
Plot(OverSold,“OS Line”,ColOS,8+16);//|styleNoLabel);

11. sk_bala82

hi tsarvjit, nice indicator.. thank u very much for sharing such a good stuff

12. johnnypareek
velmont,

Have u checked ur ver of this afl? Is it plotting?

13. velmont

change this line

r1 = pdi(14);

Leave Comment

Please login here to leave a comment.

Back