MetaTrader Free EA

Ichimoku Edge MT4 EA - Enhance Your Automated Trading Strategy
MetaTrader4
Ichimoku Edge MT4 EA - Enhance Your Automated Trading Strategy

The Ichimoku Edge is a powerful tool designed for MetaTrader 4, utilizing the standard Ichimoku Kinko Hyo indicator with default settings. This automated trading system generates Buy and Sell signals based on the interaction between the Chikou Span and the price. The signals are confirmed by the positioning of both the price and Chikou Span relative to the Kumo (cloud). Backtest Results Strategy Logic A Buy signal is triggered when the Chikou Span crosses the price from below, confirmed when both the current price and Chikou Span are above the Kumo. A Sell signal occurs when the Chikou Span crosses the price from above, confirmed when both the current price and Chikou Span are below the Kumo. All open trades will close automatically upon receiving an opposite (reverse) signal. No fixed Stop Loss or Take Profit levels are employed; exits depend solely on signal reversals. Money ManagementTwo position-sizing modes are available: Fixed lot size — trades are executed using a predefined volume. ATR-based sizing — dynamically adjusts lot size based on risk percentage or monetary value, utilizing the Average True Range indicator. Key Input ParametersIchimoku Settings: Tenkan = 9 Kijun = 26 Senkou = 52 Money Management: Lots – fixed position size. MM – enable ATR-based risk management. ATR_Period, ATR_Multiplier – settings for the ATR. Risk / MoneyRisk – percentage or fixed monetary risk. UseMoneyInsteadOfPercentage – toggle between percentage or currency-based risk. UseEquityInsteadOfBalance – risk is calculated based on equity rather than balance. LotDigits – precision settings for broker lot sizes. Miscellaneous: OrderComment – label for the order. Slippage – maximum allowable slippage. Magic – unique identifier for this EA. NotesThis expert advisor performs optimally on higher timeframes and within trending markets. For the best results, we recommend testing various Ichimoku and ATR settings before live trading.

2025.10.06
Retail Sentiment Trading with Ziwox MT4 EA - A Contrarian Approach
MetaTrader4
Retail Sentiment Trading with Ziwox MT4 EA - A Contrarian Approach

Ziwox Retail Sentiment Expert AdvisorDescription:The Ziwox Expert Advisor (EA) harnesses the power of retail trader sentiment data from the Ziwox API to make strategic contrarian trading decisions. The premise is straightforward: when the majority of retail traders are taking long positions, it may be time to sell, and vice versa. By integrating sentiment analysis with moving average trend confirmation, this EA offers a thoughtful approach to trading that reflects the collective psychology of the market.For implementation details and code, refer to this MQL5 Article.Why Retail Sentiment Matters:Retail trader sentiment offers insight into the positions and biases of individual traders in the market. It's well-recognized that retail traders often find themselves on the wrong side of market movements due to emotional decision-making, inadequate risk management, or exaggerated reactions to news events. By assessing the long and short ratios of retail traders, we can adopt a contrarian strategy that frequently aligns with institutional trading flows and overall market trends.Benefits of sentiment analysis for traders include:Identifying market conditions that are overextended.Spotting potential reversals early on.Enhancing technical analysis with insights into trader behavior.Minimizing risk by steering clear of crowded trades.How the EA Works:This EA collects retail sentiment data via the Ziwox API and integrates it with a moving average crossover filter:API Integration: The EA utilizes the GetAPI function to send requests to the Ziwox endpoint, retrieving sentiment data in JSON format, which includes essential fields like Retail Long Ratio, Retail Short Ratio, and Risk Sentiment. This data is then parsed into an array (APIJSON) using JsonDataParse.Contrarian Logic:If the Retail Long Ratio is 60% or higher, and the fast moving average is above the slow moving average, the EA considers a sell trade.If the Retail Short Ratio is 60% or higher, and the fast moving average is below the slow moving average, the EA considers a buy trade. This approach ensures that trades are taken contrary to retail sentiment while still adhering to technical trend confirmation.Technical Filter: Simple moving averages (iMA) with user-defined periods (shortMAPeriod and longMAPeriod) filter trades, executing only those that align with the broader moving average trend.Automated Trading: When AutoTrade is enabled, the EA autonomously opens orders, checks for new candles via IsNewCandle(), and prevents duplicate trades with OrdersTotal().Visualization: The EA displays sentiment indicators on the chart using DrawSentiment and ButtonCreate, clearly representing retail long and short ratios in a color-coded format—green for long positions and red for short positions.Key Code Components Explained:GetAPI: Manages API connections to Ziwox, including rate limits, retries, and saving data to a JSON file.JsonDataParse: Reads the JSON file, extracts sentiment values, and stores them in the APIJSON array for trading logic applications.OnTick: Examines conditions at each tick, applies contrarian logic with the moving average trend filter, and executes orders if the criteria are satisfied.DrawSentiment & ButtonCreate: Visualizes sentiment directly on the MT4 chart for immediate insights.IsNewCandle: Ensures trades are only assessed once per new candle to prevent multiple executions on the same candle.Usage Instructions:Place the EA in the Experts folder of MT4.Input your Ziwox API key in the APIKey field.Adjust the shortMAPeriod and longMAPeriod as needed.Set AutoTrade to true for fully automated trading.Load the EA onto any symbol chart. It will gather sentiment data, visualize it, and trade based on the contrarian strategy.Conclusion:This Expert Advisor combines behavioral finance insights from retail sentiment analysis with technical indicators to create a straightforward yet powerful contrarian trading strategy. By monitoring the collective biases of retail traders, the system aids in identifying potential market reversals and avoiding overcrowded trades, thus providing an advantage to disciplined traders.

