Tarea técnica
// Khai báo các tham số đầu vào
input int rsiPeriod = 14; // Chu kỳ RSI
đầu vào mua gấp đôiLevel = 30,0; // Ngưỡng quá bán RSI để mua
đầu vào bán gấp đôiLevel = 70,0; // Ngưỡng quá mua RSI để bán
đầu vào int movingAveragePeriod = 50; // Chu kỳ trung bình để theo dõi tài khoản
đầu vào rủi ro képPerTrade = 1,0; // Tỷ lệ sai sót của mỗi lệnh (% tài khoản)
input int keyLevelPeriod = 100; // Chu kỳ tìm kiếm key level
đầu vào int TrendLinePeriod = 100; // Chu kỳ tìm đường xu hướng
// Toàn bộ biến cục bộ để theo dõi hiệu suất
double totalProfit = 0;
int totalTrades = 0;
int winningTrades = 0;
int loseTrades = 0;
// Hàm khởi tạo EA
int OnInit() {
// Khởi tạo các biến hoặc chỉ báo cần thiết
trả về(INIT_SUCCEEDED);
}
// Hàm chạy mỗi khi có giá mới
void OnTick() {
// Lấy hiện tại RSI giá trị
giá trị rsiValue = iRSI(Biểu tượng(), 0, rsiPeriod, GIÁ_ĐÓNG, 0);
// Lấy động trung giá trị để theo dõi tài khoản
double movingAverage = iMA(Biểu tượng(), 0, movingAveragePeriod, 0, MODE_SMA, GIÁ_ĐÓNG, 0);
// Tìm Key Level ( Hỗ trợ/Kháng cự)
keyLevel kép = FindKeyLevel();
// Tìm Đường Xu Hướng (Trendline)
double trendLine = FindTrendLine();
// Điều kiện Mua
nếu (rsiValue < buyLevel && Close[0] > movingAverage && Close[0] > keyLevel && trendLine > 0) {
lotSize đôi = CalculateLotSize();
if (OrderSend(Symbol(), OP_BUY, lotSize, Ask, 3, 0, 0, "Mua từ EA", 0, 0, Green) > 0) {
Alert("Lệnh Mua Được Đặt: RSI dưới ", buyLevel," và giá trên MA ", movingAveragePeriod);
Cập nhật hiệu suất();
}
}
// Điều kiện Bán
nếu (rsiValue > sellLevel && Đóng[0] < movingAverage && Đóng[0] < keyLevel && trendLine < 0) {
lotSize đôi = CalculateLotSize();
if (OrderSend(Symbol(), OP_SELL, lotSize, Bid, 3, 0, 0, "Bán từ EA", 0, 0, Red) > 0) {
Alert("Lệnh Bán Được Đặt: RSI trên ", sellLevel," và giá dưới MA ", movingAveragePeriod);
Cập nhật hiệu suất();
}
}
}
// Hàm khi EA bị đóng
void OnDeinit(const int lý do) {
// Dọn dẹp khi EA bị tắt
Print("Tổng lợi nhuận: ", TotalProfit);
Print("Tổng số giao dịch: ", TotalTrades);
Print("Số giao dịch thắng: ", winTrades);
Print("Số giao dịch thua: ", lossTrades);
nếu (tổng số giao dịch > 0) {
Print("Tỷ lệ thắng: ", (double)Số giao dịch thắng / tổng số giao dịch * 100, "%");
}
}
// Hàm tính toán dựa trên lệnh kích thước trên mỗi lệnh đầy rủi ro
đôi CalculateLotSize() {
double riskAmount = Số dư tài khoản() * (riskPerTrade / 100);
gấp đôi kích thước lô = số tiền rủi ro / (100 * Điểm); // Giả sử khả năng cắt là 100 pip
trả về NormalizeDouble(lotSize, 2);
}
// Hàm cập nhật giao dịch hiệu quả
void Cập nhật hiệu suất() {
đối với (int i = OrdersHistoryTotal() - 1; i >= 0; i--) {
nếu (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) {
nếu (OrderSymbol() == Symbol() && OrderType() <= OP_SELL) {
lợi nhuận gấp đôi = OrderProfit();
tổng lợi nhuận += lợi nhuận;
totalTrades++;
nếu (lợi nhuận > 0) {
giao dịch chiến thắng++;
} khác {
mấtGiao dịch++;
}
}
}
}
}
// Hàm tìm Key Level (Hỗ trợ đa dạng/kháng cự)
đôi FindKeyLevel() {
double high = iHigh(Biểu tượng(), 0, iHighest(Biểu tượng(), 0, MODE_HIGH, keyLevelPeriod, 1));
thấp gấp đôi = iLow(Biểu tượng(), 0, iLowest(Biểu tượng(), 0, MODE_LOW, keyLevelPeriod, 1));
lợi nhuận (cao + thấp) / 2; // Trung bình giữa cao và thấp được xem là cấp độ chính
}
// Hàm tìm Đường Xu Hướng (Trendline)
đôi FindTrendLine() {
int bars = trendLinePeriod;
tổng képX = 0, tổng Y = 0, tổngXY = 0, tổngXX = 0;
đối với (int i = 0; i < thanh; i++) {
tổngX += i;
sumY += Đóng[i];
sumXY += i * Đóng[i];
tổngXX += i * i;
}
độ dốc kép = (các thanh * tổngXY - tổngX * tổngY) / (các thanh * tổngXX - tổngX * tổngX);
độ dốc trở lại; // Độ dốc của đường xu hướng, dương là xu hướng tăng, âm là xu hướng giảm
}
Han respondido
1
Evaluación
Proyectos
366
30%
Arbitraje
37
27%
/
65%
Caducado
10
3%
Trabaja
Ha publicado: 10 ejemplos
2
Evaluación
Proyectos
1
0%
Arbitraje
4
0%
/
50%
Caducado
0
Trabaja
3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Evaluación
Proyectos
129
25%
Arbitraje
25
28%
/
56%
Caducado
8
6%
Libre
5
Evaluación
Proyectos
478
40%
Arbitraje
105
40%
/
24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
Solicitudes similares
I have an existing compiled MetaTrader 5 Expert Advisor (EX5) designed for automated XAUUSD scalping. I want an experienced developer to assess and implement a solution to execute the EA’s original trading strategy through my broker’s FIX API. Requirements: Confirm the technical feasibility of connecting an existing MT5 EA to a broker FIX API. Explain how to obtain FIX API access and credentials from the broker
I’m looking for an experienced developer to build a fully automated XAUUSD scalping EA for MT5. Requirements: * Fast entries targeting small, profitable moves after trading costs. * Configurable fixed-target and trailing-stop modes. A $1 gold price move can trigger profit protection instead of closing the trade. * Once the profit trigger is reached, move the stop to cover costs and lock in a small net profit, then
I want to create an EA that will take trades according to a trading zone condition. The logic will start with the identification of a trading zone for BUY and SELL in the EA. After the trading zone has been identified, then the EA will use the current time frame prices to determine if the market will be a BUY or SELL. The market will be a BUY if the low price range goes above the lowest price after the installation
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
Trading
35+ USD
Project: XAUUSD Gold Trading Robot for MetaTrader 5 I want to develop a fully automated Expert Advisor (EA) for MetaTrader 5, designed exclusively for Gold (XAUUSD) and compatible with the Exness broker. Trading Strategy: Liquidity + CHOCH + Retest Identify important buy-side and sell-side liquidity zones using previous highs and lows, equal highs/lows, and confirmed swing points. Wait for a clear liquidity sweep
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
MT4 expert advisor
500+ USD
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
Información sobre el proyecto
Presupuesto
30 USD