If I take a loss in a given day I'd like to limit my strategy and not trade again. However its not quite clear how to do that. I tried using
CalcEntriesToday(DateTime.Today) but in my backtest it didn't work.. my guess is because the Datetime Object is returning todays date and backtest is on historical dates.
newbie question How to Limit number of entries per day?
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: newbie question How to Limit number of entries per day?
You can useCalcEntriesToday(DateTime.Today) but in my backtest it didn't work.. my guess is because the Datetime Object is returning todays date and backtest is on historical dates.
Code: Select all
Bars.Time[0].Date