ICHIMOKU CLOUD TRADING STRATEGIES EA MT4/MT5 Settings/Inputs Guide

ICHIMOKU CLOUD TRADING STRATEGIES EA MT4/MT5 Settings/Inputs Guide

27 October 2024, 13:10
Biswarup Banerjee
0
338

Ichimoku Expert Advisor Documentation

This Expert Advisor (EA) is based on the Ichimoku Kinko Hyo indicator, leveraging its comprehensive market analysis capabilities to identify optimal entry and exit points. In addition to its core strategy, it includes optional advanced features such as Moving Average filtering on higher timeframes, grid recovery, hedge, martingale strategies, position sizing based on profit, and day and time filters. These features enhance adaptability to various trading environments.

We divide our input sections into two parts. The first part is indicator-related settings, which you can find at the bottom side of the EA inputs. All other settings are common for every EA we make. We call these additional features. You can find the detailed documentation of these settings in this link.

MT4 version is available here  Ichimoku Strategies EA MT4

MT5 version is available here  Ichimoku Strategies EA MT5

 

1. Ichimoku Settings

Ichimoku Input Parameters

  • ICHIMOKU1_TEXT_1 - Divider text for visual clarity in the input section. (Not important for EA calculation)
  • ICHIMOKU1_TEXT - Text label for Ichimoku settings. (Not important for EA calculation)
  • ICHIMOKU1_TEXT_2 - Divider text for visual clarity in the input section. (Not important for EA calculation)
  • ICHIMOKU_TIMEFRAME - Selects the timeframe for Ichimoku calculation. Default: PERIOD_CURRENT .
  • TENKAN_SEN - Sets the period for the Tenkan-sen line. Default: 9 .
  • KIJUN_SEN - Sets the period for the Kijun-sen line. Default: 26 .
  • SENKOU_SPAN_B - Sets the period for the Senkou Span B line. Default: 52 .

Entry Strategy Options

  1. ENTRY_STRATEGY1 (Kijun Cross Strategy)
    Buys when the price crosses above the Kijun-sen; sells when the price crosses below it.
  2. ENTRY_STRATEGY2 (Kumo Breakout Strategy)
    Buys when the price breaks above the Kumo cloud; sells when it breaks below the Kumo cloud.
  3. ENTRY_STRATEGY3 (Chikou Span Confirmation Strategy)
    Buys when the Chikou Span confirms bullish momentum; sells when it confirms bearish momentum.
  4. ENTRY_STRATEGY4 (Tenkan-Kijun Cross Strategy)
    Buys when the Tenkan-sen crosses above the Kijun-sen; sells when the Tenkan-sen crosses below the Kijun-sen.
  5. ENTRY_STRATEGY5 (Kumo Twist Strategy)
    Buys when a bullish Kumo twist occurs; sells when a bearish Kumo twist occurs.

Exit Strategy Options

  1. EXIT_STRATEGY1 (Kijun Cross Strategy)
    Buys exit when the price crosses below the Kijun-sen; sells exit when the price crosses above the Kijun-sen.
  2. EXIT_STRATEGY2 (Kumo Breakout Strategy)
    Buys exit when the price breaks below the Kumo cloud; sells exit when it breaks above the Kumo cloud.
  3. EXIT_STRATEGY3 (Chikou Span Confirmation Strategy)
    Buys exit when the Chikou Span confirms bearish momentum; sells exit when it confirms bullish momentum.
  4. EXIT_STRATEGY4 (Tenkan-Kijun Cross Strategy)
    Buys exit when the Tenkan-sen crosses below the Kijun-sen; sells exit when the Tenkan-sen crosses above the Kijun-sen.
  5. EXIT_STRATEGY5 (Kumo Twist Strategy)
    Buys exit when a bearish Kumo twist occurs; sells exit when a bullish Kumo twist occurs.
  6. EXIT_STRATEGY6 (Disable Exit Strategy)
    Disables automatic exits.

Note: Only one entry or exit strategy can be active at a time. If you are using grid, hedge, or martingale strategies alongside the base strategy, it is recommended to disable the exit strategy to avoid interfering with these loss recovery mechanisms.


How Different Strategies related to ichimoku works?

1. Kijun Cross Strategy

# Define Buy and Sell Logic for Kijun Cross Strategy
def kijun_cross_buy_signal():
    return price > kijun_sen and tenkan_sen > kijun_sen and price > kumo_top  # Price is above Kijun and Kumo

def kijun_cross_sell_signal():
    return price < kijun_sen and tenkan_sen < kijun_sen and price < kumo_bottom  # Price is below Kijun and Kumo

# Execute Buy and Sell Logic
if kijun_cross_buy_signal():
    print("Buy signal generated (Kijun Cross Strategy)")
    # Place buy order

elif kijun_cross_sell_signal():
    print("Sell signal generated (Kijun Cross Strategy)")
    # Place sell order
else:
    print("No trade signal (Kijun Cross Strategy)")


2. Kumo Breakout Strategy

# Define Buy and Sell Logic for Kumo Breakout Strategy
def kumo_breakout_buy_signal():
    return price > kumo_top and senkou_span_a > senkou_span_b  # Price breaks above the Kumo, with bullish Kumo

