ADX TRADING STRATEGIES EA MT4/MT5 Settings/Inputs Guide

ADX TRADING STRATEGIES EA MT4/MT5 Settings/Inputs Guide

16 November 2024, 10:23
Biswarup Banerjee
0
1 750

Complete User Documentation — MT4 & MT5

1. OVERVIEW

The Stochastic Strategy EA utilizes the stochastic oscillator to automate trading decisions based on overbought and oversold conditions. It addresses the challenge of timing trades effectively, allowing traders to capitalize on market movements with precision. This EA is designed to enhance trading efficiency and minimize emotional decision-making.

Who Should Use It: This EA is ideal for retail traders seeking a systematic approach to trading, particularly those familiar with stochastic indicators and looking to automate their strategies.

Main Benefit: Automate your trading with a proven stochastic strategy that adapts to market conditions, maximizing your potential for profit while minimizing emotional stress.


2. INPUT PARAMETERS & SETTINGS

This product shares a common set of general input settings with all Expert Advisor products in this series. The following sections are covered in the common guide: General Settings (lot size, SL/TP modes, magic number, trade direction), Breakeven Settings, Trailing Stop Settings, News Filter Settings and News Action Settings, Martingale Settings, Grid Settings, Hedge Settings, Risk Settings, Position Sizing, Alert Settings, Display Settings, Trade Time Settings, Trade Days Settings, Safeguard Settings, and Trend Filter Settings (MA Filter, ADX Filter, RSI Filter, MACD Filter, Parabolic SAR Filter — each with their own strategy options). All of these are fully documented in the Common General Input Settings for Expert Advisors. The sections below cover only the product-specific inputs unique to this product.

Stochastic Settings

This section controls the parameters for the stochastic oscillator, which is essential for determining entry and exit points.

Setting Name Type Default Value Description Example
Stochastic timeframe ENUM PERIOD_CURRENT Defines the timeframe for the stochastic calculations, allowing traders to customize their analysis based on market conditions. M1 for scalping; H1 for swing trading.
K period for Stochastic int 14 Specifies the number of periods for the %K line in the stochastic oscillator, impacting sensitivity to price changes. 14 for standard settings; adjust lower for faster signals.
D period for Stochastic int 3 Sets the period for the %D line, smoothing the %K line to reduce noise and enhance signal clarity. 3 for a balanced approach; increase for smoother signals.
Slowing factor for Stochastic int 3 Affects the degree of smoothing applied to the stochastic lines, influencing the responsiveness of the indicator. 3 for standard settings; adjust for desired responsiveness.
Moving Average method (0: Simple, 1: Exponential, etc.) ENUM MODE_SMA Defines the type of moving average used for smoothing, affecting the indicator's sensitivity and lag. MODE_SMA for standard; MODE_EMA for faster response.
Price field (0: Close/Close, 1: High/Low, etc.) ENUM STO_LOWHIGH Specifies which price data to use for calculations, influencing the indicator's interpretation of market conditions. STO_CLOSE for standard use; STO_HIGHEST for volatility analysis.
Calculation Mode(Useful for backtesting) ENUM MANUAL Determines how stochastic levels are calculated, affecting backtesting accuracy and strategy evaluation. MANUAL for precise control; AUTO for automatic adjustments.
stochastic upper LEVEL double 80 Sets the upper threshold for the stochastic oscillator, indicating overbought conditions and potential sell signals. 80 for traditional settings; adjust higher for less sensitivity.
stochastic lower LEVEL double 20 Defines the lower threshold for the stochastic oscillator, indicating oversold conditions and potential buy signals. 20 for standard use; lower for more conservative entries.
Entry Strategy ENUM ENTRY_STRATEGY1 Specifies the strategy for entering trades based on stochastic signals, allowing for customization of trading behavior. ENTRY_STRATEGY1 for oversold entries; ENTRY_STRATEGY3 for overbought exits.
Exit Strategy ENUM EXIT_STRATEGY0 Determines the conditions under which trades will be exited, crucial for risk management and profit-taking. EXIT_STRATEGY0 for no exit strategy; EXIT_STRATEGY1 for overbought exits.

Entry Strategy — Options Explained

This setting allows you to customize how the EA enters trades based on stochastic signals. Choose the strategy that aligns with your trading style and market conditions.

ENTRY_STRATEGY0: Disables entry strategy, meaning no trades will be executed based on stochastic signals. ENTRY_STRATEGY1: Triggers a buy when the stochastic enters oversold territory, indicating a potential price reversal.

ENTRY_STRATEGY2: Buys when the stochastic exits oversold conditions, suggesting upward momentum. ENTRY_STRATEGY3: Buys when the stochastic enters overbought territory, indicating a potential sell signal.

ENTRY_STRATEGY4: Buys when the stochastic crossover occurs below the oversold line, signaling a reversal. ENTRY_STRATEGY5: Buys when %K crosses above 50, indicating bullish momentum.

