Best h4 forex strategy

Best h4 forex strategy

Posted: fantomvm Date: 25.06.2017

StrategyQuant Success Story - a "perfect" forex portfolio. Range bar strategies step-by-step. What-If scenarios of your trading.

What is Monte Carlo analysis and why you should use it? Strategy building process - Building profitable EURUSD strategy. Getting started with StrategyQuant - practical example. Robustness tests and analysis. Introduction to StrategyQuant platform. Algorithmic Trading - Why and How. When using machine learning techniques such as genetic programming the most important part of strategy building process is testing strategy for robustness to ensure that it is not curve-fitted to historical data.

I use double OOS filter plus Robustness Tests plus Walk-Forward Matrix test. For motivation I post results of one of the two nice performing strategies for EURUSD that I found using the process described below.

I'm already testing both strategies on a demo account and they will be moved to a live account once they prove the performance.

The strategy above is published on our forum only for licensed users of StrategyQuant here: The only inputs I use are my expectations of the strategy - I want to build a strategy for EURUSD that is profitable and has as little drawdowns as possible. I want the strategy to be robust enough so that it works also on other symbols GBPUSD and I want it to pass Walk-Forward Matrix test to make sure that reoptimization works on this strategy. In the first step I simply have to generate large pool of potentially "good" strategies that I'll test for robustness later.

I want my all initial strategies to be profitable and robust to some extentso I employ several filters also in this first phase. Settings explained First of all, I generate all my strategies on multiple symbols. My goal is to find a good strategy for EURUSD, but I want my strategy to be robust - so I want it to be profitable also on GBPUSD. I add GBPUSD to the additional data, so now the strategy will be tested on both symbols.

I'll use data from 1. The rest of the data will be left for further OOS testing later. I'll use Genetic Evolution mode. The idea is to make a population of strategies, evolve them during 30 generations and then start again from scratch. This way I'll avoid running into a dead end during evolution and the best strategies are continually stored to Databank.

You can also see that the only condition for initial population is that it must make at least trades. It doesn't need to be profitable - genetic evolution should be able to improve it. The last important piece of setting is Ranking options.

I set Databank to store best strategies, because I want to have a good base for further selection process.

You can use other selection criteria, perhaps you'll get better results. Othe of the most important things is to set the initial filter criteria for strategies in Databank.

Because I'm testing the strategies on two symbols - EURUSD and GBPUSD, the portfolio results for the strategies will be also computed. Using this condition I simply specify that the portfolio performance won't be much worse than performance on only EURUSD, and the program will dismiss all strategies with bad portfolio performance.

Now we just have to hit the Start button and let the program do the work. Remember, we want to generate at least "good" strategies before we'll continue with the filter process.

best h4 forex strategy

Depending on the settings and speed of your computer it could take several hours or even days, so be patient. If the program doesn't produce any strategy for a very long time, perhaps we should switch to a higher timeframe - H4 or D1, or decrease the constraints. When I have potentially good strategies in the Databank, I'll stop the generation and start filtering process. I'll apply the first filter - by removing all the system that have bad Out of Sample performance.

best h4 forex strategy

Image 4 Databank with pool of strategies sorted by OOS Net Profit. This first step usually removes a big portion of strategies, so from initial candidates we are down to around In this step I'll retest all the strategies using the 1 Minute precision on the unknown Out of Sample period. I used Selected timeframe precision in the Build stage to make the tests as fast as possible, but before further evaluation I want to ensure that backtests are really reliable, so I retest all the strategies with higher precision.

Retesting the strategies is simple - I'll just select all the strategies in the Databank and click on Retest button.

This will move all the strategies to a Best h4 forex strategy tab. I'll also confirm shop trading hours on australia day asking if it should use the build settings for Retest.

I'll then extend the data period to the end of available data.

24x5 Online Forex Trading, Currency Trading Broker - RoboForex

Strategies were generated on data from 1. Note that this will retest the strategies on new unknown part of data, and the OOS part will show the strategy performance during the last year and half. Because I have also another source of EURUSD historical data free data downloaded from Dukascopy I'll add them to additional data to compare the performance on both EURUSD data sources. The test could take some time and after high low binary what is trading in nse is done I'll once again remove all the system that have bad Out of Sample performance.

In this step I'll check performance of the strategies on GBPUSD symbol. Example of good and bad GBPUSD performance. I'll consider only strategies that show at least some profitability on GBPUSD. The equity curve doesn't need to be perfect, but it should be growing without extreme drawdowns. This filter is very though - we'll usually find only a few strategies that pass this test. So from initial we are usually down to strategies. After removing all the strategies with bad GBPUSD performance there are less than 10 strategies left that have good IS and OOS performance, as well as satisfactory performance on GBPUSD.

I'll now retest strategies again with Robustness tests and Money Management to see how each of the strategies handles small changes in inputs and to be able to compare the strategies to each other.

