This may be a bit of a beginner's question, but i'm trying to create my first strategy based on a custom indicator of my own design, and i keep getting this compilation error:
'NinjaTrader.Strategy' is a 'namespace' but is used like a 'type'
I've searched the forums for the last 30 mins about this, but can't find a solution.
My Using declarations are:
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion
and right after that i have:
namespace NinjaTrader.Strategy
After that:
public class myCustomStrategy : Strategy
basically i've just taken the SampleMACrossOver strategy provided by NT, and put in the code from my indicator into the Initialize and OnBarUpdate sections, as well as the variables region, and removed the plot objects...
Anything else i might be doing wrong? What does this error actually mean?
Thanks!

Comment