Specifiche

//+------------------------------------------------------------------+
//| ScalperEA.mq5 |
//+------------------------------------------------------------------+
#property copyright "Template"
#property version "1.00"
#property strict

input int FastEMA = 8;
input int SlowEMA = 21;
input int AtrPeriod = 14;
input double StopAtrMult = 1.2;
input double TpAtrMult = 1.0;
input double RiskPercent = 0.5; // percent account risk per trade
input int Magic = 123456;
input double Lots = 0.01;

double EMAFast[], EMASlow[], ATRArr[];

int OnInit()
{
  SetIndexBuffer(0, EMAFast);
  SetIndexBuffer(1, EMASlow);
  // nothing to set for ATR; we'll compute using iATR
  return(INIT_SUCCEEDED);
}

void OnTick()
{
  // get last two closed candles
  int shift = 1; // last closed bar
  double fast_prev = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
  double fast_last = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
  double slow_prev = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
  double slow_last = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
  double atr = iATR(NULL, PERIOD_CURRENT, AtrPeriod, shift);

  if (atr <= 0) return;

  // simple crossover signals
  if (fast_prev <= slow_prev && fast_last > slow_last)
  {
    // buy signal
    double entry = SymbolInfoDouble(_Symbol, SYMBOL_BID); // or use Ask for buy market entry
    double stop = entry - StopAtrMult * atr;
    double tp = entry + TpAtrMult * atr;
    double lots = Lots;
    // optionally compute lots from RiskPercent and stop distance
    // place market buy
    trade_buy(lots, stop, tp);
  }
  else if (fast_prev >= slow_prev && fast_last < slow_last)
  {
    // sell signal
    double entry = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
    double stop = entry + StopAtrMult * atr;
    double tp = entry - TpAtrMult * atr;
    trade_sell(Lots, stop, tp);
  }
}

void trade_buy(double lots, double stop, double tp)
{
  MqlTradeRequest req;
  MqlTradeResult res;
  ZeroMemory(req);
  req.action = TRADE_ACTION_DEAL;
  req.symbol = _Symbol;
  req.volume = lots;
  req.type = ORDER_TYPE_BUY;
  req.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
  req.sl = stop;
  req.tp = tp;
  req.deviation = 5;
  req.magic = Magic;
  OrderSend(req, res);
}

void trade_sell(double lots, double stop, double tp)
{
  MqlTradeRequest req;
  MqlTradeResult res;
  ZeroMemory(req);
  req.action = TRADE_ACTION_DEAL;
  req.symbol = _Symbol;
  req.volume = lots;
  req.type = ORDER_TYPE_SELL;
  req.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
  req.sl = stop;
  req.tp = tp;
  req.deviation = 5;
  req.magic = Magic;
  OrderSend(req, res);
}

Con risposta

