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

Re: [amibroker] Re: Probably silly coding error;



PureBytes Links

Trading Reference Links

You can't use it "directly", because it hasn't been initialized (created) yet. You got to call it at least once, before you try and access its elements.

On Sat, Oct 11, 2008 at 8:55 AM, noemeenswat <noemeenswat@xxxxxxxxx> wrote:

Thanks,
Works like a charm. Can you, or some-one else, explain me why I
can't use ADX() directly to determine the trend?

grtnx
Wilco

--- In amibroker@xxxxxxxxxxxxxxx, "Tony Grimes" <Tonez.Email@xxx>
wrote:


>
> Try This:
>
> myADX = ADX();
> trend1 = MyADX[0] > myADX[1];
>
>
> On Sat, Oct 11, 2008 at 8:27 AM, noemeenswat <noemeenswat@xxx>
wrote:
>
> > I want to determine or ADX is uptrending or downtrending.
Therfore I
> > coded:
> >
> > trend1=ADX()[0]>ADX()[1];
> >
> > This should result in a true or false for trend1 depending on
> > trenddirection of ADX. It gives however a consistent error 30
syntax
> > error.
> >
> > If I replace ADX() by H, C etc it works fine. Can someone
explain what
> > I'm doing wrong?
> >
> > Thanks
> > Wilco
> >
> >
> >
>


__._,_.___

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

*********************
TO GET TECHNICAL 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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___