Experiments in Technical Analysis

karthikmarar

Well-Known Member
Hello,

Try this AFL for absolute strength. You can incorporate volume easily.


/*Developed by Tudor Marcelin - Art Invest*/

n=Optimize("period",10,1,100,1);/*period*/

A=0;
M=0;
D=0;

for( i = 0; i < n; i=i+1 )
{

A=IIf(Ref(Close, - i)>Ref(Close, - i-1), A+(Ref(Close, - i)/Ref(Close, -
i-1))-1,A);

M=IIf(Ref(Close, - i)==Ref(Close, - i-1), M+1/n,M);

D=IIf(Ref(Close, - i)<Ref(Close, - i-1), D+(Ref(Close, - i-1)/Ref(Close, -
i))-1,D);

}
ASI=IIf (D+M/2==0, 100, 100-100/(1+(A+M/2)/(D+M/2)));


Plot(ASI,"ASI10",colorDarkBlue);

Plot(50,"",colorBlack,styleLine);
Plot(70,"",colorRed,styleLine);
Plot(30,"",colorGreen,styleLine);

GraphXSpace = 3;

Regards
Saji
Hi Saji

Seem Interesting. First check seem to indicate that this can be used as a confirmatory Indicator to avoid whipsaws..especially for Ananth's Mabiuts-HB.
Take the Buy signal only when this Indicator crosses above 70...may be one can adjust this value... This needs a through Look.. Ananth are you listening..

regards

Karthik
 

kkseal

Well-Known Member
Ahhh, Kalyan, My friend you sure are a kind man. I am pink allover…Thanks for those Kind words…
My pleasure, Karthik.

Yes , Kalyan, I have been doing some work on the inverse Transform of Stochastic. Interesting stuff, really. In fact all John Ehler’s stuff is interesting tough quite complicated. Recently got hold of his book ..”Rocket science for Traders”. But unfortunately my work is keeping me away from all these interesting stuff.

I was trying out a Trading system based IFT of stochastic with two time frames.. seems promising as a confirmatory Indicator. Will post the details a little later… need to put in a lot of explanation… without which it will as interesting as the live parliamentary session on DD.. :D
This man Ehler I must say is pretty underrated, unappreciated (in the trading field) but he's nothing short of a genius. He has located a basic flaw in the kind of data distribution we assume for the stk mkts and by transforming the distribution pattern has brought amazing changes to well known, well established indicators etc.

If you have an e-version of his book i'd request you to please upload it and post the link - perhaps in the Books section where many others will be able to see it.
Having said that there are tons of e-books i have downloaded already but don't find the time to read. There's so much to do and so little time (and least for the most interesting stuff). I can very well understand your time constraints.

One more thing Karthik. I'd suggest DON'T go into the trouble of explaining every little thing, every nitty gritty on all matters related to TA (that will make you a good samaritan, but will also eventually make this thread a burden, a liability for you). Just provide some good links (others will also add) and let people do their own learning. Later on we come back to this thread, post our doubts, seek clarifications, discuss amongst ourselves and improve on our learning. This will also distribute the 'burden' somewhat (I'm not good at teaching but i can still answer a few queries on a topic based on my knowledge and if i'm wrong there are always others to correct me). This is what i've seen in forums overseas. Here there's too much 'teaching'/spoonfeeding going on. I mean we are all adults out to make money through trading... why should anybody need to be 'taught'? (specially in this day and age when so much of info is available free). A little bit of help/direction for starters should be enough.

Keep up the University (well, at least college!) lustre of this thread Don't let it become a kindergarten school on TA.

Warm Regards,
Kalyan.
 
Last edited:

rkgoyal_98

Well-Known Member
Dear Karthi,

Thanks for instan reply.I will be watching this space for for further updates on Trading with MACD. Kindly advise the steps how to use the AFL provided in the post

Thanks

Rajeev
 

kkseal

Well-Known Member
Hell, one of my earlier post on Williams' A/D somehow got "dropped" possibly crossing with someone elses. :confused:

Will re-post later.
Here's the post that vanished mysteriously.
-------------
The concept & construction of Williams' A/D is a little different from the vintage A/D.

To calculate Williams' Accumulation/Distribution indicator, first determine the True Range High ("TRH") and True Range Low ("TRL").

TRH = Yesterday's CLOSE or today's HIGH whichever is greater
TRL = Yesterday's CLOSe or today's LOW whichever is less

Today's accumulation/distribution(Price) is then determined by comparing today's closing price to yesterday's closing price.

If today's close is greater than yesterday's close:

Today's (Price) A/D = Today's CLOSE - TRL

If today's close is less than yesterday's close:

Today's (Price) A/D = Today's CLOSE - TRH

If today's close is equal to yesterday's close:

Today's (Price) A/D = 0

For Volume weighted A/D, multiply the (Price) A/D by volume

Today's A/D = Today's (Price) A/D * Today's Volume

The Williams' Accumulation/Distribution indicator is a cummulative total of these daily values.

Williams' A/D = Today's A/D + Yesterday's Williams' A/D

---------

The above construction does not need the adjustments for certain boundary conditions necessary for the vintage A/D.

For better chartiblity the high values induced by high volumes can be reduced by dividing WAD by a suitable factor.

Regards,
Kalyan.
 

oxusmorouz

Well-Known Member
Hi Karthik,
After what you have done for the members in traderji, I'd be the most selfish person in this world if I didn't give my bit of contribution (though you may find very little of it).
If it is possible, can we discuss each indicator mentioned over a chat in traderji so that I can try my level best to code it in metastock...if possible tonight (I say tonight because you are quite active in traderji) ?
WARNING: I am an amatuer metastock coder desperately trying to learn coding. You may not find much stuff in me. Forgive me if I'm unable to do the job.

Oxymoron
 
hi karthik,
ur charts are great to look at. i know to change background to black , but i am unable to get "values" in Title in contrast. I mean i can get "title" "Chart name " in colors i want ,but not the value of title or Chart name.
pl guide
regards
 

karthikmarar

Well-Known Member
Hi ragh-ash

Please set the Background in the prefrence window to "Black" and the Axes to White... Enclosing a screen shot of my settings..

regards

Karthik
 
Last edited:

karthikmarar

Well-Known Member
Last edited:

Similar threads