I have added the dll to my indicator Reference. I found that since I don't have the .cs file of the 3rd party indicator, if I call the 3rd party directly, like:
double iValue = GZTVelocityMomo(10,26,10,1).MomoHigh[0]; or double iValue = GZTVelocityMomo(BarsArray[1],10,26,10,1).MomoHigh[0];
Indicator\IBEntrySignal.cs,'NinjaTrader.Indicator.GZTVelocityMomo' is a 'type' but is used like a 'variable',CS0118
GZTVelocityMomo GZTVM = new NinjaTrader.Indicator.GZTVelocityMomo(); GZTVM.GZTVelocityMomo(10,26,10,1).MomoHigh[0];
I attache a simple test I have done. Since the original indicators I am using are under license, I changed the code to use CCI instead. With the indicator, you can change the InDirectCall value: true is inDirect, false is Direct.
Any help is welcomed.
Comment