can anyone here help me with this code i am getting CS0246 error.
error -
| CustomSuperDOMColor.cs | The type or namespace name 'Indicator' could not be found (are you missing a using directive or an assembly reference?) | CS0246 | 29 | 36 |
this is the code -
using System.Windows.Media;
using NinjaTrader.Cbi;
using NinjaTrader.NinjaScript;
public class CustomSuperDOMColor : Indicator
{
protected override void OnMarketDepth(MarketDepthEventArgs e)
{
foreach (var entry in e.MarketDepth.BidEntries)
{
if (entry.Quantity > 300)
{
SuperDOM.BidColor = Brushes.Purple;
break; // Exit loop after first occurrence to avoid unnecessary processing
}
}
foreach (var entry in e.MarketDepth.AskEntries)
{
if (entry.Quantity > 300)
{
SuperDOM.AskColor = Brushes.Purple;
break; // Exit loop after first occurrence to avoid unnecessary processing
}
}
}
}

Comment