Display the chosen index name on the chart

This commit is contained in:
moshferatu 2024-03-18 08:49:25 -07:00
parent 2b5f974f55
commit 6df1d0d857

View File

@ -136,7 +136,10 @@ namespace NinjaTrader.NinjaScript.Indicators
public override string DisplayName
{
get { return "Index Top " + NumComponents; }
get {
string indexName = (TrackingIndex == MarketIndex.NASDAQ) ? "NASDAQ" : "S&P 500";
return indexName + " Top " + NumComponents;
}
}
#region Plots