Tarea técnica
//+------------------------------------------------------------------+
//| MyBot.mq5 |
//| Created using MQL5 |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade; // Create a trade object
// Define input parameters
input int FastMAPeriod = 10;
input int SlowMAPeriod = 50;
input int RSI_Period = 14;
input int MACD_FastEMA = 12;
input int MACD_SlowEMA = 26;
input int MACD_SignalSMA = 9;
// Function to calculate support and resistance (simple example)
double FindSupport(int candles) {
double lowest = iLow(NULL, 0, iLowest(NULL, 0, MODE_LOW, candles, 0));
return lowest;
}
double FindResistance(int candles) {
double highest = iHigh(NULL, 0, iHighest(NULL, 0, MODE_HIGH, candles, 0));
return highest;
}
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit() {
return INIT_SUCCEEDED;
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason) {
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick() {
// Get current prices
double priceCurrent = iClose(NULL, 0, 0);
double priceHigh = iHigh(NULL, 0, 10); // High over the past 10 candles
double priceLow = iLow(NULL, 0, 10); // Low over the past 10 candles
// Calculate indicators
double FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
double SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
double RSI = iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, 0);
double MACD_Main, MACD_Signal;
MACD_Main = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_MAIN, 0);
MACD_Signal = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_SIGNAL, 0);
// Calculate stop-loss and take-profit distances
double SL_Distance = MathAbs(priceCurrent - (priceHigh + priceLow) / 2);
double TP_Distance = SL_Distance * 2; // Minimum TP, adjustable
// Check Buy Condition
if (FastMA > SlowMA && RSI > 30 && RSI < 70 && MACD_Main > MACD_Signal) {
double tpLevel = priceCurrent + TP_Distance;
double slLevel = priceCurrent - SL_Distance;
// Ensure TP is below the nearest resistance level
double resistance = FindResistance(20);
if (tpLevel > resistance) {
tpLevel = resistance;
}
trade.Buy(0.1, priceCurrent, slLevel, tpLevel, "Buy Order");
}
// Check Sell Condition
if (FastMA < SlowMA && RSI > 30 && RSI < 70 && MACD_Main < MACD_Signal) {
double tpLevel = priceCurrent - TP_Distance;
double slLevel = priceCurrent + SL_Distance;
// Ensure TP is above the nearest support level
double support = FindSupport(20);
if (tpLevel < support) {
tpLevel = support;
}
trade.Sell(0.1, priceCurrent, slLevel, tpLevel, "Sell Order");
}
}
Han respondido
1
Evaluación
Proyectos
110
51%
Arbitraje
25
28%
/
52%
Caducado
9
8%
Trabaja
2
Evaluación
Proyectos
22
36%
Arbitraje
3
33%
/
33%
Caducado
1
5%
Trabaja
Ha publicado: 3 ejemplos
3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Evaluación
Proyectos
29
21%
Arbitraje
20
10%
/
50%
Caducado
8
28%
Trabaja
5
Evaluación
Proyectos
0
0%
Arbitraje
2
0%
/
100%
Caducado
0
Libre
6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Build MT5 Expert Advisor – LadyKiller EA
1000 - 2000 USD
I am looking for a professional MQL5 developer to build a MetaTrader 5 Expert Advisor from scratch. The EA will be called LadyKiller EA. It must trade only the following instruments: • XAUUSD (Gold) • US30 / Dow Jones Index Requirements: • Strong and reliable buy and sell entry logic • Stop Loss and Take Profit system • Risk management (lot size control) • Maximum trades protection • Drawdown protection • Trend
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
Looking for a Powerful MT5 Trading Strategy or Custom EA?
1000 - 1200 USD
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I have an existing MT5 Expert Advisor (“E-Core”). I need an experienced MQL5 developer to integrate a structured risk management upgrade and a higher timeframe trend filter into the current code. Two files will be provided: 1️⃣ E-Core Source Code (Current Version) 2️⃣ Update Instructions File (contains exact inputs, functions, and logic to integrate) The developer must: Integrate the update logic
Optimization for Gold (XAUUSD) Expert
30 - 100 USD
I have a working MT5 Expert Advisor. I am NOT looking to change the strategy logic. I only need professional optimization and performance improvement. Requirements: • Parameter optimization • Risk adjustment • Max drawdown reduction • Forward testing report • Optimization for Gold (XAUUSD) Please provide previous optimization reports
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Información sobre el proyecto
Presupuesto
30 - 50 USD