Tarea técnica
//+------------------------------------------------------------------+
//| Simple Moving Average Crossover EA |
//+------------------------------------------------------------------+
#property strict
input int ShortMA = 10;
input int LongMA = 50;
input double LotSize = 0.01;
int shortMAHandle;
int longMAHandle;
//+------------------------------------------------------------------+
int OnInit()
{
shortMAHandle = iMA(_Symbol, _Period, ShortMA, 0, MODE_SMA, PRICE_CLOSE);
longMAHandle = iMA(_Symbol, _Period, LongMA, 0, MODE_SMA, PRICE_CLOSE);
if(shortMAHandle == INVALID_HANDLE || longMAHandle == INVALID_HANDLE)
{
Print("Error creating MA indicators");
return(INIT_FAILED);
}
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
double shortMA[], longMA[];
CopyBuffer(shortMAHandle, 0, 0, 3, shortMA);
CopyBuffer(longMAHandle, 0, 0, 3, longMA);
double prevShort = shortMA[1];
double prevLong = longMA[1];
double currShort = shortMA[0];
double currLong = longMA[0];
// Check if there are open positions
bool hasPosition = PositionSelect(_Symbol);
// BUY condition
if(prevShort < prevLong && currShort > currLong)
{
if(!hasPosition)
{
OpenBuy();
}
}
// SELL condition
if(prevShort > prevLong && currShort < currLong)
{
if(hasPosition)
{
ClosePosition();
}
}
}
//+------------------------------------------------------------------+
void OpenBuy()
{
MqlTradeRequest request;
MqlTradeResult result;
ZeroMemory(request);
ZeroMemory(result);
request.action = TRADE_ACTION_DEAL;
request.symbol = _Symbol;
request.volume = LotSize;
request.type = ORDER_TYPE_BUY;
request.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
request.deviation = 10;
request.magic = 123456;
OrderSend(request, result);
Print("BUY order sent");
}
//+------------------------------------------------------------------+
void ClosePosition()
{
if(!PositionSelect(_Symbol)) return;
ulong ticket = PositionGetInteger(POSITION_TICKET);
MqlTradeRequest request;
MqlTradeResult result;
ZeroMemory(request);
ZeroMemory(result);
request.action = TRADE_ACTION_DEAL;
request.symbol = _Symbol;
request.volume = PositionGetDouble(POSITION_VOLUME);
request.type = ORDER_TYPE_SELL;
request.position = ticket;
request.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
request.deviation = 10;
request.magic = 123456;
OrderSend(request, result);
Print("Position closed");
}
Han respondido
1
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
1
100%
Trabaja
2
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
3
Evaluación
Proyectos
491
23%
Arbitraje
59
54%
/
25%
Caducado
56
11%
Trabajando
4
Evaluación
Proyectos
125
24%
Arbitraje
23
26%
/
52%
Caducado
8
6%
Trabaja
5
Evaluación
Proyectos
9
56%
Arbitraje
1
0%
/
100%
Caducado
1
11%
Trabaja
6
Evaluación
Proyectos
7
0%
Arbitraje
2
50%
/
0%
Caducado
1
14%
Trabaja
7
Evaluación
Proyectos
74
50%
Arbitraje
5
0%
/
60%
Caducado
19
26%
Libre
8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Evaluación
Proyectos
4
100%
Arbitraje
0
Caducado
0
Libre
10
Evaluación
Proyectos
0
0%
Arbitraje
2
0%
/
100%
Caducado
0
Libre
11
Evaluación
Proyectos
26
27%
Arbitraje
0
Caducado
2
8%
Trabaja
12
Evaluación
Proyectos
264
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
15
Evaluación
Proyectos
435
54%
Arbitraje
20
55%
/
15%
Caducado
30
7%
Trabaja
16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Evaluación
Proyectos
50
8%
Arbitraje
0
Caducado
0
Libre
18
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
Solicitudes similares
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8
Intraday Trade Ninja EA
33+ USD
Intraday Trade Ninja EA Indicators used: Price Border(TMA) MA-X Arrows xSuperTrend Candles EMA 49 & 89- Per Candle Color Switching Lemansignal 200 SMA Major Criteria to consider before a trade setup or condition is taken · The price must have touched/tested the upper or
Samuel
100+ USD
//+------------------------------------------------------------------+ //| LEVEL 100 SNIPER BOT (SMC + ATR + RSI + Trend Filter) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //--- Inputs input double RiskPercent = 1.0; input int FastMA = 20; input int SlowMA = 50; input int RSI_Period = 14; input int ATR_Period = 14; input
Panda402
30 - 100000 USD
The file must be fast to move with the market. It must be transparent it must move accordingly with the market and increase the money and also with less risk
Description: I am looking for an experienced MT4/MT5 (MQL4/MQL5) developer for consultation and possible future development of an advanced Expert Advisor architecture. This is NOT a simple RSI, MACD, martingale, or indicator-only EA project. I already have an existing EA framework using: RSI timing logic EMA direction filters trend and volatility filters DCA / basket management protection and recovery logic Now I
I need an experienced MQL5 developer to build a custom MT5 Expert Advisor for XAUUSD. Strategy Overview: Trend-following using EMA 50/200 on H4 and H1 Pullback entries on M5 using RSI + candle confirmation No martingale, no averaging down Controlled scaling only when trades are already in profit Maximum 2–3 positions per direction Risk Management: Daily loss limit (%) Equity hard stop (%) Consecutive loss pause
I am looking for an experienced MT4 developer or strategy tester to run a comprehensive optimization of my existing Expert Advisor (EA). The EA is already developed and working as intended — your task will be to configure and execute the optimization process using the "Every tick based on real ticks" model. Scope of Work: Run EA optimization in MT4 Strategy Tester. Use "Every tick based on real ticks" as the
Gold Edge Pro
30 - 150 USD
Create a fully working Expert Advisor (EA) for MetaTrader 5, designed exclusively for GOLD (XAUUSD only). This is a high‑probability trend‑following breakout strategy built specifically for passing 2‑step prop firm challenges — it delivers a ~60–65% win rate, uses a strict 1:3 risk/reward ratio, and is optimised to pass both phases in roughly 1–2 weeks total. --- ⚙️ USER INPUTS — FULLY FLEXIBLE RISK --- All main
This EA is for trading XAUUSD. There are 2 trade logics. One based on trend reversal (with 5 trade opening conditions). The second is based on trend continuation (with 1-2 conditions)
I want the bot to be fully automated trading key levels of (support and resistance ) from the higher-timeframe with atleast a 70% win rate. Experienced developer with atleast 3-4 years THANK YOU
Información sobre el proyecto
Presupuesto
500+ USD
Plazo límite de ejecución
de 1 a 7 día(s)
Cliente
Encargos realizados2
Número de arbitrajes0