When the indicator FibonacciPivots is embedded in a strategy(demo strategy attached), the strategy cannot be exported, neither as source nor DLL.
The strategy compiles OK locally though.
The error says that 'PivotRange' and 'HLCCalculationMode' cannot be found -- attached screenshot.
WARNING: Error compiling export assembly: ...\Documents\NinjaTrader 8\bin\Custom\Indicators\@FibonacciPivots.cs(503,53 ) : error CS0246: The type or namespace name 'PivotRange' could not be found (are you missing a using directive or an assembly reference?) WARNING: Error compiling export assembly: ...\Documents\NinjaTrader 8\bin\Custom\Indicators\@FibonacciPivots.cs(503,80 ) : error CS0246: The type or namespace name 'HLCCalculationMode' could not be found (are you missing a using directive or an assembly reference?)
Perhaps I need to add a certain reference when exporting, but I don't know which one. I tried adding ALL 19 references presented to me, same outcome.
What am I missing? Thank you.
Comment