Currently my algo trades daily if it satisfies my conditions.
- What I would like to do is record the running win/loss (WL) count array for each trade.
- Then get a mean WL/count.
- Then set a rule, only trade if WL rate of past 10 trades is >= mean WL rate (or simple a constant e.g. 0.5*meanWL rate)
Catch being, if these conditions are satisfied once, my algo will never trade for the remainder of my backtest.
So what I need to do is record the actual WL of every trade placed, and then if the WL rate conditions is satisfied (ie I dont trade due to last WL rate of last 10 trades being too low) I need to record theoretical trades, ie what would have occured if I did trade, so the running WL count array is continually adjusted.
Any ideas?