I´m experiencing the most strange behavior in 10 years from NT6.5 to NT8. I´m testing round to find the reason and there is no error in log.
My strategy is plotting in the chart doubles eg Draw.TextFixed(this,"str2",str2, TextPosition.Center,Brushes.Blue, new SimpleFont ("Arial",10), Brushes.Transparent,Brushes.White,100); (screenshot)
this works for years.
Today I found out that it does not when I add volumetric dataseries (which I use without errors in other strategy)
For testing purposes I changed nothing else in the strategy than adding
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = Bars.BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
if (barsType == null)
Compiling, enable again in the chart. No more Draw.TextFixed.
When "//" the 3 lines for volumetric" and F5 in the chart its plotting again the Draw.TextFixed.
When I change in the script the dataseries and apply the script to a tickchart and now using volumetric as added Dataseries then it is plotting OK in the chart. (But I assume adding volumetric in a script needs more cpu than running the script with calculations from volumetric in a volumetric chart)
Why?
Thank you!
Tony

Comment