Şartname

//+------------------------------------------------------------------+
//| Simple Moving Average Crossover EA |
//+------------------------------------------------------------------+
#property strict

input int ShortMA = 10;
input int LongMA = 50;
input double LotSize = 0.01;

int shortMAHandle;
int longMAHandle;

//+------------------------------------------------------------------+
int OnInit()
{
   shortMAHandle = iMA(_Symbol, _Period, ShortMA, 0, MODE_SMA, PRICE_CLOSE);
   longMAHandle = iMA(_Symbol, _Period, LongMA, 0, MODE_SMA, PRICE_CLOSE);

   if(shortMAHandle == INVALID_HANDLE || longMAHandle == INVALID_HANDLE)
   {
      Print("Error creating MA indicators");
      return(INIT_FAILED);
   }

   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
void OnTick()
{
   double shortMA[], longMA[];

   CopyBuffer(shortMAHandle, 0, 0, 3, shortMA);
   CopyBuffer(longMAHandle, 0, 0, 3, longMA);

   double prevShort = shortMA[1];
   double prevLong = longMA[1];
   double currShort = shortMA[0];
   double currLong = longMA[0];

   // Check if there are open positions
   bool hasPosition = PositionSelect(_Symbol);

   // BUY condition
   if(prevShort < prevLong && currShort > currLong)
   {
      if(!hasPosition)
      {
         OpenBuy();
      }
   }

   // SELL condition
   if(prevShort > prevLong && currShort < currLong)
   {
      if(hasPosition)
      {
         ClosePosition();
      }
   }
}

//+------------------------------------------------------------------+
void OpenBuy()
{
   MqlTradeRequest request;
   MqlTradeResult result;

   ZeroMemory(request);
   ZeroMemory(result);

   request.action = TRADE_ACTION_DEAL;
   request.symbol = _Symbol;
   request.volume = LotSize;
   request.type = ORDER_TYPE_BUY;
   request.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   request.deviation = 10;
   request.magic = 123456;

   OrderSend(request, result);

   Print("BUY order sent");
}

//+------------------------------------------------------------------+
void ClosePosition()
{
   if(!PositionSelect(_Symbol)) return;

   ulong ticket = PositionGetInteger(POSITION_TICKET);

   MqlTradeRequest request;
   MqlTradeResult result;

   ZeroMemory(request);
   ZeroMemory(result);

   request.action = TRADE_ACTION_DEAL;
   request.symbol = _Symbol;
   request.volume = PositionGetDouble(POSITION_VOLUME);
   request.type = ORDER_TYPE_SELL;
   request.position = ticket;
   request.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
   request.deviation = 10;
   request.magic = 123456;

   OrderSend(request, result);

   Print("Position closed");
}

Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
1
100%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(382)
Projeler
491
23%
Arabuluculuk
59
54% / 25%
Süresi dolmuş
56
11%
Yüklendi
4
Geliştirici 4
Derecelendirme
(104)
Projeler
125
24%
Arabuluculuk
23
26% / 52%
Süresi dolmuş
8
6%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(4)
Projeler
9
56%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
11%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(7)
Projeler
7
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
1
14%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(43)
Projeler
74
50%
Arabuluculuk
5
0% / 60%
Süresi dolmuş
19
26%
Serbest
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(4)
Projeler
4
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
(1)
Projeler
0
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(21)
Projeler
26
27%
Arabuluculuk
0
Süresi dolmuş
2
8%
Çalışıyor
12
Geliştirici 12
Derecelendirme
(258)
Projeler
264
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
13
Geliştirici 13
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
14
Geliştirici 14
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
(362)
Projeler
435
54%
Arabuluculuk
20
55% / 15%
Süresi dolmuş
30
7%
Çalışıyor
16
Geliştirici 16
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
17
Geliştirici 17
Derecelendirme
(49)
Projeler
50
8%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
20
Geliştirici 20
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
21
Geliştirici 21
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Job Description I'm seeking an expert Python developer to build a fully automated, institution‑grade options trading bot for my Charles Schwab brokerage account. The core strategy is a Monday‑morning 5‑DTE Iron Condor on SPX weekly options with ultra‑narrow 1‑point wings, a fixed 17‑strike OTM entry, and a layered defense system that actively re‑centers the position when the market moves—then escalates to hard stops
I want the bot to be fully automated trading key levels of (support and resistance ) from the higher-timeframe with atleast a 70% win rate. Experienced developer with atleast 3-4 years THANK YOU
I am looking for an experienced developer in MQL5 to build a fully AI and automated trading bot (Expert Advisor) for MetaTrader 5. The EA will trade XAUUSD only and will be based purely on price action and Smart Money Concepts (SMC), specifically focusing on liquidity sweeps, market structure shifts (MSS/CHoCH), and wick rejection entries at key points of interest (POIs). The system must follow a strict rule: no
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
أبحث عن خبير تداول آلي (EA) أرفقتُ فيديو له. يقوم هذا الخبير بوضع أوامر شراء معلقة وبيع معلقة على بُعد 250 نقطة أعلى وأسفل السعر الحالي كل دقيقة، مع تحديد مستوى وقف الخسارة (SL) عند 300 نقطة ومستوى جني الربح (TP) عند 500 نقطة. إذا تم تفعيل أيٍّ من هذين الأمرين خلال الدقيقة، يتم إلغاء الآخر. لا يقوم الخبير بوضع أي أوامر معلقة حتى يتم الوصول إلى مستوى وقف الخسارة أو جني الربح، ثم يضع مجموعة جديدة من الأوامر المعلقة في
Am looking for good programmer to help me to convert two Ex4 file into EA. The first indicator provide 9 tools signal and the second indicator is Candle stick strategy. Kindly see the attached file for proper explanation about the BOT. Below is discription 🔹 PART 1: Candle Structure Strategy (Daily / Weekly / Monthly) ✅ Core Idea You are trading alignment of higher timeframe direction with lower timeframe
Looking for experience profitable manual traders that will be willing to trade my live mt5 account for profit share. Requirements Must have at least 6 months of profitable months. Min 10 percent monthly Send me investor credentials for mt5 or mt4 account. Can be trading Any instruments. Must reply with mt5 credentials or will disregard

Proje bilgisi

Bütçe
500+ USD
Son teslim tarihi
from 1 to 7 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0