Forex Strategies tested in Python#
The main aim of this project is to collect strategies in one place. This will serve as a resource for trading ideas and start up code that can be used to backtest them.
The strategies included here are taken from books, videos, blogs, etc. For each strategy we run 7 exits. The exits are shown in the table below. The literature on trading is heavily focused on entries and not exits. We wanted to make a point in this project that exits do matter as well. The exits were inspired by Kevin Davey’s book, Entry and Exit Confessions of a Champion Trader.
We present the results for each strategy across all these exits. Please note the limitations of the backtests before deciding to trade the ones that have ‘good’ results.
Limitations#
Here are the current limitations of the project.
No Multiprocessing
Given the number of strategies it would be wise to use Multiprocessing to speed up the results.
No Optimisation
In all the strategies default values were used. No attempt was made to get the ‘best’ parameters for the indicators, etc.
No Tick data
Using tick data is the gold standard when backtesting a strategy. This was not used in the backtests
Walk Forward Analysis
No test were done to see if the strategies work out of sample.
Deployment
Quite a bit of work has be done to get the strategies ready for deployment.
No multi-timeframe or machine learning strategies
We kept to simple strategies.
Only EURUSD on 15 minute data
We used EURUSD on the 15-minute timeframe to run the backtests. The data starts from 2020-01-01 until 2022-12-31.
Strategies are not automagically composable
You cannot take two strategies (i.e. entries) and form a new strategy and run a test.
Source Code#
You can get access to all of the source code on this Github repo.
Contact#
You can reach me at the following email address: info at zetra dot io. Or you can post a comment on the YouTube Channel or on this Reddit post.
Disclaimer#
We want to emphasize that this is purely for educational purposes only. We do not offer any financial advice, recommendations, or make any guarantees of profit or success. Trading carries a risk of loss, and it is important to always consult with a qualified professional before making any trading decisions.
- Strategies from YouTube
- Strategies from Books
- Strategies from Requests
- Strategies from ChatGPT
- Range-Bound ATR and Breakout
- Moving Average and Oscillators
- Range-Bound Support and Resistance Levels
- Fibonacci : Range-Bound Support and Resistance Levels
- Camarilla : Range-Bound Support and Resistance Levels
- DM : Range-Bound Support and Resistance Levels
- Donchian Channel and Candlestick
- Triple Moving Average and MACD
- Parabolic SAR and ADX
- Applying the Coppock Curve in Forex Trading: Strategies and Considerations
- Strategies from Blogs, and etc
- Chart pattern strategies
- Candlestick pattern strategies
- Harami Candlestick pattern
- Engulfing Candlestick pattern on Forex
- Reversals in Forex Trading: Unveiling the Potential of the Doji Star Pattern
- Unmasking the Dark Cloud Cover: A Powerful Reversal Signal in Forex Trading
- Trade Reversals with Confidence: Harnessing the Power of the Matching Low Candlestick Pattern in Forex
- Top 10 results
- References