E.g. if my account size is $10000 and risk per trade is 2%, I would risk $200 on each trade. Based on my stop-loss and tick-value, the lot-size is determined accordingly.
But in back-testing it seems the values for cash balance etc are returned as 0.
I read about using AccountSize - but instead of hard-coding I would like it to be set by the user. (E.g. user sets trading capital to say $10,000 through properties / settings).
How do I determine whether a strategy is running in back-testing mode ?
Any other suggestions to my problem ?
Comment