Termos de Referência
// Forex Strategy for Consistency in Profit
// Input parameters
input int FastMAPeriod = 10; // Period for the fast moving average
input int SlowMAPeriod = 30; // Period for the slow moving average
input double StopLossPips = 50; // Stop loss in pips
input double TakeProfitPips = 100; // Take profit in pips
// Global variables
int ticket = 0; // Order ticket number
// Indicator buffers
double fastMABuffer[];
double slowMABuffer[];
// Initialization function
int OnInit()
{
// Define indicator buffers
SetIndexBuffer(0, fastMABuffer);
SetIndexBuffer(1, slowMABuffer);
// Set indicator plot type
SetIndexStyle(0, DRAW_LINE);
SetIndexStyle(1, DRAW_LINE);
// Set indicator colors
SetIndexLabel(0, "Fast MA");
SetIndexLabel(1, "Slow MA");
SetIndexDrawBegin(0, SlowMAPeriod);
SetIndexDrawBegin(1, SlowMAPeriod);
// Set indicator parameters
SetIndexShift(0, 0);
SetIndexShift(1, 0);
SetIndexEmptyValue(0, 0);
SetIndexEmptyValue(1, 0);
// Return successful initialization
return INIT_SUCCEEDED;
}
// Trading function
void OnTick()
{
// Calculate moving averages
ArraySetAsSeries(fastMABuffer, true);
ArraySetAsSeries(slowMABuffer, true);
int fastMA = iMA(Symbol(), 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
int slowMA = iMA(Symbol(), 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
// Check for a crossover
if (fastMA > slowMA && fastMABuffer[1] <= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new buy position
ticket = OrderSend(Symbol(), OP_BUY, 0.1, Ask, Slippage, Ask - StopLossPips * Point, Ask + TakeProfitPips * Point, "Buy Order", 0, 0, Green);
}
else if (fastMA < slowMA && fastMABuffer[1] >= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new sell position
ticket = OrderSend(Symbol(), OP_SELL, 0.1, Bid, Slippage, Bid + StopLossPips * Point, Bid - TakeProfitPips * Point, "Sell Order
Respondido
1
Classificação
Projetos
66
12%
Arbitragem
12
58%
/
42%
Expirado
1
2%
Livre
2
Classificação
Projetos
32
28%
Arbitragem
5
60%
/
40%
Expirado
6
19%
Livre
3
Classificação
Projetos
2
0%
Arbitragem
1
0%
/
0%
Expirado
2
100%
Livre
4
Classificação
Projetos
632
33%
Arbitragem
39
38%
/
49%
Expirado
11
2%
Carregado
5
Classificação
Projetos
641
41%
Arbitragem
25
48%
/
36%
Expirado
46
7%
Trabalhando
6
Classificação
Projetos
4
50%
Arbitragem
4
0%
/
75%
Expirado
0
Livre
Pedidos semelhantes
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger
I am looking for a professional MQL5 developer to build a structured MT5 Expert Advisor. This is NOT a martingale or high-risk grid bot. Platform: • MT5 only (MQL5 source code required) Symbols: • XAUUSD • GBPUSD • GBPJPY Timeframe: • M5 Risk Management: • Adjustable risk per trade (default 0.5% equity) • Daily drawdown protection (max 3%, auto-lock trading for the day) • Maximum 2 open trades • Minimum 120 seconds
Requirements: - Convert my written trading rules into TradingView Pine strategy - Then convert into MT5 EA - Entry must be next candle open after signal candle close - Stop loss on signal candle high/low - Position sizing: fixed % risk per trade - Portfolio risk cap across symbols - One trade per symbol at a time - Must understand backtesting differences (spread, slippage, fill logic) Important: I want to be able to
Data Integrity
500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away
Saya ingin dibuatkan Expert Advisor untuk MetaTrader 5 berbasis strategi EMA 50/200 + Breakout 20 candle dengan sistem risk percentage otomatis. EA harus memiliki fitur ATR stop loss, trailing stop, break even, max spread filter, dan daily loss limit. Dilarang menggunakan martingale, grid, atau averaging. Target RR minimal 1:2 dan drawdown di bawah 20%
Informações sobre o projeto
Orçamento
30+ USD
Prazo
de 1 para 30 dias