I trade longer term mechanical trading systems exclusively on the ASX. I rarely look at daily charts and the systems are built using weekly timeframes. The information in this site is based on actual trades in real portfolios. I don't trade using margin or any sort of leverage. I mainly use Amibroker for system testing and trade monitoring. I am not selling anything. This is just a journal to record where I have been and, just maybe, where I am going.
Thursday, January 04, 2007
Stochastic on price chart
The monthly chart above shows my adaptation of the stochastic plotted on the price chart.
The code I am using is as follows;
Sp = Param("stoch Period", 2, 1, 55, 1);
Lv = MA(LLV(L,Sp), 3); Hv = MA(HHV(H,Sp), 3);
midpoint = Lv+(Hv-Lv)/2;
I am not saying that it is perfect, but it gives the general idea.
The stochastic uses some averaging for the actual indicator. On the price chart the close price can go above and below the 0% / 100% lines because it isn't averaged. The price becomes the indicator!
Subscribe to:
Post Comments (Atom)
2 comments:
Do you have Metastock code too?
No I don't.
Looking at the AB code the main difference is that in MS MA is MOV and the type of moving average (in this case Simple) needs to be specified.
If you write the code I can check it for you here.
Stevo
Post a Comment