In converting NT7 to NT8, this working NT7 line code below assigns the K[0] value to the int xle:
int xle = Stochastics(Input, PeriodD, PeriodK, Smoothing).K[0]
However, when compiled under NT8 I get the following error:
"NinjaTrader.NinjaScript.Indicator.Stochastics " is a"type" but is used as "variable" "- CS0118
The above code works fine in NT7. I could not find any information in support documents.
What is the correct NT8 conversion of the above NT7 line code?
Many thanks.
Comment