#region Variables
private MyCustomIndicator myInd = null;
private double nPrice = 0;
...
#endregion
protected override void Initialize()
{
myInd = MyCustomIndicator(parm1, parm2);
Add(myInd);
...
}
protected override void OnBarUpdate()
{
if (myInd.MyPublicBooleanProperty)
{
nPrice = myInd.MyPublicPriceProperty;
...
}
...
}
when i go to add the strategy to a chart, the strategy does not show up in the list of available strategies ... and there is an entry in the Log tab that says:
"Unable to create instance of 'NinjaTrader.Strategy.myStrategy'. Most likely there is no default constructor defined, or the default constructor doesn't work properly. Exception has been thrown by the target of an invocation."
any help appreciated.
cheers,
-e

Comment