Hello,

This formula will help you.

Best regards

|//Title = "SAR On RSI";

/////////////////Plot RSI//////////////////////

Plot( RSI(14), "RSI", *colorBlue*, *styleThick* );

P = ParamField("Price field",-1);

oldo = *O*; oldh = *H*; oldl = *L*; oldc = *C*; oldv = *V*;

*O* = *H* = *L* = *C* = p;
sar_flexible = SAR();

*O* = oldo; *H* = oldh; *L* = oldl; *C* = oldc; *V* = oldv;

/* split the plotting to green for upswing and red for downswing */
//Single Plot, 2 colours
Plot( sar_flexible, "Up SAR", IIf( sar_flexible > Ref(sar_flexible,-1), *colorGreen*,*colorRed* ), *styleDots* | *styleNoLine* |*styleThick* );

//OR for 2 plots
/*
Plot( IIf( sar_flexible > Ref(sar_flexible,-1),sar_flexible,Null), "UpSAR", colorGreen, styleDots | styleNoLine |styleThick ); Plot( IIf( sar_flexible > Ref(sar_flexible,-1),Null,sar_flexible),"Down SAR", colorRed, styleDots | styleNoLine |styleThick );
*/
*GraphXSpace* = 5;|

Le 13/04/2010 06:23, Vinay Gakkhar. a écrit :
I need help from knowledgeable members of the forum to answer my following question.

I use the following exploration to plot SAR for price acceleration.

accel = Param("Acceleration", 0.02, 0, 1, 0.001);
mx = Param("Max. acceleration", 0.2, 0, 1, 0.001);
f_sar = SAR(accel,mx);
colordots = IIf(f_sar < L,colorBrightGreen,IIf(f_sar > H,colorRed,colorWhite));
SetBarsRequired(-2,-2);
SetChartOptions(0, chartShowDates);
Plot(f_sar,"\nf_sar", colordots,styleDots|styleNoLine);

How can I plot price SAR?
How can I plot RSI SAR?
How can I plot MFI SAR?
How can I plot other technicals/ fundamentals in a similar manner of stop-and-reverse?

Thank you.

vgakkhra





Reply via email to