Dear Reinsley,

Many thanks for your help.

Just one question. How can I get the RSI plot, instead of in a single color, in 
one color (green) when upswing, and in another color (red) when downswing?

Best regards,

vgakkhar

On Tue, 13 Apr 2010 16:50:26 +0530, reinsley <[email protected]> wrote:

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


------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to