I am trying to define the accountsize for a strategy but I am lost:
I have put
protected override void Initialize()
{
AccountSize = 5000;
}
to define the accountsize. So far so good. Now when I open a chart & add the strategy under "Order properties" it says set order quanity "by strategy". Now I have to change this manually to "by account size" which is not good when I have to do this many times over.
Is there a way to have this done automatically so that orders are always handeled using the accountsize ?
My order routine says: EnterLong(DefaultQuantity, "EnterLong1");
Is there a way to reference to the accountsize or somehow set the DefaultQuantity to the accountsize ?
Thank you
Martin

Comment