Spécifications
//+------------------------------------------------------------------+
//| 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");
}
Répondu
1
Évaluation
Projets
1
0%
Arbitrage
0
En retard
1
100%
Travail
2
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
3
Évaluation
Projets
491
23%
Arbitrage
59
54%
/
25%
En retard
56
11%
Chargé
4
Évaluation
Projets
125
24%
Arbitrage
23
26%
/
52%
En retard
8
6%
Travail
5
Évaluation
Projets
9
56%
Arbitrage
1
0%
/
100%
En retard
1
11%
Travail
6
Évaluation
Projets
7
0%
Arbitrage
2
50%
/
0%
En retard
1
14%
Travail
7
Évaluation
Projets
74
50%
Arbitrage
5
0%
/
60%
En retard
19
26%
Gratuit
8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Évaluation
Projets
4
100%
Arbitrage
0
En retard
0
Gratuit
10
Évaluation
Projets
0
0%
Arbitrage
2
0%
/
100%
En retard
0
Gratuit
11
Évaluation
Projets
26
27%
Arbitrage
0
En retard
2
8%
Travail
12
Évaluation
Projets
264
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Évaluation
Projets
435
54%
Arbitrage
20
55%
/
15%
En retard
30
7%
Travail
16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Évaluation
Projets
50
8%
Arbitrage
0
En retard
0
Gratuit
18
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
19
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
Commandes similaires
Job Description I'm seeking an expert Python developer to build a fully automated, institution‑grade options trading bot for my Charles Schwab brokerage account. The core strategy is a Monday‑morning 5‑DTE Iron Condor on SPX weekly options with ultra‑narrow 1‑point wings, a fixed 17‑strike OTM entry, and a layered defense system that actively re‑centers the position when the market moves—then escalates to hard stops
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
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
I am looking for an experienced developer in MQL5 to build a fully AI and automated trading bot (Expert Advisor) for MetaTrader 5. The EA will trade XAUUSD only and will be based purely on price action and Smart Money Concepts (SMC), specifically focusing on liquidity sweeps, market structure shifts (MSS/CHoCH), and wick rejection entries at key points of interest (POIs). The system must follow a strict rule: no
Expert NinjaTrader Programmer Needed
60 - 100 USD
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
Early Killer EA
30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
5 minute Buy Stop and Sell Stop order EA
30 - 200 USD
أبحث عن خبير تداول آلي (EA) أرفقتُ فيديو له. يقوم هذا الخبير بوضع أوامر شراء معلقة وبيع معلقة على بُعد 250 نقطة أعلى وأسفل السعر الحالي كل دقيقة، مع تحديد مستوى وقف الخسارة (SL) عند 300 نقطة ومستوى جني الربح (TP) عند 500 نقطة. إذا تم تفعيل أيٍّ من هذين الأمرين خلال الدقيقة، يتم إلغاء الآخر. لا يقوم الخبير بوضع أي أوامر معلقة حتى يتم الوصول إلى مستوى وقف الخسارة أو جني الربح، ثم يضع مجموعة جديدة من الأوامر المعلقة في
Convert Two Ex4 file Into EA
30+ USD
Am looking for good programmer to help me to convert two Ex4 file into EA. The first indicator provide 9 tools signal and the second indicator is Candle stick strategy. Kindly see the attached file for proper explanation about the BOT. Below is discription 🔹 PART 1: Candle Structure Strategy (Daily / Weekly / Monthly) ✅ Core Idea You are trading alignment of higher timeframe direction with lower timeframe
Looking for experience profitable manual traders that will be willing to trade my live mt5 account for profit share. Requirements Must have at least 6 months of profitable months. Min 10 percent monthly Send me investor credentials for mt5 or mt4 account. Can be trading Any instruments. Must reply with mt5 credentials or will disregard
Informations sur le projet
Budget
500+ USD
Délais
de 1 à 7 jour(s)
Client
Commandes passées2
Nombre d'arbitrages0