I wish to draw candles on the indicator window, like the "Order Flow Cumulative Delta" indicator does.
I found "AddBar" function, but that seems to be only for BarTypes.
In short my goal is to plot candles from NYSE Up Issues and NYSE Down Issues (^ADV and ^DECL instruments plus other similar tick indexes).
I can calculate the ratio between them, but I wish to see this data as a Candle (High, Low, Open, Close) if possible.
// ... AddDataSeries("^ADV", this.BarsPeriod); // NYSE Up Issues AddDataSeries("^DECL", this.BarsPeriod); // NYSE Down Issues if (BarsInProgress == 1) { ratio = ((Closes[1][0] / Closes[2][0]) - 1) * 100; } // ...
Comment