[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Help with PLOT syntax



PureBytes Links

Trading Reference Links

ROC(....) is a function, ROC1 is just an array variable and thus
cannot accept baracketted inputs


ROC1 = ( P / Ref (P,-12));
Plot( ROC1, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
ParamStyle("Style") );

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 19/03/2008, James <jamesmemphis@xxxxxxxxx> wrote:
>
>
>
> I just want to plot the the array variable ROC1. I copied it from the ROC indicator and since it is a function this is probably why I am having the problem. What would be the syntax to plot the array variable in the same manner as the function ROC?
>
> Thanks,
> James
>
>
> ----- Original Message ----
> From: Graham <kavemanperth@xxxxxxxxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Tuesday, March 18, 2008 9:31:02 PM
> Subject: Re: [amibroker] Help with PLOT syntax
>
>
>
>
> ROC1 is not a function as shown, just an array variable. If you want the ROc of ROC1 then use ROC(ROC1,periods)
>
>
> --
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriti ng.com
>
>
> On 19/03/2008, James <jamesmemphis@ yahoo.com> wrote:
> >
> >
> >
> >
> >
> > Could someone please tell me what is wrong with this PLOT statement.
> >
> >
> >
> > _SECTION_BEGIN("ROC1");
> >
> > P = ParamField( "Price field" );
> >
> > periods = Param("Periods", 15, 1, 200, 1 );
> >
> > ROC1 = ( P / Ref (P,-12));
> >
> > Plot( ROC1 ( P, periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
> >
> > _SECTION_END();
> >
> >
> >
> > Thanks in advance,
> >
> > James
> >  ________________________________
 Looking for last minute shopping deals? Find them fast with Yahoo! Search.
>
>
>
>
>
>
>        ________________________________
Be a better friend, newshound, and  know-it-all with Yahoo! Mobile.
Try it now. 

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

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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