when I export my strategy I get an error CS0433.
Error compiling export assembly: c:\users\myuser\documents\NinjaTrader 8\bin\Custom\Strategies\MyStrategy. cs(20,11) : error CS0433: The type 'NinjaTrader.NinjaScript.Indicators.EMA' exists in both 'c:\users\myuser\documents\NinjaTrader 8\bin\Custom\NinjaTrader.Vendor.dll' and 'c:\users\myuser\documents\NinjaTrader 8\bin\Custom\MyIndicator.dll'
The situation is the following:
1. I have a custom indicator (MyIndicator) that uses the EMA standard indicator. When I export this indicator the compiler gives me a message that @EMA.cs is added to the dll.
2. I install the indicator at the NinjaTrader environment where I develop my strategy.
3. When exporting my strategy, I add the reference to MyIndicator. After pressing Export I get the error CS0433.
I wonder how to solve this problem?
When I create the MyIndicator.dll I have no option to leave out the @EMA.cs.
On the other side I have to add the reference to MyIndicator when I export the strategy to ensure that it works.
Any suggestions on how I can overcome this dilemma?
Thanks !!!
Armin

Comment