Create and Test Forex Strategies
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eas-guide:acceptance-criteria [2019/03/05 13:34] – Balance Stability vini | eas-guide:acceptance-criteria [2021/01/13 07:34] (current) – [Acceptance Criteria Metrics] Ilan Vardy | ||
---|---|---|---|
Line 6: | Line 6: | ||
The **acceptance criteria** are widely used in EA Studio (in the [[eas-guide: | The **acceptance criteria** are widely used in EA Studio (in the [[eas-guide: | ||
+ | {{youtube> | ||
+ | \\ | ||
EA Studio applies the acceptance criteria to the backtest result stats. There are three zones of the backtest the acceptance criteria applies to (see the picture below) | EA Studio applies the acceptance criteria to the backtest result stats. There are three zones of the backtest the acceptance criteria applies to (see the picture below) | ||
Line 18: | Line 20: | ||
If OOS is disabled only the first (Complete backtest) part will be used. | If OOS is disabled only the first (Complete backtest) part will be used. | ||
- | {{: | + | {{: |
- | The acceptance criteria work based on the strategy backtest. The strategy backtest results can be seen in the **Strategy > OOS Monitor** tab or in the **Strategy > Report** tab. We recommend using the OOS Monitor | + | The acceptance criteria work based on the strategy backtest. The strategy backtest results can be seen in the **Strategy > OOS Monitor** tab or in the **Strategy > Report** tab. We recommend using the OOS Monitor |
<WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
+ | |||
If you find a strategy with the Generator that you like you can set the acceptance criteria so the generator will find similar strategies. Just go to the **Strategy > OOS Monitor** tab and see the results of the backtest. Then enter them in the acceptance criteria settings. For example if you liked a strategy that has a drawdawn of 8% in the acceptance criteria settings enter a number that is a little bit looser - 10% for Maximum drawdawn etc. From now on the generator will only give you strategies that fit these criteria. | If you find a strategy with the Generator that you like you can set the acceptance criteria so the generator will find similar strategies. Just go to the **Strategy > OOS Monitor** tab and see the results of the backtest. Then enter them in the acceptance criteria settings. For example if you liked a strategy that has a drawdawn of 8% in the acceptance criteria settings enter a number that is a little bit looser - 10% for Maximum drawdawn etc. From now on the generator will only give you strategies that fit these criteria. | ||
</ | </ | ||
+ | |||
+ | Below is an example of a complete backtest, including In Sample, Out of Sample (OOS) and the Complete Backtest | ||
+ | |||
+ | {{: | ||
===== Acceptance Criteria Panel===== | ===== Acceptance Criteria Panel===== | ||
Line 38: | Line 45: | ||
===== Acceptance Criteria Metrics===== | ===== Acceptance Criteria Metrics===== | ||
- | {{ : | + | {{: |
- | ==== Max./Min. Average position length ==== | + | ==== Min. / Max. Average position length ==== |
- | Average position length | + | Average position length expressed in bars. |
- | ==== Max./Min. Bars in trade % ==== | + | ==== Min. / Max. Bars in trade % ==== |
- | Bars in trade where is expressed as percentage. | + | Bars in trade expressed as percentage. |
==== Max. Consecutive losses ==== | ==== Max. Consecutive losses ==== | ||
How many consecutive losing trades can the strategy have. | How many consecutive losing trades can the strategy have. | ||
- | ==== Max./Min. Count of trades ==== | + | ==== Min. / Max. Count of trades ==== |
- | Set the maximal | + | Set the maximum |
- | This is important for the Generator and Optimizer in order for their backtest results to be trustworthy. If there are too few trades, the parameters below might have good-looking values, but in the same time harm your profits. For example if you have a win/loss ratio of 1.0, it is great, but if the trade count is only one, this strategy not one you can rely on. | + | This is important for the Generator and Optimizer in order for their backtest results to be trustworthy. If there are too few trades, the parameters below might have good-looking values, but at the same time harm your profits. For example if you have a win/loss ratio of 1.0, it is great, but if the trade count is only one, this strategy not one you can rely on. |
==== Max. Equity drawdown ==== | ==== Max. Equity drawdown ==== | ||
Line 60: | Line 67: | ||
==== Max. Stagnation % ==== | ==== Max. Stagnation % ==== | ||
- | Set the maximum amount of consecutive days in which the strategy is not making | + | Set the maximum amount of consecutive days in which the strategy is not making |
==== Max. Stagnation days ==== | ==== Max. Stagnation days ==== | ||
Line 69: | Line 76: | ||
==== Min. Backtest quality ==== | ==== Min. Backtest quality ==== | ||
- | The EA Studio backtesting engine is very fast because it operates with bar data. Very rarely however this leads to ambiguities in trade execution. For example if there are protections like Stop Loss or Take Profit it might be important if the price went to bar high or bar low price first. For such bars the backtest engine cannot tell which happened first so it marks the bar as " | + | The EA Studio backtesting engine is very fast because it operates with bar data. Very rarely however |
==== Min. Balance Stability ==== | ==== Min. Balance Stability ==== | ||
- | Balance Stability is a performance metric | + | Balance Stability is a performance metric |
[[https:// | [[https:// | ||
Line 81: | Line 88: | ||
==== Min. Net profit ==== | ==== Min. Net profit ==== | ||
- | he strategy should make at least the set amount in your account' | + | The strategy should make at least the set amount in your account' |
==== Min. Profit factor ==== | ==== Min. Profit factor ==== | ||
Line 90: | Line 97: | ||
==== Min. R - Squared ==== | ==== Min. R - Squared ==== | ||
- | The strategy should have at least this this [[https:// | + | The strategy should have at least this this R - Squared value. You can read more about this performance metric at [[https:// |
==== Min. Return / Drawdown ==== | ==== Min. Return / Drawdown ==== | ||
The strategy should have at least this this [[https:// | The strategy should have at least this this [[https:// | ||
- | ==== min. Sharpe ratio ==== | + | ==== Min. Sharpe ratio ==== |
The strategy should have this or a higher [[http:// | The strategy should have this or a higher [[http:// | ||
- | ==== min. system quality number ==== | + | ==== Min. system quality number ==== |
The strategy should have this or a higher [[http:// | The strategy should have this or a higher [[http:// | ||
- | ==== min. win / loss ratio ==== | + | ==== Min. Win / Loss ratio ==== |
The win/loss ratio is: | The win/loss ratio is: |