2025.09.30
Automated MACD Strategy for MT4 – Enhance Your Trading with Trend Analysis
MetaTrader4
Automated MACD Strategy for MT4 – Enhance Your Trading with Trend Analysis

This automated trading system utilizes a straightforward MACD strategy that incorporates various technical indicators. Its primary purpose is to evaluate how effectively this strategy operates within actual trading conditions.Main FeaturesThe system implements a standard MACD crossover strategy: it triggers a buy when the main line crosses above the signal line below zero and a sell when it crosses below the signal line above zero, with the following parameters: • Fast EMA: 12 • Slow EMA: 26 • Signal line:It features a 200-period moving average for trend filtering. When the price is above this moving average, the system will only execute buy orders; conversely, if the price is below, only sell orders will be executed.The strategy also integrates price action analysis: a touch on a support level is required for a buy trade, while for a sell trade, the price must exceed the resistance level. This is facilitated through a custom Box.mq4 indicator that identifies support and resistance levels, which can be subjective.Risk management is critical in this strategy. The Stop Loss (SL) is always positioned above the moving average for sell trades and below for buy trades, calculated based on a user-defined parameter called SLPointDistanceFromMA. The Take Profit (TP) is set at 1.5 times the SL distance.It's worth noting that MACD and support/resistance signals do not need to occur simultaneously. The SignalValidity input determines how many candles these signals remain valid after they appear.Input ParametersParameterDescriptionSignalValidity (int)Number of candles a signal remains valid after appearing (default: 7)Lotsize (double)Trade volume for each orderSLPointDistanceFromMA (int)Distance (in points) between the moving average and the stop loss level

2025.07.28
Eliot Waves - Automated Trading System for MetaTrader 4
MetaTrader4
Eliot Waves - Automated Trading System for MetaTrader 4

The "Eliot Waves" automated trading system (EA) utilizes two trend lines created with the "zigzag" indicator on your chart. This system engages in trades when an Elliott retracement occurs, featuring a trailing stop loss and take profit mechanism. It is compatible with all time frames, major forex pairs, and NASDAQ stocks. Start by testing it on a demo account. This EA trades solely based on the opening price of each candle! If you prefer not to increase the lot size after a losing trade, set "IncreaseFactor=0". I have combined a simple EA with two moving averages and trend lines. Note that the trend lines do not function in test mode. Optimization tests can only be conducted using moving averages. In live trading, both the trend lines and moving averages work together. During tests, the EA only visualizes the trend lines on the screen without using them for trade creation. Make sure to conduct back tests using the "open prices only" option. The trend lines will act as a filter, enhancing the probability of winning trades. Inputs Use_TP_In_Money - Enable Take Profit in Money (values: true/false). TP_In_Money - Take Profit in Money (values: 10-100). Use_TP_In_percent - Enable Take Profit in Percent (values: true/false). TP_In_Percent - Take Profit in Percent (values: 10-100). ------------[Money Trailing Stop for Multiple Trades]---------------------- Enable_Trailing - Enable trailing with money (values: true/false). Take Profit In Money (in current currency) (values: 25-100). Stop Loss In Money (in current currency) (values: 1-20). ------------------------------------------------------------------------------------ Exit - Close trades if the trend is against you to control drawdown (values: true/false). Lots - Lot size (values: 0.01-1). Lots size Exponent (values: 1.01-2). IncreaseFactor - How much to increase lots from total margin if you lose a trade (values: 0.001-0.1). Stop_Loss - Stop Loss (values: 30-500). /set value 600 for Multiple Trades MagicNumber - Magic number (values: 1-100000). TakeProfit - Take Profit (values: 50-200). /set value 600 for Multiple Trades FastMA - Fast Moving Average (values: 1-20). SlowMA - Slow Moving Average (values: 50-200). Mom_Sell - Momentum Sell trigger (values: 0.1-0.9). Mom_Buy - Momentum Buy trigger (values: 0.1-0.9). ---------------------CONTROL DRAW DOWN----------------------------- UseEquityStop - (values: true/false). TotalEquityRisk - (values: 0.01-30). ------------------------------------------------------------------------------ Max_Trades (1-12). --------------------IF YOU USE ONLY 1 TRADE:------------------------- ////////////////////////////////////////////////// USETRAILINGSTOP - If you use trailing stop (values: true/false). WHENTOTRAIL - When to trail (values: 40-100). TRAILAMOUNT - Trail amount (values: 40-100). Distance From Candle - Distance From Candle (values: 1-100). USECANDELTRAIL - If you use candle trailing stop (values: true/false). X = 2 - number of candles (values: 1-100). Enable "Break Even" - (values: true/false). When to move "Break Even" - (values: 5-30). How much pips move - "Break Even" (values: 5-30). - You should optimize this EA every few months and use the exact same inputs mentioned above.- This EA can be utilized as a hedging grid EA or as a single trade EA.- To learn how to perform a back test, visit: this link.

