Specifiche

//+------------------------------------------------------------------+
//| 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");
}

Con risposta

1
Sviluppatore 1
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
1
100%
In elaborazione
2
Sviluppatore 2
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(382)
Progetti
491
23%
Arbitraggio
59
54% / 25%
In ritardo
56
11%
Caricato
4
Sviluppatore 4
Valutazioni
(104)
Progetti
125
24%
Arbitraggio
23
26% / 52%
In ritardo
8
6%
In elaborazione
5
Sviluppatore 5
Valutazioni
(4)
Progetti
9
56%
Arbitraggio
1
0% / 100%
In ritardo
1
11%
In elaborazione
6
Sviluppatore 6
Valutazioni
(7)
Progetti
7
0%
Arbitraggio
2
50% / 0%
In ritardo
1
14%
In elaborazione
7
Sviluppatore 7
Valutazioni
(43)
Progetti
74
50%
Arbitraggio
5
0% / 60%
In ritardo
19
26%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(4)
Progetti
4
100%
Arbitraggio
0
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
(21)
Progetti
26
27%
Arbitraggio
0
In ritardo
2
8%
In elaborazione
12
Sviluppatore 12
Valutazioni
(258)
Progetti
264
30%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
13
Sviluppatore 13
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
14
Sviluppatore 14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(362)
Progetti
435
54%
Arbitraggio
20
55% / 15%
In ritardo
30
7%
In elaborazione
16
Sviluppatore 16
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
17
Sviluppatore 17
Valutazioni
(49)
Progetti
50
8%
Arbitraggio
0
In ritardo
0
Gratuito
18
Sviluppatore 18
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
19
Sviluppatore 19
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
20
Sviluppatore 20
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
21
Sviluppatore 21
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
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 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
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
Patricia Ukawilu 6:43 PM I need help creating an EA to optimize my trade. I already have a preliminary pine script which I will want optimized and create an EA from it to optimize my trade on MT4. I also subscribed to a signal app. I’m looking to automate the execution of the signal from the app so as not to miss out on good trades
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

Informazioni sul progetto

Budget
500+ USD
Scadenze
da 1 a 7 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0