指定

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

応答済み

1
開発者 1
評価
(624)
プロジェクト
981
47%
仲裁
32
38% / 34%
期限切れ
96
10%
仕事中
パブリッシュした人: 6 codes
2
開発者 2
評価
(103)
プロジェクト
163
23%
仲裁
23
9% / 78%
期限切れ
16
10%
仕事中
3
開発者 3
評価
(1)
プロジェクト
0
0%
仲裁
2
0% / 100%
期限切れ
0
4
開発者 4
評価
(270)
プロジェクト
399
27%
仲裁
39
41% / 49%
期限切れ
1
0%
5
開発者 5
評価
(1)
プロジェクト
1
0%
仲裁
2
0% / 0%
期限切れ
0
仕事中
6
開発者 6
評価
(2)
プロジェクト
3
0%
仲裁
1
0% / 100%
期限切れ
0
仕事中
7
開発者 7
評価
プロジェクト
2
0%
仲裁
4
25% / 50%
期限切れ
1
50%
8
開発者 8
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
9
開発者 9
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
10
開発者 10
評価
(32)
プロジェクト
35
34%
仲裁
5
0% / 80%
期限切れ
0
仕事中
パブリッシュした人: 2 codes
11
開発者 11
評価
(249)
プロジェクト
255
30%
仲裁
0
期限切れ
3
1%
パブリッシュした人: 2 codes
12
開発者 12
評価
(1)
プロジェクト
0
0%
仲裁
1
0% / 100%
期限切れ
0
13
開発者 13
評価
(4)
プロジェクト
3
33%
仲裁
2
0% / 100%
期限切れ
0
14
開発者 14
評価
(11)
プロジェクト
14
14%
仲裁
5
20% / 20%
期限切れ
4
29%
取り込み中
15
開発者 15
評価
(1)
プロジェクト
0
0%
仲裁
5
0% / 80%
期限切れ
0
16
開発者 16
評価
(128)
プロジェクト
167
39%
仲裁
9
44% / 0%
期限切れ
29
17%
取り込み中
17
開発者 17
評価
(5)
プロジェクト
8
13%
仲裁
3
0% / 33%
期限切れ
2
25%
パブリッシュした人: 1 code
18
開発者 18
評価
(4)
プロジェクト
7
0%
仲裁
3
33% / 33%
期限切れ
3
43%
仕事中
19
開発者 19
評価
(3)
プロジェクト
1
100%
仲裁
3
0% / 100%
期限切れ
0
20
開発者 20
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
21
開発者 21
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
22
開発者 22
評価
(29)
プロジェクト
28
64%
仲裁
0
期限切れ
1
4%
仕事中
パブリッシュした人: 5 codes
類似した注文
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
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order
EMA Triple-Cross Trading EA Constitution 1. Instruments Bot operates ONLY on: • UK100 (FTSE 100 Cash) • CASH30 (Dow Jones / DJI30) • GOLD (XAUUSD) Developer Note: Please ensure proper handling of contract sizes and point values for indices vs gold when calculating lot size . 2. Chart & Timeframes Primary Execution Timeframe: ➡ M15 Higher Timeframe Bias: ➡ H1 Trades are allowed ONLY in the direction of H1 EMA200: •
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
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
I need a fully automated end-to-end system where a backend continuously runs my deterministic CORE EDGE validator on live market data, generates numeric JSON trade tickets (GO) or alert levels (NO-GO), and automatically pushes those instructions to the MT5 EA for execution. There are no manual signals. ROLE SPLIT (IMPORTANT) Backend (analysis & decision engine): Continuously evaluates live data using my CORE EDGE
Hi, I’m looking for someone with real Build Alpha experience to help set up an index-trading ruleset inside Build Alpha. Important: This work cannot be done without full access to Build Alpha . You must already own a Build Alpha licence and actively use the platform. Please do not apply if you do not currently have Build Alpha. What needs to be set up in Build Alpha 1. Session and Time Rules • Fixed GMT trading
An Expert Advisor (EA) robot that uses market movement-based indicators is an automated program designed for platforms like MetaTrader 4 or 5 (MT4/MT5) that monitors price fluctuations and triggers trades based on predefined technical rules. These robots, often used for trend following, scalping, or breakout strategies, analyze price action, moving averages, or volatility to automatically enter and exit trades
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done

プロジェクト情報

予算
30 - 500 USD