Hi bharat,

Sorry, I did not see you private message. The best place to post is the AB user's list so you can get help of everybody.

Plese find below your corrected code.

Best regards

|SetChartOptions( 0, *chartShowArrows* | *chartShowDates* | *chartWrapTitle* );
_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*, *styleOwnScale* );
PlotOHLC( r, r, 50, r, "", IIf( r > 65, *colorGreen*, IIf ( r < 40, *colorRed*, *colorBlack* ) ), *styleCloud* | *styleClipMinMax*, 40, 65 );
_SECTION_BEGIN( "GIP-3" );
SetChartOptions( 0, *chartShowArrows* | *chartShowDates* );
_N( *Title* = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " + WriteVal( *V*, 1.0 ) + " {{VALUES}}", *O*, *H*, *L*, *C*, SelectedValue( ROC( *C*, 1 ) ) ) ); Cr = IIf( RSI( 9 ) <= LLV( RSI( 9 ), 9 ) , *colorRed* , IIf( RSI( 9 ) >= HHV( RSI( 9 ), 9 ) , *colorGreen* , IIf( *C* > *O* , *colorWhite* , *colorBlack* ) ) );
SetBarFillColor( Cr );
Plot( *C*, "Close", Cr, *styleNoTitle*+*styleOwnScale* | ParamStyle( "Style" ) | GetPriceStyle() );|






Le 23/07/2010 13:30, reinsley a écrit :



Hi bharat,

So what ?

You say nothing about your tests, you did not answer to helping users, you hijack the thread of somedy else, you show a gaz plant and a part of the formula in jpeg. You expect people will copy the code ?

Before mastering AFL, first step is to offer good posts to get help.

Sorry, I give up :(

Best regards





Le 23/07/2010 11:33, bharat a écrit :

http://yfrog.com/5nyourcodepostedp <http://yfrog.com/5nyourcodepostedp>

--- In [email protected] <mailto:amibroker%40yahoogroups.com>, reinsley <reins...@...> wrote:
>
> Bharat
>
> Did you see my message few post ago ?
>
> > It works fine. Custom RSI followed by Divergence in the same formula.
>
> There is no compression.
>
> Best regards
>
>
> Le 22/07/2010 08:06, Mike a écrit :
> >
> > Bharat,
> >
> > It's pretty self explanatory. If you're still having trouble, post
> > sample code or send it to support.
> >
> > Mike
> >
> > --- In [email protected] <mailto:amibroker%40yahoogroups.com> <mailto:amibroker%40yahoogroups.com>,
> > "bharat" <bharat_parth2005@> wrote:
> > >
> > > mike,
> > > If you have tried it in any of your AFL.pl post it here so that I
> > can implement.
> > >
> > > bharat
> > >
> > > --- In [email protected] <mailto:amibroker%40yahoogroups.com>
> > <mailto:amibroker%40yahoogroups.com>, "Mike" <sfclimbers@> wrote:
> > > >
> > > > You haven't experimented enough ;)
> > > > Start by setting all plots to styleOwnScale.
> > > >
> > > > Mike
> > > >
> > > > --- In [email protected] <mailto:amibroker%40yahoogroups.com> > > <mailto:amibroker%40yahoogroups.com>, "bharat" <bharat_parth2005@> wrote:
> > > > >
> > > > > I have already experimented with styleOwnScale and
> > styleLeftAxisScale but it did not solve my problem so I have posted my
> > problem here
> > > > >
> > > > > --- In [email protected] <mailto:amibroker%40yahoogroups.com>
> > <mailto:amibroker%40yahoogroups.com>, "Mike" <sfclimbers@> wrote:
> > > > > >
> > > > > > 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 <http://www.amibroker.com/guide/afl/afl_view.php?id=114>
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In [email protected] <mailto:amibroker%40yahoogroups.com> > > <mailto:amibroker%40yahoogroups.com>, Infinity Home Loans <infynhome@>
> > 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_parth2005@> wrote:
> > > > > > >
> > > > > > > From: bharat <bharat_parth2005@>
> > > > > > > Subject: [amibroker] Re: Combining RSI custom and Divergence
> > indicator
> > > > > > > To: [email protected] <mailto:amibroker%40yahoogroups.com>
> > <mailto:amibroker%40yahoogroups.com>
> > > > > > > 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] <mailto:amibroker%40yahoogroups.com>
> > <mailto:amibroker%40yahoogroups.com>, 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