Şartname
//+------------------------------------------------------------------+
//| Moving Average Crossover EA for MT5 |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade;
input int FastMAPeriod = 50;
input int SlowMAPeriod = 200;
input int StopLossPips = 50;
input int TakeProfitPips = 100;
input double RiskPercent = 2.0;
double lotSize;
//+------------------------------------------------------------------+
//| Calculate lot size based on 2% risk |
//+------------------------------------------------------------------+
double CalculateLotSize(double stopLossPoints)
{
double riskAmount = AccountBalance() * RiskPercent / 100.0;
double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE);
double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE);
double point = SymbolInfoDouble(_Symbol, SYMBOL_POINT);
double contractSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_CONTRACT_SIZE);
double lossPerLot = stopLossPoints * point * contractSize / tickSize * tickValue;
return NormalizeDouble(riskAmount / lossPerLot, 2);
}
//+------------------------------------------------------------------+
//| Expert Tick Function |
//+------------------------------------------------------------------+
void OnTick()
{
// Get the current and previous MAs
double maFastCurrent = iMA(_Symbol, _Period, FastMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 0);
double maFastPrevious = iMA(_Symbol, _Period, FastMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 1);
double maSlowCurrent = iMA(_Symbol, _Period, SlowMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 0);
double maSlowPrevious = iMA(_Symbol, _Period, SlowMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 1);
// Check for crossover
if (maFastPrevious < maSlowPrevious && maFastCurrent > maSlowCurrent) // BUY Signal
{
if (PositionSelect(_Symbol) && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_SELL)
trade.Close(_Symbol); // Close opposite position
if (!PositionSelect(_Symbol)) // Only if no open position
{
double stopLoss = StopLossPips * _Point;
double takeProfit = TakeProfitPips * _Point;
lotSize = CalculateLotSize(StopLossPips * 10); // pip to point conversion
trade.Buy(lotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_ASK), stopLoss, takeProfit, "Buy on crossover");
}
}
else if (maFastPrevious > maSlowPrevious && maFastCurrent < maSlowCurrent) // SELL Signal
{
if (PositionSelect(_Symbol) && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
trade.Close(_Symbol); // Close opposite position
if (!PositionSelect(_Symbol)) // Only if no open position
{
double stopLoss = StopLossPips * _Point;
double takeProfit = TakeProfitPips * _Point;
lotSize = CalculateLotSize(StopLossPips * 10); // pip to point conversion
trade.Sell(lotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_BID), stopLoss, takeProfit, "Sell on crossover");
}
}
}
Yanıtlandı
1
Derecelendirme
Projeler
186
41%
Arabuluculuk
24
58%
/
21%
Süresi dolmuş
13
7%
Serbest
2
Derecelendirme
Projeler
27
7%
Arabuluculuk
9
33%
/
33%
Süresi dolmuş
1
4%
Çalışıyor
3
Derecelendirme
Projeler
503
23%
Arabuluculuk
60
55%
/
25%
Süresi dolmuş
59
12%
Çalışıyor
4
Derecelendirme
Projeler
35
46%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 3 kod
5
Derecelendirme
Projeler
3
33%
Arabuluculuk
1
0%
/
100%
Süresi dolmuş
0
Serbest
6
Derecelendirme
Projeler
403
28%
Arabuluculuk
40
40%
/
50%
Süresi dolmuş
1
0%
Serbest
7
Derecelendirme
Projeler
478
40%
Arabuluculuk
105
40%
/
24%
Süresi dolmuş
82
17%
Yüklendi
Yayınlandı: 2 kod
8
Derecelendirme
Projeler
333
35%
Arabuluculuk
66
12%
/
58%
Süresi dolmuş
87
26%
Serbest
9
Derecelendirme
Projeler
8
13%
Arabuluculuk
6
33%
/
33%
Süresi dolmuş
0
Serbest
10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Derecelendirme
Projeler
22
41%
Arabuluculuk
8
0%
/
50%
Süresi dolmuş
3
14%
Serbest
12
Derecelendirme
Projeler
12
0%
Arabuluculuk
5
20%
/
80%
Süresi dolmuş
2
17%
Serbest
13
Derecelendirme
Projeler
0
0%
Arabuluculuk
4
0%
/
75%
Süresi dolmuş
0
Serbest
14
Derecelendirme
Projeler
35
23%
Arabuluculuk
4
0%
/
50%
Süresi dolmuş
2
6%
Çalışıyor
15
Derecelendirme
Projeler
3
0%
Arabuluculuk
3
33%
/
67%
Süresi dolmuş
1
33%
Serbest
16
Derecelendirme
Projeler
67
37%
Arabuluculuk
5
40%
/
40%
Süresi dolmuş
1
1%
Serbest
17
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Derecelendirme
Projeler
6
0%
Arabuluculuk
4
25%
/
75%
Süresi dolmuş
2
33%
Serbest
19
Derecelendirme
Projeler
945
47%
Arabuluculuk
309
58%
/
27%
Süresi dolmuş
125
13%
Serbest
Benzer siparişler
Configuration of The Take profit level , SL Thresholds and Fixed SL According to the Absolute Difference . Deleting Folders which are Not in use . (Minor) (Two Folders) . Making Sure Smooth Live Executions Throughout . Live Chart Only . Code has minor compilation error , project begins after you specify the reason
Project Overview I am looking for an experienced MetaTrader 5 (MT5) Expert Advisor developer to build a professional, production-quality automated trading system from a detailed Software Requirements Specification (SRS). The strategy is based on a custom implementation of the MACD indicator combined with advanced trade management and a proprietary basket/grid recovery methodology. The complete strategy and
DESCRIPTION: I have a trading bot (Pips Sure EA v2.1) that operates on MT4, but I do not own the original .mq4 source code file. I need an experienced MQL4 developer to build a clean, optimized clone from scratch so that I can own the source code for long-term updates. WHAT I WILL PROVIDE: 1. The compiled .ex4 bot file. 2. The companion custom indicator file used by the bot (HiLo.ex4). 3. Detailed screenshots of all
I need a trading robot for MetaTrader 5 that works on mobile for XAUUSD. === TRADING RULES === Symbol: XAUUSD Timeframe: M15 Trading Hours: 10:00 to 18:00 server time only Buy: When 10 EMA crosses above 50 EMA Sell: When 10 EMA crosses below 50 EMA Close opposite position when new signal appears === RISK MANAGEMENT === Risk per trade: 1% of account balance Stop Loss: 300 points / $3.00 Take Profit: 600 points / $6.00
Jona copilot v12
30 - 40 USD
Hi, I'm interested in ordering an MT4 trading bot. Before we begin, could you please send me the technical specifications and requirements you'll need? Specifically, I'd like to know: - The trading strategy the bot will use. - The currency pairs or instruments it will trade. - The timeframes it supports. - Risk management features (lot sizing, stop loss, take profit, trailing stop, maximum drawdown). - Whether it
Hello, I want this project to be a complete redesign, not just an update. My goal is to build an institutional-grade TradingView indicator that is extremely accurate, stable, fast, and completely non-repainting. You are free to modify, delete, replace, or completely rewrite any part of the code if it improves the final result. I don't care about preserving the current code or appearance—I only care about building the
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
Bollinger and rRSI
30+ USD
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
I am looking for an experienced MetaTrader 5 expert. I already have 3 MT5 trading accounts. I need someone to: 1. Help me choose a reliable Windows VPS. 2. Connect to my VPS remotely (AnyDesk or TeamViewer). 3. Install 3 MetaTrader 5 terminals. 4. Configure: - 1 Master Account - 2 Slave Accounts 5. Install and configure a professional Trade Copier. 6. Copy all trades from the Master account to both Slave
Proje bilgisi
Bütçe
30+ USD