Termos de Referência
//+------------------------------------------------------------------+
//| 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");
}
Respondido
1
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
1
100%
Trabalhando
2
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
3
Classificação
Projetos
491
23%
Arbitragem
59
54%
/
25%
Expirado
56
11%
Carregado
4
Classificação
Projetos
125
24%
Arbitragem
23
26%
/
52%
Expirado
8
6%
Trabalhando
5
Classificação
Projetos
9
56%
Arbitragem
1
0%
/
100%
Expirado
1
11%
Trabalhando
6
Classificação
Projetos
7
0%
Arbitragem
2
50%
/
0%
Expirado
1
14%
Trabalhando
7
Classificação
Projetos
74
50%
Arbitragem
5
0%
/
60%
Expirado
19
26%
Livre
8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Classificação
Projetos
4
100%
Arbitragem
0
Expirado
0
Livre
10
Classificação
Projetos
0
0%
Arbitragem
2
0%
/
100%
Expirado
0
Livre
11
Classificação
Projetos
26
27%
Arbitragem
0
Expirado
2
8%
Trabalhando
12
Classificação
Projetos
264
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Classificação
Projetos
435
54%
Arbitragem
20
55%
/
15%
Expirado
30
7%
Trabalhando
16
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
17
Classificação
Projetos
50
8%
Arbitragem
0
Expirado
0
Livre
18
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
Pedidos semelhantes
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8
Intraday Trade Ninja EA
33+ USD
Intraday Trade Ninja EA Indicators used: Price Border(TMA) MA-X Arrows xSuperTrend Candles EMA 49 & 89- Per Candle Color Switching Lemansignal 200 SMA Major Criteria to consider before a trade setup or condition is taken · The price must have touched/tested the upper or
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
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)
Informações sobre o projeto
Orçamento
500+ USD
Prazo
de 1 para 7 dias
Cliente
Pedidos postados2
Número de arbitragens0