My first FX martingale attempt - MT4/MT5 resources
Hello everyone,
Please find my latest cBot, which is much more stable than the one above.
Results are 1 minute long and contain quote data from January 19, 2014 to February 23, 2017, using commissions of $30 per million.
USD/CAD
EURUSD
AUD/USD
parameter
Let me explain the parameters
1) Time frame : 1 minute (recommended). It is based on multiple timeframes but still uses the base timeframe during signal generation.
2) Volume : 1K (recommended). This is a martingale strategy that increases lot size based on the Fibonacci sequence, so it is best to start with 1K for every 5K account balance.
3) Minimum spread (points) : 2 points (recommended). It basically won't open a trade unless the spread is smaller than this spread filter.
4) Risk level: 10 (recommended). The maximum number of steps for a martingale.
5) With deviation: 2 (recommended).
6) Profit and loss threshold: 500 (recommended). The Martingale sequence will shut down when this threshold is reached unless shut down through the TP process.
7) Inverse: 0 (recommended). 0 means false, which basically means we sell when overbought and start a martingale sequence. If set to "1" (true) then it will buy when overbought. You can also try using "1" as it's not necessarily unprofitable.
8) Grid size (points): 10 (recommended). Minimum grid space (in points) for martingale to start with.
9) Mesh Gradient: 0 (recommended). Exponentially increases the gradient of the grid function.
10) Take profit (points): 3 (recommended). Start taking profit in pips and apply the "TP Scale" gradient for subsequent martingale steps to net take profit.
11) TP scale: -0.15 (recommended). Use the "TakeProfit" parameter as the gradient of the exponential decay function of the starting sequence. If it is +ive, then the take profit will decrease as the number of martingale steps increases, otherwise it will increase.
The algorithm looks to break even Risk level -1 Martingale step size has nothing to do with the Take Profit or Take Profit Scale parameters.
Give the parameters a try and let me know your feedback. I won't be able to fulfill every possible request as I've tested myself with trailing stops, fixed stops, etc., but I'll do my best (but I don't guarantee anything).
Please use tick data only. I have used IC market tick data and the commission is $30/million.
Note that this is a martingale strategy and therefore carries risks.
Please use it according to your own understanding and use it on "Live" at your own risk. Backtest/forward test and provide your feedback!
V0: c Bot download V0 (no source code)
https://www.dropbox.com/s/otqivbvubk...rial.algo?dl=0
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V2:-> A very stable martingale version with 2 important features that I personally want
1) All trading will start on Monday and close on Friday, so there is no weekend risk.
2) The profit and loss threshold acts as a weekly take profit. If the profit and loss threshold is reached, no more trades are made that week.
This ensures that I can run it on multiple instruments every Sunday night and turn it off the next Saturday morning. Give yourself peace of mind! !
New parameters added
Enable gridSizeLast4Steps : If enabled, you can specify the exact number of points for the last 4 steps of the martingale grid.
The grid size of Last4Steps : the grid spacing size of the last 4 steps of the martingale sequence.
V2: cBot download V2 (updated) (no source code)
https://www.dropbox.com/s/ivoi416seu...rial.algo?dl=0 (updated)
(You can check out my main thread here -> http://ctdn.com/algos/cbots/show/1026 )
I must add a disclaimer:
Past performance results are for illustration and example purposes only, are hypothetical, and therefore have a number of inherent limitations. Past performance of an indicator or method or algorithmic trading is not necessarily indicative of future results. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. By making a purchase using a trading strategy or robot or indicator provided through me, you further agree not to hold me or any of my affiliates liable for products or services purchased based on any recommendations made, or for any partnerships or other transactions that may originate from forums, private messages or any other source. Futures, Forex, Stocks, Index Trading and Algorithmic Trading involve significant risk of loss and are not suitable for everyone. Only risk as much capital as you can afford to lose, and be aware that leveraged trading may result in losses exceeding your trading capital. You agree to indemnify myself and my affiliates from any and all claims.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please find my latest cBot, which is much more stable than the one above.
Results are 1 minute long and contain quote data from January 19, 2014 to February 23, 2017, using commissions of $30 per million.
USD/CAD
EURUSD
AUD/USD
parameter
Let me explain the parameters
1) Time frame : 1 minute (recommended). It is based on multiple timeframes but still uses the base timeframe during signal generation.
2) Volume : 1K (recommended). This is a martingale strategy that increases lot size based on the Fibonacci sequence, so it is best to start with 1K for every 5K account balance.
3) Minimum spread (points) : 2 points (recommended). It basically won't open a trade unless the spread is smaller than this spread filter.
4) Risk level: 10 (recommended). The maximum number of steps for a martingale.
5) With deviation: 2 (recommended).
6) Profit and loss threshold: 500 (recommended). The Martingale sequence will shut down when this threshold is reached unless shut down through the TP process.
7) Inverse: 0 (recommended). 0 means false, which basically means we sell when overbought and start a martingale sequence. If set to "1" (true) then it will buy when overbought. You can also try using "1" as it's not necessarily unprofitable.
8) Grid size (points): 10 (recommended). Minimum grid space (in points) for martingale to start with.
9) Mesh Gradient: 0 (recommended). Exponentially increases the gradient of the grid function.
10) Take profit (points): 3 (recommended). Start taking profit in pips and apply the "TP Scale" gradient for subsequent martingale steps to net take profit.
11) TP scale: -0.15 (recommended). Use the "TakeProfit" parameter as the gradient of the exponential decay function of the starting sequence. If it is +ive, then the take profit will decrease as the number of martingale steps increases, otherwise it will increase.
The algorithm looks to break even Risk level -1 Martingale step size has nothing to do with the Take Profit or Take Profit Scale parameters.
Give the parameters a try and let me know your feedback. I won't be able to fulfill every possible request as I've tested myself with trailing stops, fixed stops, etc., but I'll do my best (but I don't guarantee anything).
Please use tick data only. I have used IC market tick data and the commission is $30/million.
Note that this is a martingale strategy and therefore carries risks.
Please use it according to your own understanding and use it on "Live" at your own risk. Backtest/forward test and provide your feedback!
V0: c Bot download V0 (no source code)
https://www.dropbox.com/s/otqivbvubk...rial.algo?dl=0
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V2:-> A very stable martingale version with 2 important features that I personally want
1) All trading will start on Monday and close on Friday, so there is no weekend risk.
2) The profit and loss threshold acts as a weekly take profit. If the profit and loss threshold is reached, no more trades are made that week.
This ensures that I can run it on multiple instruments every Sunday night and turn it off the next Saturday morning. Give yourself peace of mind! !
New parameters added
Enable gridSizeLast4Steps : If enabled, you can specify the exact number of points for the last 4 steps of the martingale grid.
The grid size of Last4Steps : the grid spacing size of the last 4 steps of the martingale sequence.
V2: cBot download V2 (updated) (no source code)
https://www.dropbox.com/s/ivoi416seu...rial.algo?dl=0 (updated)
(You can check out my main thread here -> http://ctdn.com/algos/cbots/show/1026 )
I must add a disclaimer:
Past performance results are for illustration and example purposes only, are hypothetical, and therefore have a number of inherent limitations. Past performance of an indicator or method or algorithmic trading is not necessarily indicative of future results. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. By making a purchase using a trading strategy or robot or indicator provided through me, you further agree not to hold me or any of my affiliates liable for products or services purchased based on any recommendations made, or for any partnerships or other transactions that may originate from forums, private messages or any other source. Futures, Forex, Stocks, Index Trading and Algorithmic Trading involve significant risk of loss and are not suitable for everyone. Only risk as much capital as you can afford to lose, and be aware that leveraged trading may result in losses exceeding your trading capital. You agree to indemnify myself and my affiliates from any and all claims.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •