Coding increased lot sizes depending on profitability of last 3 closed orders?


Folks,

I have an EA that works very well overall since 2008-2012, however it has periods (not sure why yet) where it is less profitable - from Sept 2011 to June 2012 it is basically flat.

I am trying to look at market volatility to improve performance during those times, but I would also like to maximizse profits when it is ‘hot’.

I assume this is possible, it is kind of like a Martingale but not exponential.

I want to look back in closed order history and pull the last 3 closed orders…

If the total combined profit of the last 3 closed orders is >$0 then set the lot size for the next order at 2.

or

If the total combined profit of the last 3 closed orders is <$0 then set the lot size for the next order at 0.2.

Any advice.

Also, any thoughts on how far back you go in backtesting? Does anyone care if their EA performs in 200-2009? Or do you just care about the last 6 months?