ENTRY_STRATEGY6: Buys when %K is above the upper level, while sell signals occur when it is below. ENTRY_STRATEGY7: Triggers trades based on bullish or bearish divergence, enhancing entry precision.

ENTRY_STRATEGY8: Executes trades when %K crosses up or down %D, providing additional entry confirmation.

Exit Strategy — Options Explained

This setting defines how and when the EA will exit trades based on stochastic signals. Proper exit strategies are essential for effective risk management and profit realization.

EXIT_STRATEGY0: Disables exit strategy, which may lead to holding trades indefinitely. EXIT_STRATEGY1: Exits buy trades when stochastic enters overbought territory, signaling a potential price drop.

EXIT_STRATEGY2: Exits buy trades when stochastic exits overbought conditions, suggesting a reversal. EXIT_STRATEGY3: Exits buy trades when stochastic enters oversold conditions, indicating a possible upward movement.

EXIT_STRATEGY4: Exits buy trades when stochastic crossover occurs above the overbought line, suggesting a downward trend. EXIT_STRATEGY5: Exits buy trades when %K crosses below 50, indicating bearish momentum.

EXIT_STRATEGY6: Exits buy trades when %K is below the lower level, while sell trades are exited when above. EXIT_STRATEGY7: Triggers exits based on bearish or bullish divergence, enhancing exit timing.

EXIT_STRATEGY8: Executes exits when %K crosses down or up %D, providing additional exit confirmation.

Stochastic Divergence Settings(only For Strategy 7)

This section configures parameters specifically for divergence strategies, enhancing entry precision based on market behavior.

Setting Name Type Default Value Description Example
Divergence Lookback Bars int 50 Sets the number of bars to look back for identifying divergence, influencing the accuracy of signals generated. 50 for standard analysis; adjust for shorter-term strategies.
Minimum Bars distance between divergence[0: disable] int 20 Defines the minimum distance between divergence points, helping to filter out insignificant signals. 20 for standard filtering; increase for stricter criteria.
Maximum Bars distance between divergence[0: disable] int 200 Sets the maximum distance between divergence points, affecting the potential for trade setups. 200 for broader analysis; decrease for tighter signals.
Min price gap in pips[0: disable] int 15 Defines the minimum price gap required for divergence to be valid, enhancing signal reliability. 15 for standard divergence

3. HOW IT WORKS

Core Calculation & Logic

This Expert Advisor utilizes multiple stochastic strategies to analyze market conditions and identify potential trading opportunities. It calculates stochastic indicators to determine overbought or oversold levels, providing signals for entry and exit points.

The EA monitors price movements and stochastic values, executing trades based on predefined conditions. It is designed to adapt to various market scenarios, ensuring optimal performance during different trading environments.

Entry Strategies Explained

Stochastic Oscillator Entry

BUY Signal: A BUY signal is generated when the stochastic line crosses above the oversold level (20) while the price is trending upwards.

SELL Signal: A SELL signal occurs when the stochastic line crosses below the overbought level (80) while the price is trending downwards.

Best For: This strategy is best used in ranging markets where price tends to oscillate between support and resistance levels.

Step-by-Step Workflow

Step 1: Setup the EA Load the Stochastic Strategy EA onto your trading chart.

Step 2: Configure Settings Adjust the input parameters to fit your trading style and risk tolerance.

Step 3: Enable Auto Trading Ensure that auto trading is enabled in your trading platform.

Step 4: Monitor Performance Regularly check the EA's performance and adjust settings as necessary.

Step 5: Analyze Trades Review the trades executed by the EA to understand its decision-making process.


4. RISK MANAGEMENT FEATURES

This section outlines the key risk management features of the Stochastic Strategy EA.

Feature Description
Lot Size Determines the size of each trade, allowing users to control their risk exposure based on account balance.
Stoploss and Takeprofit Sets predefined levels for exiting trades to limit losses and secure profits, essential for risk management.
Risk Reward Ratio Defines the ratio of potential profit to potential loss, helping traders to evaluate trade viability.
Magic Number A unique identifier for trades opened by the EA, allowing for better management of multiple strategies.
Single Entry Prevents new entries if there is an existing trade, reducing the risk of overexposure in the market.

Quick Start Guide

Follow these steps to get started in under 5 minutes:

  1. Download the EA: Obtain the Stochastic Strategy EA from the MQL5 marketplace.
  2. Install the EA: Copy the EA file to the 'Experts' folder in your MetaTrader installation directory.
  3. Attach to Chart: Open your MetaTrader platform and attach the EA to your desired trading chart.
  4. Set Parameters: Customize the input settings according to your trading preferences.
  5. Enable Auto Trading: Ensure auto trading is enabled in your platform settings.
  6. Monitor Trades: Keep an eye on the trades executed by the EA for performance evaluation.
  7. Adjust Settings: Modify the parameters as needed based on market conditions and personal strategy.

You may also be interested in these related products:


Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide | Backtest and Set Files

Check all my products: https://www.mql5.com/en/users/biswait50/seller

Contact me for support: https://www.mql5.com/en/users/biswait50