指定

//+------------------------------------------------------------------+
//|                                                     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
等级
(160)
项目
207
61%
仲裁
10
80% / 0%
逾期
0
空闲
发布者: 1 代码
2
开发者 2
等级
(395)
项目
510
23%
仲裁
60
57% / 25%
逾期
60
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
等级
(321)
项目
326
71%
仲裁
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
等级
(258)
项目
269
29%
仲裁
1
100% / 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
空闲
相似订单
Buying profitable EA Budget up to 1.5k (Serious offer) Specification EN I will pay 1.5k (negotiable) for an EA for existing MT4 that generates a minimum of 5% or higher a month consistently no monthly DD more than 5% on ,5k account Please send demo version with optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it in a demo account. Developer should be willing
1- The EA must h ave a unique strategy specialized on make trades with very very low RRR, so basicaly risking 1475$ to make 100$, with an ammount adjustable of trades per day. (This is very important that i wish in 100 trades, it makes a maximum of 10 trades of mistake, maybe less...) 2- The EA must have the strategy specialized on INDEX CFD. 3- The EA must make each trade with more than 3 minutes, and less than 12h
I need an MT4 Expert Advisor (MQL4). 1. Open one Buy and one Sell trade simultaneously. 2. Adjustable lot size (default 0.01). 3. Stop Loss on both trades. 4. If one trade hits Stop Loss: - Do not open a replacement trade. - Leave the remaining trade open. 5. Optional trailing stop: - On/Off switch. - Adjustable distance. 6. When the remaining trade closes: - Open a new Buy and Sell pair. - Repeat continuously
Hi, I Wanne have a trading robot that give me signals for short buy and sell. And only for all currency in forex trading and also can use it on mt5
I will pay 2500 to 10000 USD (negotiable) for one MT5 Expert Advisor, built properly. One robot done right, not a batch of cheap jobs. I have a strategy I believe in and a rough draft robot I built myself. The logic is there. The execution is not. That last part is outside my expertise, which is why I am hiring instead of continuing on my own. I am open to feedback on the strategy itself. If you see something in it
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
Wise Legend 30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the

项目信息

预算
50+ USD