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

Re: [amibroker] Re: Possible coding error



PureBytes Links

Trading Reference Links

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@xxxxxxxxx>
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/