指定
// Setting the initial parameters
double capital = 1000;
double risk = 0.015; // 1.5% stop loss
double take_profit = 0.10;
double lot_size = 0.10;
int max_executions = 6;
// Calculating the Ichimoku indicator
int period1 = 9;
int period2 = 26;
int period3 = 52;
int period4 = 26;
double tenkan_sen[];
double kijun_sen[];
int init()
{
// Calculate the Ichimoku indicator
ArrayResize(tenkan_sen, Bars);
ArrayResize(kijun_sen, Bars);
for (int i = 0; i < Bars; i++)
{
double ichimoku[4];
iIchimoku(Symbol(), 0, period1, period2, period3, period4, PRICE_HIGH, ichimoku);
tenkan_sen[i] = ichimoku[0];
kijun_sen[i] = ichimoku[1];
}
return (0);
}
int start()
{
// Implementing the trading strategy
static int position = 0; // 0 represents no position, 1 represents long position
static int executions = 0; // Number of executions
double stop_loss, take_profit_price;
for (int i = 1; i < Bars; i++)
{
if (tenkan_sen[i - 1] > kijun_sen[i - 1] && tenkan_sen[i] < kijun_sen[i] && position == 0)
{
if (executions < max_executions)
{
position = 1;
executions++;
stop_loss = iClose(Symbol(), 0, i) * (1 - risk);
take_profit_price = iClose(Symbol(), 0, i) * (1 + take_profit);
capital -= lot_size * iClose(Symbol(), 0, i); // Entering the market
}
}
else if (tenkan_sen[i - 1] > kijun_sen[i - 1] && tenkan_sen[i] < kijun_sen[i] && position == 1)
{
position = 0;
executions--;
capital += lot_size * iClose(Symbol(), 0, i); // Exiting the market
}
else if (iClose(Symbol(), 0, i) < stop_loss && position == 1)
{
position = 0;
executions--;
capital += lot_size * stop_loss; // Exiting the market with stop loss
}
else if (iClose(Symbol(), 0, i) > take_profit_price && position == 1)
{
position = 0;
executions--;
capital += lot_size * take_profit_price; // Exiting the market with take profit
}
}
// Print the final capital
Print("Final Capital: $", capital);
return (0);
}
応答済み
1
評価
プロジェクト
481
23%
仲裁
58
55%
/
26%
期限切れ
56
12%
取り込み中
2
評価
プロジェクト
4
50%
仲裁
4
0%
/
75%
期限切れ
0
暇
3
評価
プロジェクト
118
17%
仲裁
44
23%
/
39%
期限切れ
20
17%
暇
4
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
5
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
6
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
類似した注文
Busco programador profesional con experiencia demostrable en MQL5 para crear un Expert Advisor en MetaTrader 5 basado en Price Action , con lógica jerárquica, reglas objetivas y gestión de zonas dinámicas. La estrategia esta explicada en un documento Word de 30 páginas (con imágenes) explicado en español. Características del EA: Operaciones Buy, Sell, Buy Limit y Sell Limit (máx. 2 operaciones pendientes simultáneas
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
I have a open source Tradingview indicator that I want it to be converted to Ninja Trader8. I have attached it. Please let me know, if you can do it and for how muc
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
ICT_OneTrade_2R
100 - 200 USD
🔥 ICT_OneTrade_2R Precision. Discipline. Consistency. ICT_OneTrade_2R is a professional Expert Advisor designed for traders who value structured execution and controlled risk. This system is built around a fixed Risk-to-Reward ratio of 1:2 (RR 2.0) — meaning every trade is planned with precision: Risk 1 → Target 2. No randomness. No overtrading. Just one high-quality trade per session. ⚙️ Key Features ✔ Fixed RR 1:2
Apply with a keen sense of responsibility . Copy the code . Both of my expert has sufficient materials . Its a simple winning strategy , therefore please be ahead of time . Code BLUE . Changing The Strategy According to what i think is correct
Gold robot Ga1
30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this
Convert Pinescript into MQL5 EA trading bot
30 - 200 USD
I need a scalping-specific logic MT5 trading bot with a Donchian-channel–based dynamic stop-loss and take-profit system, applies RSI volatility filtering to avoid low-quality setups, and allows asset-specific adjustable parameters for fine-tuning performance Trading details: - Symbol: Any Forex EUR/USD - Platform: MT5 - Strategy type: Scalping (fast trades) - Timeframes: 5sec/ M1 / M5 - Fixed Stop Loss and Take
Create trading alerts straight to phone
30 - 200 USD
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
プロジェクト情報
予算
30+ USD
締め切り
最低 30 最高 50 日