PLZ ... I Need UR Help ( top urgent )

#1
Hi Everyone,

Can you help me to have the right formula of the condition below, to write it as expert Advisor :


Condition is:

when the current close becomes higher than the high Candle's of the (SAR) indicator see attachment . Thx.

 
D

darsh_goswami

Guest
#2
what is the logic behind ur SAR ?

Stop And Reverse ?

Post the formulle for SAR , will give u an indicator based on it. I dont have anything in my metastock named as SAR.

Regards,..
Darsh
 
#3
what is the logic behind ur SAR ?

Stop And Reverse ?

Post the formulle for SAR , will give u an indicator based on it. I dont have anything in my metastock named as SAR.

Regards,..
Darsh
Dear Darsh,

Many Thanks for your fast reply.

The SAR Idicator is (Parabolic SAR) and the formulle is:

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

------------------
Also

BUY


a:=SAR( 0.08, 0.80 )>CLOSE;
b:=SAR( 0.08, 0.80 )<CLOSE;

state:=If(BarsSince(a)<BarsSince(b),1,0);

state<Ref(state,-1)

Sell


a:=CLOSE>SAR( 0.08, 0.80 );
b:=CLOSE<SAR( 0.08, 0.80 );

state:=If(BarsSince(a)<BarsSince(b),1,0);

state<Ref(state,-1)

---------------
Also

Buy
Cross(C,SAR(.02,.2))

Sell
Cross(SAR(.02,.2),C)​
 
D

darsh_goswami

Guest
#4
U can also try Cross function.
for eg. Cross(close,sar( 0.02, 0.20 ));

regards,..
Darsh
 
#5
U can also try Cross function.
for eg. Cross(close,sar( 0.02, 0.20 ));

regards,..
Darsh
Dear Darsh ,

Still you miss understand what I want to say...

Again...


I need formula which gives me sign when the current close higher than the high of the candles of SAR sign.

Close> high of candles SAR​
 

AJAY

Active Member
#6
Dear SS,

Hope this is what yoou want. Please try.

Cross(C,ValueWhen(1,Cross(H,SAR(.02,.2)),H))

And in your picture you were asking for a symbol on the bar that is next to the Close cross bar. If you want a symbol there, then you please replace "C" in the above formula with "Ref(C,-1)".

If this doesn't serve your purpose, please post back again with further clear description.

Happy practicing technicals

Ajayakumar
 

Similar threads