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

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



PureBytes Links

Trading Reference Links

If you place the same value in all fields using X, the OHLC there will never
be a conflict. To keep the OHLC Composites unique you can attach the field
letter (OHLC) to the Composite name. But if you change the close of a bar
below the Low or above the high then of course results "will be strange" as
Tomasz mentioned.

At the time ( i was just learning too) I may have been wrong about OHLC
error checking... of hand i can't tell you, perhaps somebody else can jump
in here and explain if there is any price checking going on.

best regards,
herman.
  -----Original Message-----
  From: Paul A. [mailto:amibroker@xxxxxxxxxxxxx]
  Sent: Monday, October 04, 2004 2:11 PM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: [amibroker] ATC: can I assign to open, high, low, close?


  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]



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

  Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


        Yahoo! Groups Sponsor
              ADVERTISEMENT





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

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

    b.. To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



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