DYO: Candlesticks Close versus Open


Q:  Can a DYO draw the candlesticks so I can implement some studies behind and some studies drawn in front of the candles?

A:

Template:  1287-Rockets

Line A and B show how to implement setting a color for the candlestick body in the default paint can.   To assign a color to the paint can, have the Show box checked, the Marker selection on blank, and a color picked.  Line A sets the default paint color to red [1].  Line B conditionally changes the paint color to green [2].   The Ensign Rockets candlestick marker on Line F will use the color in the paint can because the color selection [3] is black.

The bar, candlestick, rocket and flute markers need 4 prices.  The 4 prices will be read from 4 adjacent DYO lines in the order of High, Low, Open and Close.  Have the marker on the 4th line, the line with the Close price.   These values are being set on Line C, D, E and F in the example.

Since the DYO is drawing the candles, the chart should not draw bars or candlesticks.   Turn off the chart display by unchecking the Show | Bars option on the chart properties, or press the B key on the keyboard  (Caps Lock key off).

Template:  1287-Rockets

Last modified 1/18/08 3:26 PM