Two currency pair scalping

Trabajo finalizado

Plazo de ejecución 4 horas
Comentario del Cliente
Good support and job delivery as I expected thanks

Tarea técnica

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

    }

}


//+------------------------------------------------------------------+


Han respondido

1
Desarrollador 1
Evaluación
(75)
Proyectos
110
51%
Arbitraje
25
28% / 52%
Caducado
9
8%
Trabaja
2
Desarrollador 2
Evaluación
(13)
Proyectos
18
11%
Arbitraje
5
40% / 60%
Caducado
1
6%
Trabaja
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(153)
Proyectos
236
33%
Arbitraje
20
45% / 30%
Caducado
1
0%
Trabaja
4
Desarrollador 4
Evaluación
(72)
Proyectos
80
10%
Arbitraje
38
8% / 58%
Caducado
6
8%
Libre
5
Desarrollador 5
Evaluación
(429)
Proyectos
628
54%
Arbitraje
31
52% / 23%
Caducado
6
1%
Trabajando
6
Desarrollador 6
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
Solicitudes similares
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
de 1 a 5 día(s)