Specifiche
//+------------------------------------------------------------------+
//| MyBot.mq5 |
//| Created using MQL5 |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade; // Create a trade object
// Define input parameters
input int FastMAPeriod = 10;
input int SlowMAPeriod = 50;
input int RSI_Period = 14;
input int MACD_FastEMA = 12;
input int MACD_SlowEMA = 26;
input int MACD_SignalSMA = 9;
// Function to calculate support and resistance (simple example)
double FindSupport(int candles) {
double lowest = iLow(NULL, 0, iLowest(NULL, 0, MODE_LOW, candles, 0));
return lowest;
}
double FindResistance(int candles) {
double highest = iHigh(NULL, 0, iHighest(NULL, 0, MODE_HIGH, candles, 0));
return highest;
}
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit() {
return INIT_SUCCEEDED;
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason) {
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick() {
// Get current prices
double priceCurrent = iClose(NULL, 0, 0);
double priceHigh = iHigh(NULL, 0, 10); // High over the past 10 candles
double priceLow = iLow(NULL, 0, 10); // Low over the past 10 candles
// Calculate indicators
double FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
double SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
double RSI = iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, 0);
double MACD_Main, MACD_Signal;
MACD_Main = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_MAIN, 0);
MACD_Signal = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_SIGNAL, 0);
// Calculate stop-loss and take-profit distances
double SL_Distance = MathAbs(priceCurrent - (priceHigh + priceLow) / 2);
double TP_Distance = SL_Distance * 2; // Minimum TP, adjustable
// Check Buy Condition
if (FastMA > SlowMA && RSI > 30 && RSI < 70 && MACD_Main > MACD_Signal) {
double tpLevel = priceCurrent + TP_Distance;
double slLevel = priceCurrent - SL_Distance;
// Ensure TP is below the nearest resistance level
double resistance = FindResistance(20);
if (tpLevel > resistance) {
tpLevel = resistance;
}
trade.Buy(0.1, priceCurrent, slLevel, tpLevel, "Buy Order");
}
// Check Sell Condition
if (FastMA < SlowMA && RSI > 30 && RSI < 70 && MACD_Main < MACD_Signal) {
double tpLevel = priceCurrent - TP_Distance;
double slLevel = priceCurrent + SL_Distance;
// Ensure TP is above the nearest support level
double support = FindSupport(20);
if (tpLevel < support) {
tpLevel = support;
}
trade.Sell(0.1, priceCurrent, slLevel, tpLevel, "Sell Order");
}
}
Con risposta
1
Valutazioni
Progetti
111
50%
Arbitraggio
26
31%
/
50%
In ritardo
9
8%
Gratuito
2
Valutazioni
Progetti
22
36%
Arbitraggio
4
25%
/
50%
In ritardo
1
5%
Gratuito
Pubblicati: 4 codici
3
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Valutazioni
Progetti
29
21%
Arbitraggio
20
10%
/
50%
In ritardo
8
28%
Caricato
5
Valutazioni
Progetti
0
0%
Arbitraggio
2
0%
/
100%
In ritardo
0
Gratuito
6
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
I need a mt5 expert advisor as shown in the youtube video. The expert advisor need to work with three digit broker i.e. exness also with two digit broker i.e. vantage. Please specify the settings for both type of brokers. I need same result as shown in the youtube video. Video link is https://www.youtube.com/watch?v=ndVQD7iS1-A
Signalfeed for Clients (Please help)
30 - 100 USD
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
A repeat posting after MQL5 issues
30 - 100 USD
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot
30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
MT5 prop firm EA
30+ USD
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Pro firm setup
30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I offer expert services to refine and optimize your MetaTrader 5 Expert Advisors for peak performance. My approach focuses on achieving a maximum Sharpe Ratio while strictly limiting Maximum Drawdown (Max DD) , making the strategy suitable for high-standard environments like prop firm trading . I specialize in indicator-based logic and logical filter enhancements rather than external Telegram signals. With a
Looking for an Expert EA Developer for MT5
30 - 200 USD
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
Expertise In Market Structure
50+ USD
I am a Professional Forex Trader, actively working in the financial markets with a strong focus on how price truly moves. I specialize in logic, market structure, and institutional behavior rather than indicators or guesswork. I have mastered: • Market Structure • Trend Identification • Elliott Wave Theory • Wyckoff Logic My core expertise lies in: • Deep understanding of market structure • Identifying
Informazioni sul progetto
Budget
30 - 50 USD