Dear BR,

Thanks, and sorry that I was not specific enough.

With the formula you sent me, the line-graph of RSI is in a single (blue) color. And the color of the 'colordots' is brightgreen when there is an uptrend in RSI and red when there is a downtrend. I wanted to know how I can make color of line-graph to be green when the colordots are green and to be red when colordots are red. I might want to retain the colored liine-graph and the colored colordots, or I might want to retain one of these two colored, I want the option.

Thank you, and with best regards,

Vinay



On Tue, 13 Apr 2010 18:58:57 +0530, reinsley <[email protected]> wrote:

>
>
> Sorry, you have to be more specific about the word upswing.
>
> I give you an example of a colored trix you could adapt to your need.
> This upswing of the trix does not follow your definition of a swing, of
> course.
>
> BR
>
> |// TRIX colored and ribbon
>
>
> periods = Param( "Periods", 5, 2, 200, 1 );
> trixclassic= Trix( periods );
> uptx = trixclassic> Ref( trixclassic, -1 );
> dntx = trixclassic< Ref( trixclassic, -1 );
> Colortx = IIf( trixclassic> Ref( trixclassic, -1 ), *colorGreen*, IIf(
> trixclassic< Ref( trixclassic, -1 ), *colorRed*, *Null* ) );
>
> Plot( trixclassic, "Trix (" + periods + ")" , Colortx, *styleThick* );
>
> // Trix's ribbon
>
> Ribbon = IIf( uptx , *colorBrightGreen*, IIf( dntx , *colorRed*,
> *colorBlue* ) );
> Plot( 3, "", Ribbon , *styleOwnScale* | *styleArea* | *styleNoLabel*, 0,
> 100 );
>
> *GraphXSpace* = 10;|
>
> Le 13/04/2010 14:33, Vinay Gakkhar a écrit :
>> 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
>>
>>
>>
>>
>>
>

Reply via email to