Spezifikation

Okay, this is a big one for MT5 traders. Let's do it properly.

In Python, the "Merge Tool" usually means 2 things:
1. *Merge MT5 data from different symbols / timeframes into one DataFrame*
2. *Plot it as a clean graph*

Here is a complete working setup:

*Step 1: Install*

pip install MetaTrader5 pandas matplotlib mplfinance

*Step 2: Full Code - Get MT5 Data + Merge + Plot*

import MetaTrader5 as mt5
import pandas as pd
import mplfinance as mpf
from datetime import datetime

# 1. CONNECT TO MT5
if not mt5.initialize():
 print("MT5 failed, open MT5 terminal first")
 quit()

# 2. FUNCTION TO GET DATA
def get_data(symbol, timeframe, bars=500):
 rates = mt5.copy_rates_from_pos(symbol, timeframe, 0, bars)
 df = pd.DataFrame(rates)
 df['time'] = pd.to_datetime(df['time'], unit='s')
 df.set_index('time', inplace=True)
 df.rename(columns={'tick_volume': 'volume'}, inplace=True)
 return df

# 3. GET 2 DIFFERENT DATA SETS
# Example: XAUUSD M1 + XAUUSD H1
df_m1 = get_data("XAUUSD", mt5.TIMEFRAME_M1, 500)
df_h1 = get_data("XAUUSD", mt5.TIMEFRAME_H1, 100)

# 4. MERGE TOOL - Merge M1 and H1 on time
# We merge the H1 close as a trend filter onto M1 chart
df_h1_trend = df_h1[['close']].rename(columns={'close': 'h1_close'})
df_merged = pd.merge_asof(
 df_m1.sort_index(),
 df_h1_trend.sort_index(),
 left_index=True,
 right_index=True,
 direction='backward'
)

# Add indicators
df_merged['EMA_20'] = df_merged['close'].ewm(span=20).mean()
df_merged['EMA_50'] = df_merged['close'].ewm(span=50).mean()

print(df_merged.tail())
mt5.shutdown()

# 5. PLOT GRAPH
# Create extra plots for EMAs
ap = [
 mpf.make_addplot(df_merged['EMA_20'], color='blue', width=1),
 mpf.make_addplot(df_merged['EMA_50'], color='orange', width=1),
 mpf.make_addplot(df_merged['h1_close'], color='purple', width=1, linestyle='--')
]

mpf.plot(
 df_merged.tail(200), # plot last 200 candles
 type='candle',
 style='charles',
 title='XAUUSD M1 Merged with H1 Trend',
 ylabel='Price',
 volume=True,
 addplot=ap,
 figsize=(14, 7),
 savefig='merged_chart.png'
)
print("Chart saved as merged_chart.png")

*What this does:*
- Pulls live data straight from your MT5 terminal
- Merges the H1 close price onto the M1 chart, so you can see the higher timeframe trend while scalping
- Plots candles + EMA 20 / EMA 50 + H1 trend line

*If you want to merge 2 SYMBOLS instead (e.g. XAUUSD + EURUSD):*

# Get both
gold = get_data("XAUUSD", mt5.TIMEFRAME_H1, 500)[['close']].rename(columns={'close': 'GOLD'})
eur = get_data("EURUSD", mt5.TIMEFRAME_H1, 500)[['close']].rename(columns={'close': 'EURUSD'})

# Merge on time
merged_symbols = pd.merge(gold, eur, left_index=True, right_index=True, how='inner')

# Plot correlation
merged_symbols.plot(figsize=(14,6), title='GOLD vs EURUSD - Merged')

Which merge do you want to build?
1. Same symbol, different timeframes (M1 + H1) - for trend filter
2. Different symbols together - for correlation
3. Merge MT5 data from a CSV file + live MT5

Tell me which one and your symbol, I'll give you the exact code for it.

Bewerbungen

1
Entwickler 1
Bewertung
(64)
Projekte
145
46%
Schlichtung
21
38% / 24%
Frist nicht eingehalten
32
22%
Frei
2
Entwickler 2
Bewertung
(19)
Projekte
22
18%
Schlichtung
9
33% / 44%
Frist nicht eingehalten
3
14%
Arbeitet
Veröffentlicht: 2 Beispiele
3
Entwickler 3
Bewertung
(23)
Projekte
34
53%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
1
3%
Frei
4
Entwickler 4
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(5)
Projekte
7
86%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 4 Beispiele
8
Entwickler 8
Bewertung
(1)
Projekte
1
100%
Schlichtung
0
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
10
Entwickler 10
Bewertung
(2)
Projekte
3
33%
Schlichtung
0
Frist nicht eingehalten
2
67%
Frei
11
Entwickler 11
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 4 Beispiele
Ähnliche Aufträge
I'm looking for a developer to build a simple cloud-based monitoring and alert system for a trading account whose performance statistics are displayed on a third-party website. The system should: 1. Monitor the account's balance, equity and open positions. 2. Calculate the current floating drawdown as a percentage of account balance. 3. Send a single alert, preferably via WhatsApp or alternatively email, when
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical

Projektdetails

Budget
30+ USD

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0