# Metastock language help

#### Ropewalker

##### Member
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

#### chheda

##### Member
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

#### mkshekar

##### Member
Hi can anybody let me know how to explore and find stocks that give SAR signals? I need the formula to copy and paste.and also the commentary.thank you

#### sachin divase

##### Member
mkshekar said:
Hi can anybody let me know how to explore and find stocks that give SAR signals? I need the formula to copy and paste.and also the commentary.thank you

SYNTAX sar( STEP, MAXIMUM )

FUNCTION Calculates the predefined Parabolic SAR indicator.

EXAMPLE sar( 0.02, 0.20 )

close>sar( 0.02, 0.20 )
for sell
close<sar( 0.02, 0.20 )