I'm getting the following CS0426 error when I compile my strategy:
The type or namespace name indicator_name could not be found (are you missing a directive or an assembly reference?)
I've replaced the actual indicator name with 'indicator_name' as I'm not sure how the vendor would feel about publishing the name publicly. I declare it as follows:
namespace NinjaTrader.NinjaScript.Strategies
{
public class MyStrategy : Strategy
{
....
private indicator_name myIndicator;
The vendor assembly is in the reference list already. This works without error when I host the vendor indicator in a custom indicator script as opposed to a strategy. Also hosting a wrapper indicator that hosts the vendor indicator internally works in the strategy. It's just hosting the vendor indicator directly that's failing.
The vendor indicator is declared in the form VendorName.VendorIndicator.
Thanks.

Comment