I tried exporting and the error message: You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can export a NinjaScript Archive.
file.
An the error belongs to the file that I'm trying to export to you and the error message is "Cannot convert type 'char' to 'string'.
Any suggestions?
I can post it here if you like.
public class MyCustomIndicatortest : Indicator
{
#region Variables
private List<string> DemandLines;
#endregion
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Indicator here.";
Name = "MyCustomIndicatortest";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
//Disable this property if your indicator requires custom values that cumulate with each new market data event.
//See Help Guide for additional information.
IsSuspendedWhileInactive = true;
}
else if (State == State.Configure)
{
}
else if (State == State.DataLoaded)
{
DemandLines = new List<string>();
}
}
protected override void OnBarUpdate()
{
foreach (string drawTag in DemandLines[DemandLines.Count-1])
{
}
}
}

Comment