Perhaps someone might be able to advise and demonstrate in code?
Fundamentally what I would like to have is a 'parent' indicator which monitors price data and at an appropriate time instantiates a 'child' class object.
The child class object takes life and independently monitors the same price data stream beginning at the point were the parent spawned it. The child will live it's own life updating as data arrives and producing output, drawing lines on the chart etc. until it is no longer of use. It will then self destruct.
There will be one parent but many, many child objects, all at different stages of the lifecycle but importantly; *updating themselves* (with OnBarUpdate()?) as new data arrives, drawing on the chart and feeding calculated information back to a centralised point.
Isn't this a perfect project for Object Oriented Programming? Question is can it be implemented in NinjaTrader?
I've already spent a considerable amount of time fiddling with this but could surely use some assistance to get a basic functioning program outline of the 'parent indicator' & 'child class objects' working together. I can take it from there.....
Hope you can help
Riskybiz
Comment