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
}
}
//+------------------------------------------------------------------+
Ähnliche Aufträge
Title: Design and Development of an Automated Forex Trading Robot Using MQL5 and Machine Learning Techniques Abstract: This project focuses on the design and development of an automated Forex trading robot that integrates MQL5 programming and machine learning techniques. The system aims to predict market movements and execute trades automatically, minimizing human error and emotional trading. By leveraging historical
I’ve been following your profile and I'm interested in your expertise with the ATAS API and C# development. I have a clear technical scope for a high-performance M1 indicator focused on Binary Options and Scalping. The core logic is based on institutional Order Flow convergence: Stacked Imbalances: 300% ratio with a minimum of 3 consecutive levels. Delta/Price Divergence: Filtering for market exhaustion (New Highs
I'm looking to have a tradingview strategy translated to work on ninjatrader. Right now I'm using webhooks together with the platform Crosstrade to automate the strategy and have the trades take place on Tradingview. Let me know if that's something you can help me out with
Hello, Please read the full specification before applying. This project is NOT about building an EA from scratch. I already have a fully working MT5 Expert Advisor. The EA already includes a dashboard, risk management, and some protection systems, but it needs a few more features . So I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
APARTE DE PASAR EL CÓDIGO A MT5 QUIERO QUE CONTENGA TODOS LOS DATOS NECESARIOS PARA QUE ESTE NUEVO CÓDIGO SE PUEDA USAR EN LA FÁBRICACIÓN DE UN ROBOT, NO SE MUCHO DE ESTO PERO INVESTIGUE QUE DEBE LEER BUFFERS Y OTRAS COSAS
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
أنا أبحث عن مبرمج محترف لإنشاء روبوت تداول (Expert Advisor) يعمل على منصة MetaTrader 4 أو MetaTrader 5. مواصفات الروبوت: يعمل على زوج XAUUSD (الذهب) يفتح صفقة شراء أو بيع حسب الإشارة يعتمد على مؤشرين: Moving Average RSI عندما يتقاطع الموفينغ أفريج مع الاتجاه ويؤكد مؤشر RSI يتم فتح الصفقة. إدارة المخاطر: تحديد Stop Loss تحديد Take Profit عدم فتح أكثر من صفقة في نفس الوقت إمكانية تغيير الإعدادات بسهولة. مطلوب: كود نظيف