This allows for better strategies comparison, because they risk the same amount per trade. Setting money management to fixed amount. In Robustness tests I use at least 20 simulations and test the strategy for all types of stress situations. After configuring the robustness test I retest the strategies again. This time it will be fast because there are only few strategies left in the Databank.

How to evaluate Robustness tests Robustness tests show us how the strategy can behave in reality, when there are missed trades, different history data etc. In the example above we can see robustness results for two strategies.

Strategy on the left has profit in acceptable level, but drawdown more than doubled compared to original result. Strategy on the right has also profit in acceptable level and drawdown was almost unchanged. In this step I'll choose only final strategies that will be subjected to next test of robustness. These final strategies are selected by the best results in robustness tests, overall profitability an dalso simplicity - I want the strategy rules to be as simple as possible, pending order types forex trading rules should make some sense.

We are left with a few strategies and we can run the ultimate test for robustness - Walk-Forward Matrix test. WF Matrix is simply a matrix of walk-forward optimizations with different number of runs and run periods.

If the strategy passes Walk-Forward Matrix test it means that with the help of parameter reoptimization the strategy is adaptable to a big range of market conditions AND also that the strategy is not curve fitted to particular data - since with reoptimization it works on many different time periods. In addition to this WF Matrix test also tells us if i want to do typing work from home without investment strategy should be permanently reoptimized and what the most optimal reoptimization period is.

Walk-Forward Matrix test has to be done for every strategy separately. I'll load my strategy to Optimizer and select Walk-Forward Matrix option. I'll also select steps for runs and OOS percentages. StrategyQuant will go through all these combinations, performing Walk-Forward optimization of the strategy. Setting parameters for optimization For optimization to make sense you have to set the strategy parameters that will be optimized. Each strategy uses different logic and has different parameters, so you have to configure the optimization differently.

This strategy is relatively simple, so I'll optimize only Stop Loss value and stop trailing coefficient. It is not necessary to optimize all parameters, only these that have the biggest impact on strategy performance. Now I can start the WF Matrix optimization. This could be a long process that could take several hours - depending on settings and number of steps and parameters optimized and the speed of your computer. Evaluating Walk-Forward Matrix When optimization finished, I'll click on the Walk-Forward matrix result in Databank to see the details.

The final result is that the startegy passed Walk Forward matrix test for robustness. The 3D score chart shows us that 16 out of 24 combinations passed our criteria default settings used. The strategy doesn't need to pass for every combination, I'm looking for 2x2 or 3x3 area that has most of the combinations passed - this will be the group of best reoptimization combinations.

When I check the Walk-Forward optimization chart I can see that the strategy remains profitable also during reoptimization. Walk Forward Matrix gives me also another important information - how often should we reoptimize the strategy? I described my complete process of working with StrategyQuant, which led to few interesting new strategies. You can try it yourself, take inspiration and possibly improve the process with your own ideas which you can share on our forum.

Possible improvements of the process - you can try to look for strategies separately for long and short direction. Every direction has its own dynamics, and different strategies for long and short could return better results. I didn't mention Improver - it is a powerful tool that allows you to look for better variation of your existing strategy, if you are still not satisfied with the performance.

Just keep in mind - the point is not to find strategy that is perfect on historical data. This is a recipe for disaster, because overly optimized strategy is guaranteed to fail in real trading.

best h4 forex strategy

StrategyQuant What is StrategyQuant? Walk-Forward Matrix Walk-Forward Optimization Strategy building process - Building profitable EURUSD strategy Getting started with StrategyQuant - practical example Robustness tests and analysis. Features How it works Free Trial Purchase Frequently Asked Questions Screenshots What's New Download Articles.

This is the result For motivation I post results of one of the two nice performing strategies for EURUSD that I found using the process described below. Inputs The only inputs I use are my expectations of the strategy - I want to build a strategy for EURUSD that is profitable and has as little drawdowns as possible.

Strategy building process Generating a big pool of potential candidates First filter - Out of sample OOS check Second filter - retesting and second OOS check Third filter - GBPUSD check Fourth filter - Robustness tests Fifth filter - Walk-Forward matrix test Generating a big pool of potential candidates In the first step I simply have to generate large pool of potentially "good" strategies that I'll test for robustness later. My settings for this step You can download the settings I use in this step using the link below.

Click on the link with right mouse button and choose Save link as Then in StrategyQuant use Load settings to load this settings file to the program.

High Risk Investment Warning: The possibility exists that you could sustain a loss in excess of your deposited funds and therefore, you should not speculate with capital that you cannot afford to lose. Information provided is only general advice that does not take into account your objectives, financial situation or needs.

Forex trading strategy #10 (H4 Bollinger Band Strategy) | Forex Strategies & Systems Revealed

It must not be construed as personal advice. Quant Analyzer Backtest and Trading results Analyzer. Tick Downloader History tick data downloader.

inserted by FC2 system