I want to create a class I can call from all other strategies.
namespace NinjaTrader.Strategy
{
partial class Strategy
{
}
public class clsAccount
{
public void Check_OpenOrders()
{
}
}
}
In my Strategy I have:
clsAccount Acct = new clsAccount();
Acct.Check_OpenOrders;
NT is flagging the semi-colon at the end of Acct.Check_OpenOrders;
The error I'm getting is:
Class member declaration expected.
Invalid token ";" in class, struct, or interface member declaration.
It makes no difference if my class is within the "partial class Strategy" brackets or not...
Thanks!
Comment