Termos de Referência
//+------------------------------------------------------------------+
//| 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");
}
}
}
Respondido
1
Classificação
Projetos
186
41%
Arbitragem
24
58%
/
21%
Expirado
13
7%
Livre
2
Classificação
Projetos
27
7%
Arbitragem
9
33%
/
33%
Expirado
1
4%
Trabalhando
3
Classificação
Projetos
503
23%
Arbitragem
60
55%
/
25%
Expirado
59
12%
Trabalhando
4
Classificação
Projetos
35
46%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
5
Classificação
Projetos
3
33%
Arbitragem
1
0%
/
100%
Expirado
0
Livre
6
Classificação
Projetos
403
28%
Arbitragem
40
40%
/
50%
Expirado
1
0%
Livre
7
Classificação
Projetos
478
40%
Arbitragem
105
40%
/
24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
8
Classificação
Projetos
333
35%
Arbitragem
66
12%
/
58%
Expirado
87
26%
Livre
9
Classificação
Projetos
8
13%
Arbitragem
6
33%
/
33%
Expirado
0
Livre
10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Classificação
Projetos
22
41%
Arbitragem
8
0%
/
50%
Expirado
3
14%
Livre
12
Classificação
Projetos
12
0%
Arbitragem
5
20%
/
80%
Expirado
2
17%
Livre
13
Classificação
Projetos
0
0%
Arbitragem
4
0%
/
75%
Expirado
0
Livre
14
Classificação
Projetos
35
23%
Arbitragem
4
0%
/
50%
Expirado
2
6%
Trabalhando
15
Classificação
Projetos
3
0%
Arbitragem
3
33%
/
67%
Expirado
1
33%
Livre
16
Classificação
Projetos
67
37%
Arbitragem
5
40%
/
40%
Expirado
1
1%
Livre
17
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
18
Classificação
Projetos
6
0%
Arbitragem
4
25%
/
75%
Expirado
2
33%
Livre
19
Classificação
Projetos
945
47%
Arbitragem
309
58%
/
27%
Expirado
125
13%
Livre
Pedidos semelhantes
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
Informações sobre o projeto
Orçamento
30+ USD