def kumo_breakout_sell_signal():
    return price < kumo_bottom and senkou_span_b > senkou_span_a  # Price breaks below Kumo, with bearish Kumo

# Execute Buy and Sell Logic
if kumo_breakout_buy_signal():
    print("Buy signal generated (Kumo Breakout Strategy)")
    # Place buy order

elif kumo_breakout_sell_signal():
    print("Sell signal generated (Kumo Breakout Strategy)")
    # Place sell order
else:
    print("No trade signal (Kumo Breakout Strategy)")


3. Chikou Span Confirmation Strategy

# Define Buy and Sell Logic for Chikou Span Confirmation Strategy
def chikou_confirmation_buy_signal():
    return chikou_span > price and chikou_span > kumo_top and tenkan_sen > kijun_sen  # Chikou Span confirms bullish trend

def chikou_confirmation_sell_signal():
    return chikou_span < price and chikou_span < kumo_bottom and tenkan_sen < kijun_sen  # Chikou Span confirms bearish trend

# Execute Buy and Sell Logic
if chikou_confirmation_buy_signal():
    print("Buy signal generated (Chikou Span Confirmation Strategy)")
    # Place buy order

elif chikou_confirmation_sell_signal():
    print("Sell signal generated (Chikou Span Confirmation Strategy)")
    # Place sell order
else:
    print("No trade signal (Chikou Span Confirmation Strategy)")


4. Tenkan-Kijun Cross Strategy (Short-Term)

# Define Buy and Sell Logic for Tenkan-Kijun Cross Strategy
def tenkan_kijun_cross_buy_signal():
    return tenkan_sen > kijun_sen and price > kumo_top  # Tenkan above Kijun, confirmed by price above Kumo

def tenkan_kijun_cross_sell_signal():
    return tenkan_sen < kijun_sen and price < kumo_bottom  # Tenkan below Kijun, confirmed by price below Kumo

# Execute Buy and Sell Logic
if tenkan_kijun_cross_buy_signal():
    print("Buy signal generated (Tenkan-Kijun Cross Strategy)")
    # Place buy order

elif tenkan_kijun_cross_sell_signal():
    print("Sell signal generated (Tenkan-Kijun Cross Strategy)")
    # Place sell order
else:
    print("No trade signal (Tenkan-Kijun Cross Strategy)")


5. Kumo Twist Strategy

# Define Buy and Sell Logic for Kumo Twist Strategy
def kumo_twist_buy_signal():
    return senkou_span_a > senkou_span_b and previous_senkou_span_a < previous_senkou_span_b  # Kumo twist from bearish to bullish

def kumo_twist_sell_signal():
    return senkou_span_b > senkou_span_a and previous_senkou_span_b < previous_senkou_span_a  # Kumo twist from bullish to bearish

# Execute Buy and Sell Logic
if kumo_twist_buy_signal():
    print("Buy signal generated (Kumo Twist Strategy)")
    # Place buy order

elif kumo_twist_sell_signal():
    print("Sell signal generated (Kumo Twist Strategy)")
    # Place sell order
else:
    print("No trade signal (Kumo Twist Strategy)")

2. Additional Features

Moving Average (MA) Filter on Higher Timeframe

The MA filter enables trades that align with the broader trend based on a higher timeframe moving average:

  • Uptrend Condition - Allows buy trades when the close price is above the moving average.
  • Downtrend Condition - Allows sell trades when the close price is below the moving average.

Loss Recovery Strategies

There are couple of loss recovery strategies popular in the market. Grid, Hedge and Martingale is most popular among them. In this EA, we have these strategies inbuilt. But only one loss recovery strategy can be active at a time. EA will not load, if we enable more than one loss recovery strategies. There is one important point regarding these strategies, we can not set stoploss if you enable Grid or Hedge strategy. It will close trades earlier and will compromise the purpose of these strategies. All of these strategies are by default disabled.

Grid Recovery Strategy
In a losing position, the EA places additional trades in a grid pattern, averaging down the entry price to capitalize on retracements.
Hedge Strategy
To balance exposure during a losing position, the EA opens opposing trades (hedges), allowing profit potential in countertrend movements.
Martingale Strategy
Increases lot size after a loss on each subsequent signal, aiming for overall profitability.


Position Sizing Based on Profit
This feature adjusts the position size dynamically based on cumulative profit, aiming to optimize gains in favourable conditions. As profit accumulates, the EA increases the position size, allowing for scaled growth and larger potential returns.


Day Filter
Specifies trading days to avoid trading during specific days of the week, aligning with your strategy’s optimal market conditions. You can disable the entire day filter.


Time Filter
Limits trading to specific times, preventing trades during low-liquidity periods or other non-ideal market conditions. You can disable entire time filter.


This ADX-based EA, with versatile entry and exit strategies and advanced risk management features, is a comprehensive tool designed to adapt to various market conditions while offering robust control over trading operations. Use each feature thoughtfully to align with your trading objectives and risk management strategy.


Download Optimized set files here