1
Sviluppatore 1
Valutazioni
(624)
Progetti
981
47%
Arbitraggio
32
38% / 34%
In ritardo
96
10%
In elaborazione
Pubblicati: 6 codici
2
Sviluppatore 2
Valutazioni
(103)
Progetti
163
23%
Arbitraggio
23
9% / 78%
In ritardo
16
10%
In elaborazione
3
Sviluppatore 3
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(270)
Progetti
399
27%
Arbitraggio
39
41% / 49%
In ritardo
1
0%
Gratuito
5
Sviluppatore 5
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
6
Sviluppatore 6
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
1
0% / 100%
In ritardo
0
In elaborazione
7
Sviluppatore 7
Valutazioni
Progetti
2
0%
Arbitraggio
4
25% / 50%
In ritardo
1
50%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(32)
Progetti
35
34%
Arbitraggio
5
0% / 80%
In ritardo
0
In elaborazione
Pubblicati: 2 codici
11
Sviluppatore 11
Valutazioni
(249)
Progetti
255
30%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
12
Sviluppatore 12
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(4)
Progetti
3
33%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(11)
Progetti
14
14%
Arbitraggio
5
20% / 20%
In ritardo
4
29%
Caricato
15
Sviluppatore 15
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
5
0% / 80%
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
(128)
Progetti
167
39%
Arbitraggio
9
44% / 0%
In ritardo
29
17%
Caricato
17
Sviluppatore 17
Valutazioni
(5)
Progetti
8
13%
Arbitraggio
3
0% / 33%
In ritardo
2
25%
Gratuito
Pubblicati: 1 codice
18
Sviluppatore 18
Valutazioni
(4)
Progetti
7
0%
Arbitraggio
3
33% / 33%
In ritardo
3
43%
In elaborazione
19
Sviluppatore 19
Valutazioni
(3)
Progetti
1
100%
Arbitraggio
3
0% / 100%
In ritardo
0
Gratuito
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
22
Sviluppatore 22
Valutazioni
(29)
Progetti
28
64%
Arbitraggio
0
In ritardo
1
4%
In elaborazione
Pubblicati: 5 codici
Ordini simili
Algo Trading Rebot/ EA 30 - 100 USD
I would like someone Who can design an EA for me. I will give him the Required Details and Trading Plan How it should Work. its going to be a Simple EA System Around Moving Averages Crossover. I will Provide Him the Moving Averages Settings and How It should execute trades and Exit them
No jokers copy pasters allowed. If you're proficient in MQL5, have a proven track record with EAs apply. Commissioning the development of a high-performance Expert Advisor (EA) engineered for the MetaTrader 5 (MT5) environment. The objective is to deploy an institutional-grade automated trading system capable of systematic market analysis, precision execution, and strict risk governance within the global forex
I have been trading manually for years by disciplining myself to follow a rigorous risk management system and using entry and exit strategies crafted from Implied Volatility(IV), Real Volume ,RSI and Moving Average ,but never had I automated the entire system until now . I have just completed the automation of the gold Expert Advisor and the results are astonishing .Below you'll see the graph and a statistics file
I got access to a trial mt5 EA(only ex5 and not mql5 file) which is an ultra fast scalper on gold that operates only using pending orders which is working absolutely insane when backtesting or live trading using demo account but when you try to back test it on a live/real account the results are horrible !...both demo and real accounts belong to the same broker both same leverage and same type spread wise but the EA
The EA should focus on high-speed scalping on the 1-minute timeframe or every tick execution and must perform incredibly well on demo accounts with consistent profitability. EA Requirements: Platform: MetaTrader 5 (MT5) Trading style: Scalping (1-minute or tick-based execution) Dynamic lot size increase system (auto lot multiplier or equity-based lot adjustment) Should work efficiently even on minimum equity (as low
Scope Build a new EA from scratch implementing my provided strategy rules exactly. Deterministic, one logical action per tick (close OR place OR modify OR delete). Two-sided system (BUY + SELL). Includes stacking/maintenance, hygiene (pending correction), reduction closes, breakeven close logic, and a final termination/unwind mode. Iteration workflow (LOCKED / UNLOCKED) . Developer must maintain two copies/branches
I am looking for an experienced MQL5 developer to build a professional, fully automated Expert Advisor (EA) for MetaTrader 5 . This project is focused on risk-controlled, long-term consistency , not unrealistic promises. 🧑‍💻 Developer Requirements (Very Important) Please apply only if you meet these criteria : ✅ Rating 4.7+ ✅ 50+ completed jobs (more is better) ✅ 3+ years experience with MQL5 ✅ Strong understanding
## Project Summary I am hiring an experienced *MQL5 developer* to convert an existing *Heikin Ashi–based scalping strategy (currently written in Pine Script)* into a fully automated Expert Advisor for *MetaTrader 5*. The trading logic already exists. Your role is implementation, execution reliability, and engineering improvements — particularly eliminating trades during consolidation/ranging markets. This is a custom
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it

Informazioni sul progetto

Budget
30 - 500 USD