PureBytes Links
Trading Reference Links
|
The check to see if you have done this whilst writing an AFL or IB is
that if it is a built in item it will capitalise (and change colour or
bold font) when you have typed it. I have used this ability to rework
the arrays often and find it extremely useful.
Cheers,
Graham
-----Original Message-----
From: Fred <fctonetti@xxxxxxxxx> [mailto:fctonetti@xxxxxxxxx]
Sent: Wednesday, 5 February 2003 4:32 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Possible coding error
TJ,
So be it, let the coder beware. I have found in the realm of
application development that it is sometimes necessary to protect
users from themselves. If you think about it, in todays litigious
society, in the end it's protection for you too.
Fred
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Franco,
>
> This is for flexibility. Personally I don't like languages that
don't
> allow me to do something.
>
> AmiBroker allows overwriting OHLC arrays for a very valid reason:
> it allows to to transform any array using indicators that were
originally intended
> to operate on price data.
>
> So this ability was well thought.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: <fctonetti@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, February 04, 2003 9:17 PM
> Subject: [amibroker] Re: Possible coding error
>
>
> > TJ,
> >
> > No offense but it is also good programming language development
> > practice to NOT allow built in reserved words to be used on the
left
> > side =.
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko"
<amibroker@xxxx>
> > wrote:
> > > Franco,
> > >
> > > I have posted my e-mail because I received a support question
> > > why the custom indicator using your code does not show close
> > > but other value. And the reason was that code used Plot()
> > > statement to plot Avg array instead of close while the title
> > remained "Close".
> > > Hence the confusion.
> > >
> > > It is good programming practice not to overwrite build-in
constants
> > and/or price arrays.
> > >
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > > ----- Original Message -----
> > > From: "Franco Fornari" <ffpsi@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Tuesday, February 04, 2003 8:11 PM
> > > Subject: Re: [amibroker] Possible coding error
> > >
> > >
> > > > Tomasz,
> > > >
> > > > thanks for this clarification. One can choose A or C,
replacing
> > all the
> > > > occurrences into the entire formula.
> > > >
> > > > Best regards,
> > > >
> > > > Franco
> > > >
> > > > ----- Original Message -----
> > > > From: "Tomasz Janeczko" <tj@xxxx>
> > > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > > Sent: Tuesday, February 04, 2003 8:00 PM
> > > > Subject: [amibroker] Possible coding error
> > > >
> > > >
> > > > > Hello,
> > > > >
> > > > > The formula attached to message
> > > > > http://groups.yahoo.com/group/amibroker/message/32997
> > > > > has a probable coding error in line
> > > > >
> > > > > C= A;
> > > > >
> > > > > This line OVERWRITES Close price with Average Price (
> > (H+L+C)/3 )
> > > > >
> > > > > Doing this is strongly discouraged because close is not
longer
> > close and
> > > > may distort other indicators.
> > > > >
> > > > > If you REMOVE this line everything will be back to normal.
> > > > >
> > > > > Best regards,
> > > > > Tomasz Janeczko
> > > > > amibroker.com
> > > > >
> > > > > Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
> > > > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > > >
> > > > > Check group FAQ at:
> > > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
> > > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > >
> > > > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> >
> > Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|