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 #

Divergence Formulas
I've seen many divergence formulas written for MetaStock, but in my opinion,
none of them work well. Here, I'll present a divergence formula for MetaStock using RSI(14) and the close. I'll also introduce another divergence formula, which I call double successive divergence (DSD).


Divergence Formula


EKA:=3;
I1:=Zig(RSI(14),EKA,%)>Ref(Zig(RSI(14),EKA,%),-1) AND
Ref(Zig(RSI(14),EKA,%),-1)<Ref(Zig(RSI(14),EKA,%),-2);
V1:=ValueWhen(1,I1,Ref(Zig(RSI(14),EKA,%),-1));
V2:=ValueWhen(1,I1,Ref(C,-1));
V3:=ValueWhen(2,I1, Ref(Zig(RSI(14),EKA,%),-1));
V4:=ValueWhen(2,I1,Ref(C,-1));
C1:=V1>V3 AND V2<V4 ;
C1 AND Ref(C1,-1)=0 AND RSI(14)>Ref(RSI(14),-1)

 


Double Successive Divergence

I1:=Zig(RSI(14),3,%)>Ref(Zig(RSI(14),3,%),-1) AND
Ref(Zig(RSI(14),3,%),-1)<Ref(Zig(RSI(14),3,%),-2);
V1:=ValueWhen(1,I1,Ref(Zig(RSI(14),3,%),-1));
V2:=ValueWhen(1,I1,Ref(C,-1));
V3:=ValueWhen(2,I1, Ref(Zig(RSI(14),3,%),-1));
V4:=ValueWhen(2,I1,Ref(C,-1));
V5:=ValueWhen(3,I1, Ref(Zig(RSI(14),3,%),-1));
V6:=ValueWhen(3,I1,Ref(C,-1));
C1:=V1<V3 AND V2>V4 AND V3<V5 AND V4>V6 ;
C1 AND Ref(C1,-1)=0 AND RSI(14)>Ref(RSI(14),-1)

 

With these formulas, RSI(14) may be replaced by other indicators such as CCI, OBV, and so on. In addition, the time frame may be extended from min to years. If readers find these formulas useful, next time I'll introduce some others using fractals. --Siannas Christos, S&C reader.
Source / From: TOP
http://www.traders.com

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.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!