Spécifications
// Input Parameters
input int TradeExecutionHour = 10; // Trade execution hour (server time)
input bool ManualLotSize = true; // Enable manual lot size adjustment
input bool RiskAllocation = true; // Enable percentage-based risk allocation
input double RiskPercentage = 2.0; // Percentage of risk per trade
input int CandleRangeCondition = 100; // Minimum candle range condition in points
input string Symbols = {"GER30.fin", "EURUSD", "GBPUSD"}; // Symbols to trade
// Global Variables
int ticketBuy, ticketSell;
double entryPointBuy, entryPointSell, stopLossBuy, stopLossSell, takeProfitBuy, takeProfitSell;
bool breakevenBuy = false, breakevenSell = false;
void OnTick()
{
// Check trade execution time
if (TimeHour(TimeCurrent()) == TradeExecutionHour)
{
// Check candle range condition
if (CheckCandleRangeCondition())
{
// Calculate entry points
CalculateEntryPoints();
// Calculate lot size
double lotSize = CalculateLotSize();
// Place buy stop order
ticketBuy = OrderSend(Symbol(), OP_BUYSTOP, lotSize, entryPointBuy, 2 * Point, stopLossBuy, takeProfitBuy);
// Place sell stop order
ticketSell = OrderSend(Symbol(), OP_SELLSTOP, lotSize, entryPointSell, 2 * Point, stopLossSell, takeProfitSell);
}
}
// Check breakeven condition
if (breakevenBuy && breakevenSell)
{
if (CheckBreakevenCondition())
{
// Move stop loss to breakeven
MoveStopLossToBreakeven();
}
}
}
bool CheckCandleRangeCondition()
{
double range = 0;
for (int i = 0; i < 5; i++)
{
range += High[i] - Low[i];
}
range /= 5;
return range >= CandleRangeCondition * Point;
}
void CalculateEntryPoints()
{
double highestHigh = High[1];
double lowestLow = Low[1];
for (int i = 1; i <= 5; i++)
{
if (High[i] > highestHigh)
highestHigh = High[i];
if (Low[i] < lowestLow)
lowestLow = Low[i];
}
entryPointBuy = highestHigh + 2 * Point;
entryPointSell = lowestLow - 2 * Point;
stopLossBuy = lowestLow - 2 * Point;
stopLossSell = highestHigh + 2 * Point;
takeProfitBuy = entryPointBuy + 3 * (entryPointBuy - stopLossBuy);
takeProfitSell = entryPointSell - 3 * (stopLossSell - entryPointSell);
}
double CalculateLotSize()
{
double lotSize = 0;
if (ManualLotSize)
{
// Adjust the lot size manually for each trade
// Add your own logic here
lotSize = 0.01;
}
else if (RiskAllocation)
{
// Calculate lot size based on risk percentage
double accountBalance = AccountBalance();
double riskAmount = accountBalance * RiskPercentage / 100.0;
double stopLossDistance = MathMax(stopLossBuy - entryPointBuy, entryPointSell - stopLossSell);
lotSize = riskAmount / stopLossDistance;
}
return lotSize;
}
bool CheckBreakevenCondition()
{
// Check if the price has reached 1 to 1 ratio
// Add your own logic here
return false;
}
void MoveStopLossToBreakeven()
{
// Move stop loss to breakeven
// Add your own logic here
}
Répondu
1
Évaluation
Projets
1
0%
Arbitrage
2
50%
/
50%
En retard
0
Gratuit
2
Évaluation
Projets
129
25%
Arbitrage
25
28%
/
56%
En retard
8
6%
Gratuit
3
Évaluation
Projets
640
53%
Arbitrage
34
62%
/
21%
En retard
6
1%
Travail
4
Évaluation
Projets
68
25%
Arbitrage
12
42%
/
42%
En retard
4
6%
Gratuit
5
Évaluation
Projets
3412
68%
Arbitrage
77
48%
/
14%
En retard
342
10%
Travail
Publié : 1 code
6
Évaluation
Projets
566
35%
Arbitrage
82
30%
/
45%
En retard
204
36%
Travail
7
Évaluation
Projets
16
25%
Arbitrage
1
0%
/
100%
En retard
1
6%
Gratuit
8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Évaluation
Projets
59
27%
Arbitrage
26
19%
/
54%
En retard
10
17%
Travail
Publié : 1 code
10
Évaluation
Projets
246
74%
Arbitrage
7
100%
/
0%
En retard
1
0%
Gratuit
Publié : 1 article
11
Évaluation
Projets
18
28%
Arbitrage
4
50%
/
50%
En retard
1
6%
Gratuit
12
Évaluation
Projets
11
0%
Arbitrage
5
20%
/
60%
En retard
2
18%
Gratuit
13
Évaluation
Projets
80
10%
Arbitrage
38
8%
/
58%
En retard
6
8%
Gratuit
14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Évaluation
Projets
641
41%
Arbitrage
25
48%
/
36%
En retard
46
7%
Travail
16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Évaluation
Projets
80
6%
Arbitrage
46
11%
/
54%
En retard
7
9%
Travail
Commandes similaires
Hi, I Wanne have a trading robot that give me signals for short buy and sell. And only for all currency in forex trading and also can use it on mt5
2500k to 10k for one MT5 Expert Advisor, done properly
5000 - 10000 USD
I will pay 2500 to 10000 USD (negotiable) for one MT5 Expert Advisor, built properly. One robot done right, not a batch of cheap jobs. I have a strategy I believe in and a rough draft robot I built myself. The logic is there. The execution is not. That last part is outside my expertise, which is why I am hiring instead of continuing on my own. I am open to feedback on the strategy itself. If you see something in it
Modification of an existing MQL5 EA TH-05
30 - 300 USD
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
EA LOTS SIZE MODIFICATION !!!
30 - 300 USD
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
Wise Legend
30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the
I buy EA for USDEUR or XAUUSD for FTMO with proven backtest. Send me images with backtest reports where daily max dd is 1% on 200k account. I can buy several eas if you have them with proofs. Need images of backtesting for 5 years
Automatic COT Data on MT4 Chart
200+ USD
I am looking for a programmer that can develop an MT4 indicator that shows COT DATA For Forex, indices and and metals. The indicator must be an oscillator or any other form that would work well in that format. It doesn't need to show all pairs at once, it can show only for current chart. Let's talk
Cerco uno sviluppatore MQL5 esperto per lavorare su un Expert Advisor (EA) XAUUSD per MetaTrader 5 già esistente , versione attuale XAU_V59.mq5 . L'obiettivo è modificare, correggere e sviluppare il codice esistente senza stravolgere la logica già presente , mantenendo le regole ei parametri già definiti, salvo le modifiche espressamente richieste. REQUISITI FONDAMENTALI Il codice deve essere scritto in MQL5 nativo e
Informations sur le projet
Budget
30 - 50 USD