2025.07.18
Automate Your Trading with Auto TP and SL for MetaTrader 4 – Enhance Your Risk Management
MetaTrader4
Automate Your Trading with Auto TP and SL for MetaTrader 4 – Enhance Your Risk Management

Set Auto TP and SL: The "Set Auto TP and SL" (Take Profit and Stop Loss) feature is an essential tool for any trading strategy. This powerful functionality automates your risk and reward management, allowing traders to specify fixed price levels where trades will be automatically closed to either secure profits (TP) or limit losses (SL). This means you no longer need to constantly monitor your positions manually. When you enable this feature, every position you open will automatically include predefined Take Profit and Stop Loss levels based on your custom parameters, such as a set number of pips, a percentage of your balance, or specific technical levels. This not only saves you time but also protects your trades from sudden market fluctuations and emotional decision-making. Key Benefits: Risk Management: Automatically limits potential losses by closing trades at your specified SL level, preventing severe drawdowns. Profit Locking: Secures gains by closing positions once your target TP is reached, ensuring you capitalize on profits during fast market changes. Emotional Discipline: Reduces the impact of fear and greed by adhering to a planned strategy, which is particularly crucial in volatile markets. Time Efficiency: Saves you time by eliminating the need to manually set SL and TP levels for every trade, making it especially beneficial for scalpers or high-frequency traders. Consistency: Applies the same logic to every trade, leading to a more systematic and disciplined trading approach. Whether you're a beginner looking to safeguard your account or a seasoned trader seeking precision and automation, the "Set Auto TP and SL" function is a crucial element for successful trading. It empowers you to trade smarter, not harder, allowing your strategy to operate with minimal manual input while maximizing control over your risk-reward ratio. You can also use it for XAUUSD. Just set up your parameters accordingly. If you need the MQL5 version, you can find it here (Auto TP).

2025.06.29

Crypto Market

Currency Pair
Current
Start Price
High
Low
Change
Change %
BTCUSDT
103,247.73
101,692.60
104,096.36
99,260.86
1,555.13
+1.53 %
ETHUSDT
3,456.72
3,324.20
3,473.00
3,194.20
132.52
+3.99 %
XRPUSDT
2.3255
2.2167
2.3729
2.1536
0.1088
+4.91 %
SOLUSDT
163.18
157.31
164.48
149.82
5.87
+3.73 %
DOGEUSDT
0.18176
0.16321
0.18226
0.15960
0.01855
+11.37 %
TRXUSDT
0.2948
0.2846
0.2948
0.2833
0.0102
+3.58 %
ADAUSDT
0.5872
0.5355
0.5876
0.5196
0.0517
+9.65 %

FX Margin Market

Currency Pair
Current
Start Price
High
Low
Change
Change %
EURUSD
1.15010
1.15183
1.15326
1.14972
-0.00173
-0.15 %
GBPUSD
1.30661
1.31379
1.31395
1.30581
-0.00718
-0.55 %
USDJPY
153.451
154.188
154.472
153.305
-0.737
-0.48 %
AUDUSD
0.64988
0.65339
0.65386
0.64908
-0.00351
-0.54 %
USDCAD
1.40717
1.40537
1.40725
1.40518
0.00180
+0.13 %
NZDUSD
0.56632
0.57014
0.57082
0.56587
-0.00382
-0.67 %