MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 A B C D E F G H I J K L M N O P R S T U V W Y Z #

Elder's Impulse by Jose Silva
In Dr Alexander Elder's book "Entries and Exits", he discusses "The Impulse System".
When MACD Histogram and EMA are both rising, the price bar is coloured green. When they are falling, the price bar is coloured red. When they diverge, the price bar is blue. When green, go long or stand aside. When red, go short or stand aside. When blue, go long or short. A man named John Bruns programmed the Impulse System for several popular software packages.

Question: is there an addon available for Metastock Pro 9.2? Or, can this be programmed by me within the existing software?

Elder's Impulse by Jose Silva

{ Dr Elder's Impulse system interpretation v1.1}
{ Plot signals on own window below daily chart }
{ http://www.elder.com/MetaStock/Impulse.htm }
{ http://www.metastocktools.com }

{ Variables user-input }
pdsNoEntry:=Input("No entry x periods from last exit",0,21,5);
pdsW:=Input("Weekly EMA periods",1,520,13)*5;
pdsD:=Input("Daily EMA periods",1,252,13);
pdsShort:=Input("Shorter MACD periods",
1,252,12);
pdsLong:=Input("Longer MACD periods",2,2520,26);
pdsSignal:=Input("MACD trigger signal periods",
2,252,9);

{ Indicators }
EmaW:=Mov(C,pdsW,E);
Mac:=Mov(C,pdsShort,E)-Mov(C,pdsLong,E);
MacTrig:=Mov(Mac,pdsSignal,E);
Hist:=Mac-MacTrig;

{ System logic }
Out:={EmaW<Ref(EmaW,-1)
AND Hist<Ref(Hist,-1);
In1:=EmaW>Ref(EmaW,-1)
AND Hist>Ref(Hist,-1);

{ System signals }
Init:=Cum(In+Out>-1)=1;
InInit:=Cum(In)=1;

{ Plot }
0;signals

Source / From: TOP
http://www.metastocktools.com
http://forum.equis.com/viewtopic.php?t=4122

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.