Tarea técnica
//+------------------------------------------------------------------+
//| Emmanuels Bot |
//| Copyright © 2023 Emmanuel |
//| https://www.example.com |
//+------------------------------------------------------------------+
//|----------------------------------------------------|
//| Trading Strategy Parameters |
//|----------------------------------------------------|
input double Key_Value = 2.0; // Key Value to adjust sensitivity
input int ATR_Period = 10; // ATR Period
input double Lot_Size = 0.05; // Lot Size for orders
input int Take_Profit = 20; // Take Profit in pips
//|----------------------------------------------------|
//| Indicator |
//|----------------------------------------------------|
double xATRTrailingStop; // Trailing Stop value
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void OnTick()
{
double atr = iATR(_Symbol, _Period, ATR_Period, 0); // ATR value
double nLoss = Key_Value * atr; // Dynamic Loss value
double stopLoss = 0; // Stop Loss value
// Calculate the Trailing Stop
if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop))
{
xATRTrailingStop = MathMax(xATRTrailingStop[1], Close[0] - nLoss);
}
else
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
{
xATRTrailingStop = MathMin(xATRTrailingStop[1], Close[0] + nLoss);
}
else
{
if(Close[0] > xATRTrailingStop)
{
xATRTrailingStop = Close[0] - nLoss;
}
else
{
xATRTrailingStop = Close[0] + nLoss;
}
}
// Check for entry signal
if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop)
{
if(PositionsTotal() == 0)
{
// Open Buy Order
double stopLoss = xATRTrailingStop - nLoss;
double takeProfit = xATRTrailingStop + Take_Profit * _Point;
OrderSend(_Symbol, OP_BUY, Lot_Size, Ask, 3, stopLoss, takeProfit, "Buy Order", 0, 0, CLR_GREEN);
}
}
else
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
{
if(PositionsTotal() == 0)
{
// Open Sell Order
double stopLoss = xATRTrailingStop + nLoss;
double takeProfit = xATRTrailingStop - Take_Profit * _Point;
OrderSend(_Symbol, OP_SELL, Lot_Size, Bid, 3, stopLoss, takeProfit, "Sell Order", 0, 0, CLR_RED);
}
}
// Check for exit signal
if(PositionsTotal() > 0)
{
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
{
// Close Buy Order
OrderClose(PositionGetTicket(0), Lot_Size, Bid, 3, CLR_GREEN);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
I NEED TO DEBUG THIS CODE
Han respondido
1
Evaluación
Proyectos
514
19%
Arbitraje
35
46%
/
31%
Caducado
34
7%
Trabaja
2
Evaluación
Proyectos
641
41%
Arbitraje
25
48%
/
36%
Caducado
46
7%
Trabaja
3
Evaluación
Proyectos
3
33%
Arbitraje
0
Caducado
0
Libre
4
Evaluación
Proyectos
72
22%
Arbitraje
13
46%
/
15%
Caducado
5
7%
Libre
5
Evaluación
Proyectos
80
10%
Arbitraje
38
8%
/
58%
Caducado
6
8%
Libre
6
Evaluación
Proyectos
1462
63%
Arbitraje
21
57%
/
10%
Caducado
43
3%
Libre
7
Evaluación
Proyectos
19
26%
Arbitraje
4
25%
/
25%
Caducado
1
5%
Libre
8
Evaluación
Proyectos
744
56%
Arbitraje
48
31%
/
31%
Caducado
120
16%
Libre
Ha publicado: 1 ejemplo
9
Evaluación
Proyectos
711
33%
Arbitraje
45
49%
/
42%
Caducado
14
2%
Trabaja
10
Evaluación
Proyectos
4
0%
Arbitraje
0
Caducado
1
25%
Libre
Solicitudes similares
Mac200
50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
Iconic Boy
300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
I am looking for an experienced MQL5 developer who can help me convert my manual trading strategy into a fully automated Expert Advisor (EA) for MetaTrader 5. The project should begin with a detailed discussion of my manual trading strategy. Before starting the actual EA development, the developer must understand and analyze the complete trading logic and determine how the strategy can be converted into clear
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My
Supply and Demand EA
50 - 250 USD
I need a SnD EA. Prefer coder who has previous experience coding SnD EA. PO are based on (CHoCH or BoS) and 3EMA, order block (from my TradingView indicator), area based on Fibonacci. SL options are based on fix pips or zone size; CL is based on candle closing. TP1 and TP2 options are based on fix pips or fix ratio. Canceling PO is based on market structure or Fibonacci. Money management are based on fix volume or
Hi MQL5 Community, With over 10 years of live market experience as a Quantitative & Trading System Developer, I specialize in building robust, highly scalable Expert Advisors (EAs), custom indicators, and automated architectures. I’ve recently put together a comprehensive showcase demonstrating my flagship Modular Multi-Engine Architecture , designed to bring institutional-grade logic and real-time telemetry into
I need a developer that can make my trading strategies into a working perfect EA Robot working on Mt5. Candlestick pattern confirmation through PDH, PDL, PWH, PWL, Liquidities, HTF OB
Xau trading bot with 99.9% profit
2000+ USD
I need a trading bot specially for XAU, high profit gain. Requirements bot analyzes the market places trades closes with 2 to 3 profit per trades daily profit should be 50 to 100 dollars
Macd Rsi stochastic vwap Bot. I have code.
150 - 300 USD
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
I have a technical specification ready for a custom alert indicator in NinjaTrader 8 (NinjaScript / C#). Important clarification: it is NOT an automatic trading bot, it is solely a visual indicator (arrows/lines on the chart) and sound alerts (notifications) based on EMA crossovers and range breakouts (ORB 15m) on lower timeframes for futures (MES). I already have the exact rules written out unambiguously
Información sobre el proyecto
Presupuesto
30+ USD