• Overview
  • Reviews
  • Comments (7)
  • What's new

Twisting JMA Martingale

Twisting JMA Martingale is an Expert Advisor from the series "Simple trade strategies bases on moving averages". Here you can find a short description of it. For more detailed description please refer to my blog TRADING WAY.

It uses one indicator (JMA), which can be downloaded from Code Base. All operations are performed according to formed bars on the current timeframe.

This version of the Expert Advisor additionally includes the possibility to move Stop Loss to breakeven zone. There is also a possibility to enable the martingale like function for managing positions volume - the volume of a deal coming after a losing deal is calculated as the volume of the losing deal multiplied by a coefficient specified in the input parameters.

The Expert Advisor can be used for semi-automated trading. Positions can be closed manually but trailed by the EA. Since the martingale method can be dangerous, you can close the position manually when the current profit becomes greater than previous losses.


The List of Expert Advisor parameters:

  • Indicator Period - period of the JMA indicator.
  • Take Profit - distance in points from an entry point to Take Profit. Zero value means no Take Profit.
  • Stop Loss - distance in points from an entry point to the protection level. Zero value means no Stop Loss.
  • Trailing Stop - step in points for modification of the Stop Loss level. The level is calculated using maximums (High) for Sell positions and minimums (Low) for Buy positions. Zero value means that this function is disabled.
  • Reverse - if this parameter is set to 'true', positions will be reversed when opposite signals appear.
  • Break Even StopLoss - distance in points the price should go before Stop Loss is moved to breakeven. Zero value disables this function.
  • Break Even Offset - distance from the current price in points at which Stop Loss will be placed in the breakeven zone.
  • Lot - position volume.
  • Martingale Coefficient - if a position is losing, the volume of the next one will be multiplied by this coefficient. If the values is less than or equal to 1, the volume of the positions will be equal to the one specified in Lot parameter.
  • Initial Deposit - in this parameter, one should specify a value of the deposit starting from which the volume for positions will be calculated dynamically. This allows the EA increasing the profit faster. Zero value disabled the dynamic lot.
  • Maximum Lot Size - here one should specify the maximum value for positions opened. Probably, once you reach a certain size of the deposit it is better stop calculating the lot proportionally. Some traders use this tactics for aggressive increasing of deposit starting with a small amount of money, but then switching to a more conservative trading keeping the risk a low level.


Signals:

The signal for opening positions is true when:

  • For BUY positions – the value of JMA on the last formed bar is higher than the value of JMA on the previous bar.
  • For SELL positions – the value of JMA on the last formed bar is lower than the value of JMA on the previous bar.


Additional parameters and features:

The Expert Advisor has two additional parameters:

  • On/Off Info Panel – enables/disables the informational and trading panel on the chart.
  • Setting "On The Fly" – enables/disables the possibility to adjust parameters using the informational and trading panel.

The image shows one of the results of testing Twisting JMA Martingale. There is a possibility to use custom optimization criterion (Custom Max). The formula for it is not going to be disclosed for the moment.

You can get the same result on EURUSD H4 with default parameters.
No reviews
Version 2.0 - 2014.06.20
Added two input parameters to extend the money management capabilities:

- Initial Deposit - in this parameter, one should specify a value of the deposit starting from which the volume for positions will be calculated dynamically. This allows the EA increasing the profit faster. Zero value disabled the dynamic lot.
- Maximum Lot Size - here one should specify the maximum value for positions opened. Probably, once you reach a certain size of the deposit it is better stop calculating the lot proportionally. Some traders use this tactics for aggressive increasing of deposit starting with a small amount of money, but then switching to a more conservative trading keeping the risk a low level.