Ropewalker said:
Hi,
Need some help with Metastock language. If I want to make an expert whereby sell is interpreted as - "The First Big Black Candle after a Stoch & Stoch MA crossover" how do I write it?
Thanks,
Ropewalker
Hi Ropewalker ,
Goto MetaStock -> Tools -> Indicator Builder -> New
Copy and paste formula
Name : STOCH WITH BigBlackCandle
Formula :
E1:= BigBlack();
X1:= Stoch(5,3) > Mov( Stoch(5,3), 3, S );
CHKE1:=Cum(E1)-ValueWhen(1,X1=1,Cum(E1));
ART1:=If(E1=1 AND Ref(CHKE1,-1)=0 , 1 , 0);
E2:=CHKE1=1 AND Stoch(5,3) < Mov( Stoch(5,3), 3, S );
CHKE2:=Cum(E2)-ValueWhen(1,X1=1,Cum(E2));
ART2:=If(E2=1 AND Ref(CHKE2,-1)=0 , 2 , 0);
ART2
Harish Chheda