PDA

View Full Version : Adding Point and Figure Charts in a Strategy/Indicator Script


aviat72
12-27-2009, 02:55 AM
I have reviewed the discussions about NT PnF implementation in NT7.

However, I have not yet seen an example of how to add a set of PnF bars to a NinjaScript Strategy or indicator.

The overloaded Add functions does not seem to have a version which will allow specification of the PnF parameters (i.e. the box size, the reversal) or the type of chart period to use (min, seconds etc.).

I tried running a strategy which uses Add(PeriodType.PointAndFigure, 1) on 1 minute chart, hoping it will inherit the time-period of the main chart (1 min) with the PnF defaults, but the strategy did not produce any signals.

I do realize that NT PnF implementation has raised some issues with purists but can live those for the time-being.
-------------------------------------

On a similar note, do the RenkoBars also work as secondary bar series in Strategies?

NinjaTrader_Ray
12-27-2009, 06:55 PM
I will look into tomorrow and reply by end of day tomorrow.

aviat72
12-27-2009, 11:49 PM
Ray,

I found some functions which seem to work.

AddPointAndFigure
AddRenko

They are not documented properly but Intellisense is giving hints.

NinjaTrader_Ray
12-28-2009, 04:22 PM
Great, thanks for letting me know.