Any help is appreciated.
I am getting the following errors when I attempt to compile a NT7 indicator in NT8.
ERROR #1
Line 66 - Plots[0].Pen.DashStyle = DashStyleHelper.Dot;
Line 68 - Plots[1].Pen.DashStyle = DashStyleHelper.Dot;
Line 110 - Plots[0].Pen.DashStyle = DashStyleHelper.Dot;
Line 111 - Plots[1].Pen.DashStyle = DashStyleHelper.Dot;
ERROR - Cannot implictly convert type 'NinjaTrader.Gui.DashStyleHelper' to 'System.Windows.Media.DashStyle'
ERROR #2
Line 112 - Plots[0].Pen.Color = pColorPS;
Line 113 - Plots[1].Pen.Color = pColorPL;
ERROR - 'System.Windows.Media.Pen' does not contain a definition for 'Color' and no extension method 'Color' accepting a first argument of type 'System.Windows.Media.Pen' could be found (are you missing a using directive or an assembly reference?)
ERROR #3
Line 463 - double a = 1 - ( 0.299 * bg.R + 0.587 * bg.G + 0.114 * bg.B)/255;
ERROR - 'System.Windows.Media.Brush' does not contain a definition for 'R' 'G' 'B' and no extension method 'R' 'G' 'B' accepting a first argument of type 'System.Windows.Media.Brush' could be found (are you missing a using directive or an assembly reference?)
ERROR #4
Line 470 - return Color.FromRgb(d, d, d);
ERROR - The best overloaded method match for 'System.Windows.Media.Color.FromRgb(byte, byte, byte)' has some invalid arguments
Argument 1 (first d on line 470) cannot convert from 'int' to 'byte'.
Argument 2 (second d on line 470) cannot convert from 'int' to 'byte'
Argument 3 (third d on line 470) cannot convert from 'int' to 'byte'.
ERROR #5
Line 492 - string folder = NinjaTrader.Cbi.Core.InstallDir+@"\sounds";
ERROR - The type or namespace name 'Core' does not exist in the namespace 'NinjaTrader.Cbi' (are you missing an assembly reference?)
Comment