명시
//+------------------------------------------------------------------+
//| XAUUSD Safe Scalp - TP $2 / SL 60 points |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade;
// ===== Inputs =====
input double LotSize = 0.01;
input int StopLoss = 60; // points
input double DollarTP = 2.0; // ربح بالدولار
input int MAPeriod = 50;
input ENUM_TIMEFRAMES Timeframe = PERIOD_M5;
// Sessions GMT
input int AsiaStart = 0;
input int AsiaEnd = 9;
input int LondonStart = 8;
input int LondonEnd = 17;
int maHandle;
//+------------------------------------------------------------------+
int OnInit()
{
if(_Symbol != "XAUUSD")
{
Print("هاد EA خدام غير على XAUUSD");
return INIT_FAILED;
}
maHandle = iMA(_Symbol, Timeframe, MAPeriod, 0, MODE_SMA, PRICE_CLOSE);
if(maHandle == INVALID_HANDLE)
return INIT_FAILED;
return INIT_SUCCEEDED;
}
//+------------------------------------------------------------------+
void OnTick()
{
// ===== Session filter =====
MqlDateTime t;
TimeToStruct(TimeCurrent(), t);
int hour = t.hour;
bool inAsia = (hour >= AsiaStart && hour < AsiaEnd);
bool inLondon = (hour >= LondonStart && hour < LondonEnd);
if(!(inAsia || inLondon))
return;
// صفقة وحدة فقط
if(PositionSelect(_Symbol))
return;
// ===== Market data =====
double ma[2], closeP[2], openP[2];
if(CopyBuffer(maHandle, 0, 0, 2, ma) <= 0) return;
if(CopyClose(_Symbol, Timeframe, 0, 2, closeP) <= 0) return;
if(CopyOpen(_Symbol, Timeframe, 0, 2, openP) <= 0) return;
// ===== BUY condition =====
if(closeP[1] > ma[1] && closeP[0] > ma[1] && closeP[0] > openP[0])
OpenTrade(true);
// ===== SELL condition =====
if(closeP[1] < ma[1] && closeP[0] < ma[1] && closeP[0] < openP[0])
OpenTrade(false);
}
//+------------------------------------------------------------------+
void OpenTrade(bool buy)
{
double price = buy ? SymbolInfoDouble(_Symbol, SYMBOL_ASK)
: SymbolInfoDouble(_Symbol, SYMBOL_BID);
double sl = buy ? price - StopLoss * _Point
: price + StopLoss * _Point;
// حساب TP بالدولار
double tpPoints = DollarTP / (LotSize * SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE));
double tp = buy ? price + tpPoints * _Point
: price - tpPoints * _Point;
if(buy)
trade.Buy(LotSize, _Symbol, price, sl, tp);
else
trade.Sell(LotSize, _Symbol, price, sl, tp);
}
응답함
1
등급
프로젝트
0
0%
중재
1
0%
/
100%
기한 초과
0
작업중
2
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
Looking for an experienced MQL5 developer to analyze and reverse-engineer the trading logic of an existing scalping Zone Recovery EA using Moving Averages and Bollinger Bands, and then rebuild it
EA Expert MTA 4
30+ USD
I have my own indicator and needs to create EA expert working smoothly with it to hit the targets as defined in indicator: Technical approach: - The EA will read the indicator signals using Copy Buffer on the selected timeframe - The EA should hit indicator variable targets factor -Auto-Entry: Instant execution when the signal appears. -Alerts: Mobile Push Notifications + Pop-up alerts. -Money Management Auto-lot
I am looking for an experienced MQL5 developer to build a very fast AI-assisted scalping Expert Advisor, with special focus on XAUUSD (Gold). Core Strategy Designed mainly for XAUUSD, but should also work on all forex pairs and metals Opens multiple trades in the same direction Closes trades immediately once they are in profit (very small, fast profits) Optimized for high-speed scalping No martingale and no risky
hello great developer I’m hiring a developer to build a local-only trade copier that sends trades from MT4 and MT5 to NinjaTrader 8 (NT8) in real-time. This copier must be reliable, fast, and fully executable without cloud dependence. I require a short test/demo period before full delivery to ensure quality and performance. here is the full project specs in the file check it please
I need a reliable, clean-coded Expert Advisor built for both MetaTrader 4 and MetaTrader 5 platforms. Main trading behavior: The EA follows buy and sell arrows produced by my custom indicator. Whenever a buy arrow shows up on the chart: if a sell position is currently open → close that sell immediately and enter a buy trade in its place. Whenever a sell arrow appears: if a buy position exists → close the buy and
CONVERTER ROBOT TO MQL5
30 - 40 USD
Hello I'm looking for professional to create a robot to me that will enter us30 or nasdaq around 16H29-minute55-Second New York session opening Monday to Friday and put stop loss 3800 points away from entry hedging strategy
Custom MT5 Expert Advisor Development
30 - 200 USD
*I am looking for an experienced MQL5 developer to build a custom Expert Advisor (EA) for MetaTrader 5 based on my proprietary trading strategy. The full strategy details will be shared privately with the selected developer after agreement. The EA must be designed for automated trade execution with a strong focus on accuracy, speed, and stability. It should support flexible input settings and allow for future
📋 Project Description I am looking for an experienced MT5 (MQL5) developer to code a fully automated Expert Advisor for NASDAQ (US100) based on a fixed, rule-based opening range breakout strategy. The strategy is mechanical, uses no discretionary logic, and must be coded exactly as specified below. 🕒 Time & Session Rules Market: NASDAQ (US100) Trading days: Monday–Friday Session open: 9:30 EST EA must convert
hi every one i need to get the source code from this ea for modification in meta trader 4 or meta trader 5. because i need to put in settings the number of open trades , as this is now opening unlimited trades
hello great developer I need help developing an ICT 2022 model indicator and testing it thoroughly to ensure optimal performance and accuracy. Scope of work - Create an ICT 2022 model indicator with specified features. - Conduct repeated tests and strategy tests to refine the indicator. - Implement midnight to 9:30 box high and low range settings. - Include signal settings for major liquidity and structure break with
프로젝트 정보
예산
30+ USD
고객
넣은 주문1
중재 수0