i´d like to check in my strategy if the name of the intrument is MSFT.
I need this for backtesting on a bunch of possible stock portfolios.
How do i do this ?
I´ve found at http://www.ninjatrader.com/support/h...html?today.htm
that there is something like "Instrument.MasterInstrument.Name".
But if i put it into my "if clause" then it says that MSFT is not known.
My sample:
...if (Position.MarketPosition == MarketPosition.Flat && Instrument.MasterInstrument.Name == MSFT)...
then do something...
It would be great if you could give me a hint how i could archive this.
Thank You !
Comment