Read the documentation for Plot and use one of styleOwnScale or 
styleLeftAxisScale for one of the Plots such that it does not share the same 
scale as the other.

http://www.amibroker.com/guide/afl/afl_view.php?id=114

Mike

--- In [email protected], Infinity Home Loans <infynh...@...> wrote:
>
> Hi,Can someone please help with combining the two formulas into one without 
> distorting the chart view.
> Regardsinfinity
> --- On Sat, 17/7/10, bharat <bharat_parth2...@...> wrote:
> 
> From: bharat <bharat_parth2...@...>
> Subject: [amibroker] Re: Combining RSI custom and Divergence indicator
> To: [email protected]
> Date: Saturday, 17 July, 2010, 8:46 AM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
>   
> 
> 
>     
>       
>       
>       Hi
> 
> 
> 
> Still facing same problem.
> 
> 
> 
> I want BB and RSI and OBV on same chart but when I insert code for RSI,chart 
> gets compressed.How to see BB and RSI in same chart window without distorting 
> the view?
> 
> 
> 
> --- In [email protected], reinsley <reinsley@> wrote:
> 
> >
> 
> > 
> 
> > It works fine. Custom RSI followed by Divergence in the same formula.
> 
> > 
> 
> > Best regards
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > Le 16/07/2010 16:42, infynhome a écrit :
> 
> > > _SECTION_BEGIN("Custom RSI");
> 
> > > /*
> 
> > > Based on the book "Technical Analysis for the Trading Professional
> 
> > >
> 
> > > ...
> 
> > > */
> 
> > > Version(5.00);
> 
> > > SetChartBkGradientFill( ParamColor("Backgroud Top Color",
> 
> > > colorSeaGreen),ParamColor("Background Bottom Color", colorSeaGreen));
> 
> > >
> 
> > > periods = Param( "Periods", 14, 1, 200);
> 
> > >
> 
> > > Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", 
> 
> > > colorDarkBlue ),
> 
> > > ParamStyle("Style") );
> 
> > >
> 
> > > ShowMarket = ParamToggle("Bull Or Bear Market", "Bear|Bull");
> 
> > >
> 
> > > Plot(40,"",colorRed,styleLine|styleNoLabel);
> 
> > > Plot(65,"",colorRed,styleLine|styleNoLabel);
> 
> > >
> 
> > > _SECTION_END();
> 
> > > r = RSI(14);
> 
> > > Plot( r, "RSI", colorBlack );
> 
> > > PlotOHLC( r,r,50,r, "", IIf( r > 65, colorGreen, IIf (r < 40, 
> 
> > > colorRed, colorBlack )), styleCloud | styleClipMinMax, 40, 65 );
> 
> >
>


Reply via email to