PDA

View Full Version : Historical in MarketAnalyzer.Column ?


zweistein
07-09-2009, 10:11 AM
Hello Ninja Team,

currently I am writing a MarketAnalyzer.Column.

I notice however that in the

OnBarUpdate() function Historical does not work as expected!

Historical does always return false,

but the Time[0] value can be 7-7-2009 15.30, which is 2 days ago!

Please can you give any hint? Is this a bug or is this expected behaviour?
Am I wrong with the usage ?

OnBarUpdate(){
if(Historical) return; // will never trigger
Print(Time[0].ToString()); // can be well in the past

}

If it is a bug, please tell me as I will write a fix in this case.
Otherwise, please enlight me the workings of MarketAnalyzer.Column. If you can give an example (other than PositionManagment.cs) that would be very helpful

Best regards

Andreas

NinjaTrader_Josh
07-09-2009, 10:23 AM
Andreas,

Unfortunately we do not support writing of columns. You should instead be writing indicators that can be added to a Market Analyzer as an Indicator column.

zweistein
07-09-2009, 10:37 AM
OK,

thank you!

I better don't let you know how many undocumented features I use in my application. I see NinjaTrader as a good framework, but to get full flexibility one needs more software on top of Ninja.


Best regards