Техническое задание
//+------------------------------------------------------------------+
//| ScalperEA.mq5 |
//+------------------------------------------------------------------+
#property copyright "Template"
#property version "1.00"
#property strict
input int FastEMA = 8;
input int SlowEMA = 21;
input int AtrPeriod = 14;
input double StopAtrMult = 1.2;
input double TpAtrMult = 1.0;
input double RiskPercent = 0.5; // percent account risk per trade
input int Magic = 123456;
input double Lots = 0.01;
double EMAFast[], EMASlow[], ATRArr[];
int OnInit()
{
SetIndexBuffer(0, EMAFast);
SetIndexBuffer(1, EMASlow);
// nothing to set for ATR; we'll compute using iATR
return(INIT_SUCCEEDED);
}
void OnTick()
{
// get last two closed candles
int shift = 1; // last closed bar
double fast_prev = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double fast_last = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double slow_prev = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double slow_last = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double atr = iATR(NULL, PERIOD_CURRENT, AtrPeriod, shift);
if (atr <= 0) return;
// simple crossover signals
if (fast_prev <= slow_prev && fast_last > slow_last)
{
// buy signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_BID); // or use Ask for buy market entry
double stop = entry - StopAtrMult * atr;
double tp = entry + TpAtrMult * atr;
double lots = Lots;
// optionally compute lots from RiskPercent and stop distance
// place market buy
trade_buy(lots, stop, tp);
}
else if (fast_prev >= slow_prev && fast_last < slow_last)
{
// sell signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double stop = entry + StopAtrMult * atr;
double tp = entry - TpAtrMult * atr;
trade_sell(Lots, stop, tp);
}
}
void trade_buy(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_BUY;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
void trade_sell(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_SELL;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
Откликнулись
1
Оценка
Проекты
26
0%
Арбитраж
4
0%
/
100%
Просрочено
5
19%
Свободен
2
Оценка
Проекты
0
0%
Арбитраж
2
0%
/
100%
Просрочено
0
Свободен
3
Оценка
Проекты
976
74%
Арбитраж
27
19%
/
67%
Просрочено
101
10%
Работает
Опубликовал: 1 статью, 6 примеров
4
Оценка
Проекты
64
20%
Арбитраж
11
27%
/
55%
Просрочено
5
8%
Свободен
5
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
6
Оценка
Проекты
35
34%
Арбитраж
5
0%
/
80%
Просрочено
0
Работает
Опубликовал: 2 примера
7
Оценка
Проекты
261
30%
Арбитраж
0
Просрочено
3
1%
Свободен
Опубликовал: 2 примера
8
Оценка
Проекты
16
13%
Арбитраж
4
50%
/
25%
Просрочено
4
25%
Работает
9
Оценка
Проекты
20
10%
Арбитраж
8
38%
/
38%
Просрочено
3
15%
Работает
10
Оценка
Проекты
8
13%
Арбитраж
3
0%
/
33%
Просрочено
2
25%
Свободен
Опубликовал: 1 пример
11
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
12
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
13
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
Cycle trend for MT5
60+ USD
I need someone to recreate this indicator for mt5 for $60 it has to be non repaint ,I've been trying to code this indicator so if someone can do it my contact is , sebokomorobi6@gmail.com ,or 073 923 0151 you can contact the number on Whatsapp no calls allowed
Existing EA
30 USD
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Python based robot required based on non MT4 object
60 - 100 USD
Hi, I require a robot that can read this non MT4 object . Trade opened when the object shows ' Look to sell / Buy'. The closing logic is based on the crossing of another custom indicator . Stop loss based on Fib levels. Take profit and partial take profit also required using these levels. A more detailed breakdown of the logic to be provided. The robot/EA is to be created and installed on MT4 on my VPS
have the Beatrix Inventor Expert Advisor (EA) that was profitable in the past but has been losing money recently. I need an experienced EA developer/optimizer to study the trade history (especially Stop Loss hits, drawdown periods, SL/TP behavior, win/loss ratio, etc.) and recommend + implement specific tweaks so it becomes consistently profitable again. Your job: 1. Deep analysis of why the EA is no longer
We are seeking an experienced MQL5 developer to design and develop a high-performance Expert Advisor (EA) for trading Gold (XAUUSD) on MetaTrader 5 . This project is intended for large-scale capital deployment , with an available trading capital exceeding $8,000,000 USD . As such, we are looking for a developer capable of building a robust, scalable, and risk-controlled algorithmic trading system suitable for
I am looking for an experienced MT4 developer/designer who can create a custom chart template using a background image provided NOTE: Apply if you have done this type of job in the past, also provide the prove of your past project
I am looking for an experienced quantitative developer to analyze and optimize an MT5 Expert Advisor that I have already developed. The EA is relatively complex and includes: Multiple strategies (Trend Pullback, Breakout, Mean Reversion, EMA Reclaim) Scoring system combining technical score and probabilistic filter Regime detection (ADX based) Volatility filters (ATR regime) Correlation and cluster exposure control
Until zone detection is coded , you will be from that point . Trailing Stop Optimization for live chart . Apply with Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit . Apply with careful understanding of the project requirement
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Информация о проекте
Бюджет
50 - 100 USD