İş Gereklilikleri

#property strict

input int FastMA = 20;
input int SlowMA = 50;
input double LotSize = 0.01;

input double StopLoss = 300; // Gold points
input double TakeProfit = 600;

int fastMA, slowMA;

//-------------------------------------------------
int OnInit()
{
   fastMA = iMA(_Symbol, PERIOD_M15, FastMA, 0, MODE_EMA, PRICE_CLOSE);
   slowMA = iMA(_Symbol, PERIOD_M15, SlowMA, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

//-------------------------------------------------
void OnTick()
{
   if(PositionsTotal() > 0) return;

   double f[2], s[2];
   CopyBuffer(fastMA, 0, 0, 2, f);
   CopyBuffer(slowMA, 0, 0, 2, s);

   if(f[1] < s[1] && f[0] > s[0]) Buy();
   if(f[1] > s[1] && f[0] < s[0]) Sell();
}

//-------------------------------------------------
void Buy()
{
   MqlTradeRequest r;
   MqlTradeResult res;
   ZeroMemory(r);

   double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);

   r.action = TRADE_ACTION_DEAL;
   r.symbol = _Symbol;
   r.volume = LotSize;
   r.type = ORDER_TYPE_BUY;
   r.price = price;
   r.sl = price - StopLoss * _Point;
   r.tp = price + TakeProfit * _Point;
   r.deviation = 30;

   OrderSend(r, res);
}

//-------------------------------------------------
void Sell()
{
   MqlTradeRequest r;
   MqlTradeResult res;
   ZeroMemory(r);

   double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   r.action = TRADE_ACTION_DEAL;
   r.symbol = _Symbol;
   r.volume = LotSize;
   r.type = ORDER_TYPE_SELL;
   r.price = price;
   r.sl = price + StopLoss * _Point;
   r.tp = price - TakeProfit * _Point;
   r.deviation = 30;

   OrderSend(r, res);
}

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(374)
Projeler
481
23%
Arabuluculuk
58
55% / 26%
Süresi dolmuş
56
12%
Yüklendi
2
Geliştirici 2
Derecelendirme
(2299)
Projeler
2894
63%
Arabuluculuk
122
44% / 25%
Süresi dolmuş
429
15%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 5 kod
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Çalışıyor
6
Geliştirici 6
Derecelendirme
(250)
Projeler
256
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
7
Geliştirici 7
Derecelendirme
(10)
Projeler
19
42%
Arabuluculuk
6
0% / 50%
Süresi dolmuş
3
16%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(59)
Projeler
86
28%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Çalışıyor
9
Geliştirici 9
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
I have a open source Tradingview indicator that I want it to be converted to Ninja Trader8. I have attached it. Please let me know, if you can do it and for how muc
📩 Developer Message – Professional Smart Scalping EA Hello, I want to build a professional and smart scalping EA from scratch with fast execution and ATR-based dynamic pending orders. Core Logic The EA must place two pending orders simultaneously : Buy Stop above current price Sell Stop below current price Both orders include Stop Loss only (no Take Profit) Profits are managed via Break-even + Staged Trailing Stop
Looking for programmer help convert existing mt4 ea to mt5 ea EA use very simple MA strategy with trailing stop. afsd sadfwe erf rtgr yhff nbmv opou ef ih qa nv gg
hello great developer I need to copy trading signals from the Forex Precision app. I receive push notifications with the trades, and I must manually copy them into MetaTrader 4 (MT4), including the entry price, take profit, and stop loss. Is necessary Copy from Forex precision take the type AUD/JPY Copy the entry value and type sell or buy and put this info in mt4 and put the take profitt +10 and stop loss -10
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
I am looking for an experienced MQL5 developer who already has or can provide an advanced grid-style Expert Advisor based on Bollinger Bands, designed for trading multiple forex pairs simultaneously. The EA should use intelligent grid placement logic derived from Bollinger Band levels, with dynamic lot sizing, proper risk management, and optimized trade management to handle ranging and volatile market conditions
Hi, I have a clear MT5 EA wrapper project with locked TSCEA, requiring enhanced execution logic (“pending OR better market” order handling). I can share detailed spec. Please let me know your availability and quote range. Thanks, Tom Pike ------------------------------------------------------------------------------------------------------------------------------ Title: MT5 Wrapper EA – “Limit Order OR Better
ICT_OneTrade_2R 100 - 200 USD
🔥 ICT_OneTrade_2R Precision. Discipline. Consistency. ICT_OneTrade_2R is a professional Expert Advisor designed for traders who value structured execution and controlled risk. This system is built around a fixed Risk-to-Reward ratio of 1:2 (RR 2.0) — meaning every trade is planned with precision: Risk 1 → Target 2. No randomness. No overtrading. Just one high-quality trade per session. ⚙️ Key Features ✔ Fixed RR 1:2
Trade settings: --------------------------------- fixed lot size ….. 0.0 Buy /Sell distance market order…. 0.0 - 700.0 points Buy / Sell distance pending order Entry---- 0.0 - 700.0 points Max Trade------ 10.0 Min spread...… 0.0 points Max spread..... 3000.0 points Daily profit percentage ….. 0.0 - 100 % Global Stoploss Percentage----- 0.0 - 100 % Max Daily loss Percentage ------0.0 - 100 % Stop level = 0.0 point
Hi , I have some indicators that I want set up on my TV chart and want to create one chart for some and another chart for some others. Plus I want to set up the brackets orders so I can trade from the chart. I have these set up somewhat but need it cleaned up and the way I want them. how much would something like this cost to do? I'm in California and would like you to show me so I can learn to do this when I want to

Proje bilgisi

Bütçe
30 - 200 USD

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0