I'm not sure if you can help since my query involves a 3rd party indicator but I thought you might be able to give some direction.
When using strategy builder, I've added a simple condition with a 3rd party indicator just to test. When I do "View Code", I see that the indicator is integrated as
public class SBtest01 : Strategy { private NinjaTrader.NinjaScript.Indicators.Sim22.Sim22_DeltaV3 Sim22_DeltaV31; protected override void OnStateChange() {...}
else if (State == State.DataLoaded) { Sim22_DeltaV31= Sim22_DeltaV3(Close, DeltaV3BarWidthTypeEnum.Auto, NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtilities+DeltaCalculationTypeEnum.BidAsk, NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtilities+DeltaCotType.None, true, false, false, GaplessEmaTypeEnum.Normal, 20, NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtilities+DeltaTradeSizeFilterTypeEnum.None, 1, NinjaTrader.NinjaScript.AddOns.Sim22_HaUtilities+HeikenAshiCalculationType.None, false, true, true); }
if (Sim22_DeltaV31.DeltaClose[0] < Sim22_DeltaV31.DeltaClose[1]) { EnterShort(Convert.ToInt32(DefaultQuantity), ""); }
These are the error messages;
'NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtiliti es' is a 'type', which is not valid in the given context
The name 'DeltaCalculationTypeEnum' does not exist in the current context
'NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtiliti es' is a 'type', which is not valid in the given context
The name 'DeltaCotType' does not exist in the current context
'NinjaTrader.NinjaScript.AddOns.Sim22_DeltaUtiliti es' is a 'type', which is not valid in the given context
The name 'DeltaTradeSizeFilterTypeEnum' does not exist in the current context
'NinjaTrader.NinjaScript.AddOns.Sim22_HaUtilities' is a 'type', which is not valid in the given context
The name 'HeikenAshiCalculationType' does not exist in the current context
I would really appreciate if you could give some guidance to fix this.
Thanks
MT
Comment