I want an EA Expert advisor that place trade at the same time for two pair of currency The EA place trade automatically when is loaded on the chart, The user should be able to choose which currency pair to trade the two pair The EA should have a option to sellect slipage between the two pair The EA should have take profit based on diffrence of winning and loosing trade pair if the difference between both trade is positive in certain percentage this should be the user to define take profit is execute The EA should open second trade if the difference between the two pair in percentage is negative and this should be the user to define The EA should trade in anytime frame user define The EA should start trade from 0:00 AM to 23:00 PM Monday to Friday The EA should have options to close all the order manually
The EA should have option to select how many trade should be open
The EA should have option to select the buy for one currency and sell for other currency
Below is an example of the EA
//+------------------------------------------------------------------+
//| TwoPairEA.mq4|
//| Copyright 2024, Your Company |
//| https://www.yourcompany.com|
//+------------------------------------------------------------------+
#property strict
input string FirstCurrencyPair = "EURUSD";
input string SecondCurrencyPair = "GBPUSD";
input double Slippage = 3.0;
input double TakeProfitPercentage = 0.5; // Percentage difference for take profit
input double NegativeDifferencePercentage = -0.5; // Percentage difference for opening second trade
input int TradingTimeStart = 0; // Trading start time (in hours)
input int TradingTimeEnd = 23; // Trading end time (in hours)
input ENUM_TIMEFRAMES TimeFrame = PERIOD_H1; // Timeframe for trading
bool IsTradeAllowed() {
// Check if current time is within trading hours
datetime now = TimeCurrent();
int dayOfWeek = TimeDayOfWeek(now);
int hourOfDay = TimeHour(now);
if (dayOfWeek >= 1 && dayOfWeek <= 5) { // Monday to Friday
if (hourOfDay >= TradingTimeStart && hourOfDay <= TradingTimeEnd) {
return true;
}
}
return false;
}
double GetPrice(string symbol) {
return SymbolInfoDouble(symbol, SYMBOL_BID);
}
double CalculatePercentageDifference(double value1, double value2) {
return ((value1 - value2) / value2) * 100.0;
}
void OnTick() {
if (!IsTradeAllowed()) {
return;
}
double firstPairPrice = GetPrice(FirstCurrencyPair);
double secondPairPrice = GetPrice(SecondCurrencyPair);
double percentageDifference = CalculatePercentageDifference(firstPairPrice, secondPairPrice);
if (percentageDifference >= TakeProfitPercentage) {
// Place take profit order
// Implement your take profit logic here
} else if (percentageDifference <= NegativeDifferencePercentage) {
// Place second trade
// Implement logic to open second trade here
}
}
//+------------------------------------------------------------------+
비슷한 주문
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Subject: Custom MT5 Multi-Currency EA Request - Multi-Timeframe Strategy with Trailing Stop Hi, I am looking for a developer to create a custom Expert Advisor (EA) for MetaTrader 5 (MT5) . The EA must be optimized for multi-currency testing and trading , allowing me to run it across multiple currency pairs simultaneously. The trading logic should be based on a multi-timeframe approach using the following indicators
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I need to build one from scratch . Experience with Sierra Chart, ACSIL
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
Торговый робот XAUUSD AI/ML — MT5 + Python + MQL5 Ищу опытного разработчика с глубокими знаниями в следующих областях: MQL5 / MetaTrader 5 Python Машинное обучение / Искусственный интеллект Алгоритмическая торговля Проект Я хочу разработать торговую систему на основе ИИ/машинного обучения, предназначенную исключительно для XAUUSD (золото) . Архитектура: Данные рынка XAUUSD → Модель Python/ML → ПОКУПКА / ПРОДАЖА /
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs