Any examples for ema of cumulative delta indicator. This is not working. Any help appreciated.
public class
private OrderFlowCumulativeDelta OrderFlowCumulativeDelta1;
private EMA OFEMA;
DataLoaded
OrderFlowCumulativeDelta1= OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Session, 0);
OFEMA = EMA(OrderFlowCumulativeDelta1.DeltaClose, 9);
BarUpdate
if (OFEMA[0] <= OrderFlowCumulativeDelta1.DeltaClose[0])
Draw.TriangleUp(this, @"Up"+CurrentBar, false, 0, (Low [0] - (9 * TickSize)) , Brushes.Lime);
Comment