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 #

MACD w. Kase Dev Stops Expert
 

MACD w. Kase Dev Stops Expert

Highlights - Long

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=1

Highlights - Short

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=-1


SYMBOLS - Enter Long

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=1 AND Ref(State,-1)<1 {EL}


SYMBOLS - Enter Short

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=-1 AND Ref(State,-1)>-1 {ES}


SYMBOLS - Close Long

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=0 AND Ref(State,-1)=1 {CL}


SYMBOLS - Close Short

RWH:=(H-Ref(L,-30))/(ATR(30)*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(ATR(30)*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val4:=If(Pk>0,HHV(H-AVTR-3*SD,20),LLV(L+AVTR+3*SD,20));
Val3:=If(Pk>0,HHV(H-AVTR-2*SD,20),LLV(L+AVTR+2*SD,20));
Val2:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val1:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
EL:= (Mov(MACD(),9,E)<MACD()) AND (Val3<C);
CL:= (Val3>C) OR ((Mov(MACD(),9,E)>MACD()) AND Val3>C);
ES:= (Mov(MACD(),9,E)>MACD()) AND (Val3>C);
CS:= ( (Val3<C)) OR ((Mov(MACD(),9,E)<MACD()) AND Val3<C);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND
PREV=-1),0,PREV))));
State=0 AND Ref(State,-1)=-1 {CS}

 

 
Source / From: TOP
http://members.fortunecity.co.uk/trendtakipcisi/index.html

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!