Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(153)
Progetti
191
58%
Arbitraggio
10
80% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
2
Sviluppatore 2
Valutazioni
(374)
Progetti
481
23%
Arbitraggio
58
55% / 26%
In ritardo
56
12%
Caricato
3
Sviluppatore 3
Valutazioni
(2)
Progetti
5
0%
Arbitraggio
3
0% / 100%
In ritardo
1
20%
In elaborazione
4
Sviluppatore 4
Valutazioni
(9)
Progetti
19
16%
Arbitraggio
3
67% / 0%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(5)
Progetti
2
0%
Arbitraggio
4
0% / 100%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(303)
Progetti
309
69%
Arbitraggio
2
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
7
Sviluppatore 7
Valutazioni
(144)
Progetti
186
41%
Arbitraggio
24
58% / 21%
In ritardo
13
7%
Gratuito
8
Sviluppatore 8
Valutazioni
(33)
Progetti
38
21%
Arbitraggio
5
0% / 60%
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(250)
Progetti
256
30%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
10
Sviluppatore 10
Valutazioni
(45)
Progetti
46
24%
Arbitraggio
34
9% / 85%
In ritardo
10
22%
Gratuito
11
Sviluppatore 11
Valutazioni
(72)
Progetti
80
10%
Arbitraggio
38
8% / 58%
In ritardo
6
8%
Gratuito
12
Sviluppatore 12
Valutazioni
(2)
Progetti
2
100%
Arbitraggio
1
0% / 0%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(3)
Progetti
2
50%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(4)
Progetti
4
0%
Arbitraggio
1
0% / 0%
In ritardo
0
Gratuito
Ordini simili
Hello, I have a strategy written in Pine Script (TradingView) that used to send signals to MetaTrader 5 via PineConnector. Now I want a native MT5 Expert Advisor (EA) written in MQL5, so I can do full backtesting and trading inside MetaTrader without any external bridge. I will provide: - Full Pine Script code - Entry and exit rules (based on BOS and OB logic) - SL/TP and dynamic risk management (R:R) - Breakeven
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
I would manually draw one or more trendline or horizontal line in MT5. I would manually add description to each trendline or horizontal line for the desired action: Buy, Sell, Close buy orders, Close sell orders or Close all orders. When a candle touches the trendline or horizontal line, EA should execute the desired action. The desired action must be only once for a trendline or horizontal line. There should be some
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
1. General Objective Development of an Expert Advisor in MQL5 intended for Futures markets , based on an existing trading strategy that I will provide (described logic or precise rules). The main objectives are: Faithful implementation of the strategy , Full debugging of the EA, Validation of correct behavior through backtesting. 2. Markets and Instruments Markets: Futures Symbols: to be defined (e.g. indices
Subject: Major Upgrade Request: Auto Confluence of Signal/Trend/Momentum Scores with Multi-Timeframe SMC Hello, Your bot is excellent analytically, but I'm facing daily manual intervention due to the multiple indicators and timeframes. --- 📊 Current Situation: The bot uses: · Signal Score · Trend Score · Momentum Score · SMC Analysis · 3 Timeframes (Fast 5M, Medium 15M, Main 1H) · 4 Additional Indicators Currently
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
1. Project Overview I am looking for an experienced MQL5 developer to design a robust, clean, and well-structured Expert Advisor (EA) for MetaTrader 5. The goal is to transform a clearly defined trading logic into a stable, efficient, and fully configurable EA , suitable for backtesting and optimization. 2. Platform & Language Platform: MetaTrader 5 Programming language: MQL5 Code must follow best practices (modular

Informazioni sul progetto

Budget
50+ USD