명시
//+------------------------------------------------------------------+
//| Simple Moving Average Crossover EA |
//+------------------------------------------------------------------+
#property strict
input int ShortMA = 10;
input int LongMA = 50;
input double LotSize = 0.01;
int shortMAHandle;
int longMAHandle;
//+------------------------------------------------------------------+
int OnInit()
{
shortMAHandle = iMA(_Symbol, _Period, ShortMA, 0, MODE_SMA, PRICE_CLOSE);
longMAHandle = iMA(_Symbol, _Period, LongMA, 0, MODE_SMA, PRICE_CLOSE);
if(shortMAHandle == INVALID_HANDLE || longMAHandle == INVALID_HANDLE)
{
Print("Error creating MA indicators");
return(INIT_FAILED);
}
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
double shortMA[], longMA[];
CopyBuffer(shortMAHandle, 0, 0, 3, shortMA);
CopyBuffer(longMAHandle, 0, 0, 3, longMA);
double prevShort = shortMA[1];
double prevLong = longMA[1];
double currShort = shortMA[0];
double currLong = longMA[0];
// Check if there are open positions
bool hasPosition = PositionSelect(_Symbol);
// BUY condition
if(prevShort < prevLong && currShort > currLong)
{
if(!hasPosition)
{
OpenBuy();
}
}
// SELL condition
if(prevShort > prevLong && currShort < currLong)
{
if(hasPosition)
{
ClosePosition();
}
}
}
//+------------------------------------------------------------------+
void OpenBuy()
{
MqlTradeRequest request;
MqlTradeResult result;
ZeroMemory(request);
ZeroMemory(result);
request.action = TRADE_ACTION_DEAL;
request.symbol = _Symbol;
request.volume = LotSize;
request.type = ORDER_TYPE_BUY;
request.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
request.deviation = 10;
request.magic = 123456;
OrderSend(request, result);
Print("BUY order sent");
}
//+------------------------------------------------------------------+
void ClosePosition()
{
if(!PositionSelect(_Symbol)) return;
ulong ticket = PositionGetInteger(POSITION_TICKET);
MqlTradeRequest request;
MqlTradeResult result;
ZeroMemory(request);
ZeroMemory(result);
request.action = TRADE_ACTION_DEAL;
request.symbol = _Symbol;
request.volume = PositionGetDouble(POSITION_VOLUME);
request.type = ORDER_TYPE_SELL;
request.position = ticket;
request.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
request.deviation = 10;
request.magic = 123456;
OrderSend(request, result);
Print("Position closed");
}
응답함
1
등급
프로젝트
1
0%
중재
0
기한 초과
1
100%
작업중
2
등급
프로젝트
1
0%
중재
0
기한 초과
0
무료
3
등급
프로젝트
491
23%
중재
59
54%
/
25%
기한 초과
56
11%
로드됨
4
등급
프로젝트
125
24%
중재
23
26%
/
52%
기한 초과
8
6%
작업중
5
등급
프로젝트
9
56%
중재
1
0%
/
100%
기한 초과
1
11%
작업중
6
등급
프로젝트
7
0%
중재
2
50%
/
0%
기한 초과
1
14%
작업중
7
등급
프로젝트
74
50%
중재
5
0%
/
60%
기한 초과
19
26%
무료
8
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
9
등급
프로젝트
4
100%
중재
0
기한 초과
0
무료
10
등급
프로젝트
0
0%
중재
2
0%
/
100%
기한 초과
0
무료
11
등급
프로젝트
26
27%
중재
0
기한 초과
2
8%
작업중
12
등급
프로젝트
264
30%
중재
0
기한 초과
3
1%
무료
게재됨: 2 코드
13
등급
프로젝트
0
0%
중재
0
기한 초과
0
작업중
14
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
15
등급
프로젝트
435
54%
중재
20
55%
/
15%
기한 초과
30
7%
작업중
16
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
17
등급
프로젝트
50
8%
중재
0
기한 초과
0
무료
비슷한 주문
Samuel
100+ USD
//+------------------------------------------------------------------+ //| LEVEL 100 SNIPER BOT (SMC + ATR + RSI + Trend Filter) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //--- Inputs input double RiskPercent = 1.0; input int FastMA = 20; input int SlowMA = 50; input int RSI_Period = 14; input int ATR_Period = 14; input
An Expert advisor based on ZigZag
30 - 100 USD
Subject: Expert Advisor Refactoring & Optimization Request – ZigZagSignalTrader_SmallAcc Dear Developer, I am seeking a senior MQL5 developer to refactor and optimize an existing Expert Advisor titled "ZigZagSignalTrader_SmallAcc." The current version is a prototype designed for small accounts (0.01 lot) using a ZigZag and EMA trend-following strategy. While functional, the code requires professional hardening to
Job Description I'm seeking an expert Python developer to build a fully automated, institution‑grade options trading bot for my Charles Schwab brokerage account. The core strategy is a Monday‑morning 5‑DTE Iron Condor on SPX weekly options with ultra‑narrow 1‑point wings, a fixed 17‑strike OTM entry, and a layered defense system that actively re‑centers the position when the market moves—then escalates to hard stops
Panda402
30 - 100000 USD
The file must be fast to move with the market. It must be transparent it must move accordingly with the market and increase the money and also with less risk
Description: I am looking for an experienced MT4/MT5 (MQL4/MQL5) developer for consultation and possible future development of an advanced Expert Advisor architecture. This is NOT a simple RSI, MACD, martingale, or indicator-only EA project. I already have an existing EA framework using: RSI timing logic EMA direction filters trend and volatility filters DCA / basket management protection and recovery logic Now I
I need an experienced MQL5 developer to build a custom MT5 Expert Advisor for XAUUSD. Strategy Overview: Trend-following using EMA 50/200 on H4 and H1 Pullback entries on M5 using RSI + candle confirmation No martingale, no averaging down Controlled scaling only when trades are already in profit Maximum 2–3 positions per direction Risk Management: Daily loss limit (%) Equity hard stop (%) Consecutive loss pause
I am looking for an experienced MT4 developer or strategy tester to run a comprehensive optimization of my existing Expert Advisor (EA). The EA is already developed and working as intended — your task will be to configure and execute the optimization process using the "Every tick based on real ticks" model. Scope of Work: Run EA optimization in MT4 Strategy Tester. Use "Every tick based on real ticks" as the
Gold Edge Pro
30 - 150 USD
Create a fully working Expert Advisor (EA) for MetaTrader 5, designed exclusively for GOLD (XAUUSD only). This is a high‑probability trend‑following breakout strategy built specifically for passing 2‑step prop firm challenges — it delivers a ~60–65% win rate, uses a strict 1:3 risk/reward ratio, and is optimised to pass both phases in roughly 1–2 weeks total. --- ⚙️ USER INPUTS — FULLY FLEXIBLE RISK --- All main
This EA is for trading XAUUSD. There are 2 trade logics. One based on trend reversal (with 5 trade opening conditions). The second is based on trend continuation (with 1-2 conditions)
Patricia Ukawilu 6:43 PM I need help creating an EA to optimize my trade. I already have a preliminary pine script which I will want optimized and create an EA from it to optimize my trade on MT4. I also subscribed to a signal app. I’m looking to automate the execution of the signal from the app so as not to miss out on good trades
프로젝트 정보
예산
500+ USD
기한
에서 1 로 7 일
고객
넣은 주문2
중재 수0