Specifiche
// 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
}
Con risposta
1
Valutazioni
Progetti
1
0%
Arbitraggio
2
50%
/
50%
In ritardo
0
Gratuito
2
Valutazioni
Progetti
129
25%
Arbitraggio
25
28%
/
56%
In ritardo
8
6%
Gratuito
3
Valutazioni
Progetti
649
53%
Arbitraggio
35
63%
/
20%
In ritardo
7
1%
In elaborazione
4
Valutazioni
Progetti
68
25%
Arbitraggio
12
42%
/
42%
In ritardo
4
6%
Gratuito
5
Valutazioni
Progetti
3419
68%
Arbitraggio
77
48%
/
14%
In ritardo
343
10%
In elaborazione
Pubblicati: 1 codice
6
Valutazioni
Progetti
574
35%
Arbitraggio
83
31%
/
45%
In ritardo
207
36%
Gratuito
7
Valutazioni
Progetti
16
25%
Arbitraggio
1
0%
/
100%
In ritardo
1
6%
Gratuito
8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Valutazioni
Progetti
59
27%
Arbitraggio
26
19%
/
54%
In ritardo
10
17%
In elaborazione
Pubblicati: 1 codice
10
Valutazioni
Progetti
246
74%
Arbitraggio
7
100%
/
0%
In ritardo
1
0%
Gratuito
Pubblicati: 2 articoli, 1 codice
11
Valutazioni
Progetti
18
28%
Arbitraggio
4
50%
/
50%
In ritardo
1
6%
Gratuito
12
Valutazioni
Progetti
11
0%
Arbitraggio
5
20%
/
60%
In ritardo
2
18%
Gratuito
13
Valutazioni
Progetti
80
10%
Arbitraggio
38
8%
/
58%
In ritardo
6
8%
Gratuito
14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
15
Valutazioni
Progetti
641
41%
Arbitraggio
25
48%
/
36%
In ritardo
46
7%
In elaborazione
16
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
17
Valutazioni
Progetti
80
6%
Arbitraggio
46
11%
/
54%
In ritardo
7
9%
In elaborazione
Ordini simili
Goldn zon
30+ USD
Hello, I am looking for a developer. I have a robust strategy based on Fibonacci, which I call "Goldn Zon." I tested it myself throughout the month of September, and now I would like to have a bot implement it so that it can trade continuously
STEP MA DISPLAY
30+ USD
STEP MA DISPLAY INDICATOR – Bullish list (Bearish is the mirror): 1. Step MA 1 is Bearish. 2. During this Step MA Bearish phase, Heiken Ashi Smooth ( HAS ) 1 is/was Bearish 3. During this Bearish phase, price reached MA1. 4. HAS 2 is Bullish. 5. HAS 3 is Bullish 6. STEPMA 2 is Bullish 7. MA 2 is >= MA 3 8. MA 4 is >=MA 5 Display Panel to be displayed in alphabetical order
Decrypt ex4 file for mt4 and recreate EA for mt4
30 - 50 USD
i have existing EA but its decrypted i dont have its source code , i want you to decrypt the EA and give me the original source code of it
MT5 to MEXC web trading
50+ USD
Hi gentlemen, I want MT5 market orders placed (open and close orders) on MEXC trading through web browser. MEXC doesnt allow algo trading. - Need source code budget: USD 50 (quote me your price and delivery time) I need this at the earliest and this job is only for mexc.com, not binance or any other exchange I look forward to your price offer and your suggestions. Appreciate
Automate this Video Strategy
35 - 100 USD
https://www.youtube.com/watch?v=xMNx8f-aGQE& ;t=56s risk 1% per trade watch the video carefully and automate the trade setups in XAUUSD i prefer picking the least drawdown and good return expert advisor do not use overfitting(Strict) account type : hedging
Bonjour , je cherche quelqu’un capable de crée un bot sur le gold type HFT , ouverture de plusieurs positions en quelques secondes , robot agressif , je cherche un robot qui marche sur du réel , qui a déjà était tester avec des résultats, pas basé que sur des backtest
Decrypt ex5 file for mt5 and recreate EA for mt5
30 - 80 USD
i have existing EA but its decrypted i dont have its source code , i want you to decrypt the EA and give me the original source code of it
Custom MT5 Trading Robot for Gold and Forex
200 - 300 USD
Project: Custom MT5 Day Trading Expert Advisor I need a custom automated trading robot (EA) for MetaTrader 5, developed in MQL5. Markets: - Gold (XAUUSD) - Selected Forex pairs Trading style: Automated day trading. All positions should be closed according to predefined strategy rules and before the end of the selected trading session. Strategy: The developer should propose a clear trading strategy, explain its rules
Ninjascript strategy tester
30+ USD
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
1. Overview Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries. 2. Platform and symbol MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5) Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm) Default timeframe: M5 (configurable; M1 to M15 should work) 3. Indicators Heiken Ashi candles, calculated inside the EA (no
Informazioni sul progetto
Budget
30 - 50 USD