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

[amibroker] ATC: can I assign to open, high, low, close?



PureBytes Links

Trading Reference Links

 From Herman's excellent (thank you, Herman!) "Introduction to the AB 
AddToComposite()" article, p.10:

"The OHLC fields have certain mathematical relationships that restrict 
their use and prohibit you from putting random numbers in all fields.  Due 
to inherent error checking of the arrays by AB the results may be 
unpredictable if you ignore this.  The easiest way is to use the "X" field 
designator; it fills all four price fields (OHLC) with the same values and 
no conflicts will arise."

In the same article a few lines later, on p.11, a special note from Tomasz 
on the subject seems to contradict the above, though, and implies that 
there is no error-checking:

"Volume and open interest fields are 'independent'.  Although you can put 
your composites in any of OHLCVI fields the close field is related to 
high/low fields, and if you store the values only in close field without 
changing H/L and try to display candlesticks out of it - the results will 
be strange."

My question: which is it?  Is Herman correct: are the results of assigning 
random values to OHLC going to be unpredictable due to an undocumented 
error-checking algorithm that could change some of the values?  If so, does 
someone know what the exact error-checking algorithm is and under what 
circumstances it runs, please?

Or, is Tomasz correct: the results of assigning random values to the OHLC 
fields will be uneventful and very predictable, but of course strange as 
heck if you try to chart them as candlesticks?

Thanks for any comments.

     -Paul 

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/