指定

//+------------------------------------------------------------------+
//|                                                     SimpleEA.mq4 |
//|                        Generated by MetaEditor                   |
//|                   https://www.mql5.com/en/docs                   |
//+------------------------------------------------------------------+
#property strict

// Input parameters
input double LotSize = 0.1; // Lot size
input int MovingAveragePeriod = 50; // MA period

// Global variables
double maCurrent;
double maPrevious;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   // Initialization of variables
   maCurrent = 0;
   maPrevious = 0;
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   // Cleanup code here
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   // Calculate current and previous MA
   maCurrent = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   maPrevious = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   // Check for buy signal
   if (maPrevious < Close[1] && maCurrent > Close[0])
     {
      // Open buy order
      OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, Blue);
     }
   
   // Check for sell signal
   if (maPrevious > Close[1] && maCurrent < Close[0])
     {
      // Open sell order
      OrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, "Sell Order", 0, 0, Red);
     }
  }
//+------------------------------------------------------------------+

反馈

1
开发者 1
等级
(153)
项目
191
58%
仲裁
10
80% / 0%
逾期
0
空闲
发布者: 1 代码
2
开发者 2
等级
(374)
项目
481
23%
仲裁
58
55% / 26%
逾期
56
12%
已载入
3
开发者 3
等级
(2)
项目
5
0%
仲裁
3
0% / 100%
逾期
1
20%
工作中
4
开发者 4
等级
(9)
项目
19
16%
仲裁
3
67% / 0%
逾期
0
空闲
5
开发者 5
等级
(5)
项目
2
0%
仲裁
4
0% / 100%
逾期
0
空闲
6
开发者 6
等级
(303)
项目
309
69%
仲裁
2
100% / 0%
逾期
0
空闲
发布者: 1 代码
7
开发者 7
等级
(144)
项目
186
41%
仲裁
24
58% / 21%
逾期
13
7%
空闲
8
开发者 8
等级
(33)
项目
38
21%
仲裁
5
0% / 60%
逾期
0
空闲
9
开发者 9
等级
(250)
项目
256
30%
仲裁
0
逾期
3
1%
空闲
发布者: 2 代码
10
开发者 10
等级
(45)
项目
46
24%
仲裁
34
9% / 85%
逾期
10
22%
空闲
11
开发者 11
等级
(72)
项目
80
10%
仲裁
38
8% / 58%
逾期
6
8%
空闲
12
开发者 12
等级
(2)
项目
2
100%
仲裁
1
0% / 0%
逾期
0
空闲
13
开发者 13
等级
(3)
项目
2
50%
仲裁
2
0% / 100%
逾期
0
空闲
14
开发者 14
等级
(4)
项目
4
0%
仲裁
1
0% / 0%
逾期
0
空闲
相似订单
Recent EA 30+ USD
PROP-FIRM FOREX EA (SAFE MODE) 1. EA OBJECTIVE Develop a low-drawdown, high-discipline Forex EA designed to: Pass prop-firm challenges Respect strict risk rules Trade consistently, not aggressively 2. TRADING STYLE Strategy type: Trend continuation + pullback No scalping noise No martingale No grid No hedge abuse 3. TIMEFRAME & SESSIONS Primary TF: M15 Confirmation TF: H1 Trading sessions: London Open → London Close
Specification Hi Free lancers, I need an EA which relates to Sure Fire Hedging EA base on Below parameters needed. Overview how it works: This EA will be able to open a trade with either Buy or Sell selection (manual- to be manually switch buy or sell selection ), another selection for automatic open trading can choose only buy. Once the EA already open trade (example -buy position) with starting lot size 0.01
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
Meta4 30+ USD
Good broker please i want to make. Money for myself to pay for the year of the year and I will pay you for it for your money you will receive i need a good good broker
Busco programador profesional con experiencia demostrable en MQL5 para crear un Expert Advisor en MetaTrader 5 basado en Price Action , con lógica jerárquica, reglas objetivas y gestión de zonas dinámicas. La estrategia esta explicada en un documento Word de 30 páginas (con imágenes) explicado en español. Características del EA: Operaciones Buy, Sell, Buy Limit y Sell Limit (máx. 2 operaciones pendientes simultáneas
Multi-Slave Inverse Hedging EA with Martingale Grid — MT5 Category: Experts Description: I am looking for an experienced MQL5 developer to build a professional-grade Expert Advisor system called Hedging EA Trader . This is a well-documented project — I have a full 30+ page Software Requirements Specification (SRS) ready to share with the selected developer. System Overview: The EA uses a Master/Slave architecture: 1
I want a modification on my ea . A spread filter or slipage filter such that when the market price is less than 50 point away from the pend order , then ea check the spread if less than the set filter spread. If spread is more than the set spread, the ea will delete the pend order . Secondly , if the broker price is moved or sliped the pending order from the original price it was set by the tolerable slipage distance
Hi, I’m currently looking to purchase a profitable Expert Advisor (EA) for XAUUSD on MT4 and different Symbols . If you have an EA that has consistently been profitable, I’d be interested in purchasing the source code. I would like to backtest the strategy and evaluate it before making any purchases. What I’m ideally looking for: Designed specifically for XAUUSD (MT4) Consistent profitability with solid risk
1. Objective Create an MT5 automation script (or set of scripts) that fully automates my strategy optimization workflow, including: • Batch optimization runs • Automatic filtering of results • Automatic forward testing • Exporting and organizing results into structured files/folders The goal is to reduce manual work and allow one‑click execution of the entire pipeline. 2. Platform & Environment • MetaTrader 5 •
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away

项目信息

预算
50+ USD