指定
//+------------------------------------------------------------------+
//| 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");
}
}
反馈
1
等级
项目
111
50%
仲裁
26
31%
/
50%
逾期
9
8%
空闲
发布者: 1 文章
2
等级
项目
23
39%
仲裁
4
25%
/
50%
逾期
1
4%
空闲
发布者: 5 代码
3
等级
项目
0
0%
仲裁
0
逾期
0
空闲
4
等级
项目
33
27%
仲裁
20
10%
/
50%
逾期
11
33%
空闲
5
等级
项目
0
0%
仲裁
2
0%
/
100%
逾期
0
空闲
6
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
Modify EA for pending orders
30+ USD
My EA is semi Auto EA..with Master and slave concept Using Heiken Ashi +Heiken Smooth and Moving Average What to do?1. Remove some previous feature 2.Change some rules of 4 slave to pending Order 3. Check the coding is clean. 4. create panel dialog box
These are orderflow footprint indicator I would like to know if you can algorithmisie and build a stacked imbalance bot from them .. Kindlt let me know if you can do it and check the file before replying me
I have 2 trading view indicators by GainzAlgo that I want code to mt5 , could u advise? I need you to give me response if you can convert This
I currently sell a white-label XAUUSD EA, but the existing supplier owns the source code. I now need a new, independently developed EA and licensing system that my company fully owns and controls. I am not requesting decompilation or copying of proprietary code. Existing settings, presets and trading examples will be provided as reference. The developer must first identify any missing strategy rules before
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
Looking to acquire an existing, proven EA. Not looking for new strategy development. REQUIREMENTS — non-negotiable: Minimum 12 months verified LIVE history (Myfxbook or MQL5 Signals, real money — not demo, not backtest) Hard stop loss on EVERY trade, set at order placement NO martingale, NO grid, NO averaging into losers, NO lot multiplication after a loss Max historical drawdown under 30% Minimum 5 trades per
Mr quetta
100+ USD
Yes, that is exactly what I need. The bot should not be restricted to a fixed list of currency pairs. It should technically scan all available Quotex pairs in real time and automatically select the pair where the market conditions are strongest. The bot should analyze each pair using multiple confirmations, such as short-term price momentum, trend direction, market structure, support/resistance, candle formation
Hello, I trade on HFM MT5. Need SCALPING EA for scalping, budget $30. SYMBOLS: XAUUSD (GOLD), US30, NAS100, GER40, EURUSD TIMEFRAME: M1 and M5 PLATFORM: MT5, must work on HFM VPS STRATEGY: - EMA 9 crosses EMA 21 - RSI 14: BUY only if RSI >45, SELL only if RSI <55 - Bollinger Bands: Only trade when price returns inside BB after breakout - 1 trade at a time per symbol - SL: 150 points Gold / 100 points indices (must be
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
项目信息
预算
30 - 50 USD