指定
// 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
評価
プロジェクト
479
23%
仲裁
57
56%
/
25%
期限切れ
55
11%
取り込み中
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
暇
類似した注文
BMM VERSION 1 AI
30+ USD
//+------------------------------------------------------------------+ //| FXE Trader Smart AI EA (Deriv MT5 Forex) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; // ===== INPUTS ===== input double RiskPercent = 1.0; // % risk per trade input int FastEMA = 50; input int SlowEMA = 200; input int RSI_Period = 14; input int
Ninjatrader indicator
30+ USD
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Nijatrader indicator
30+ USD
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
I want to create an SMC bot base on ICT and Market structure,the bot must be able to keep adding on more positions while started.The bot must have a perfect risk management
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4‑year backtest (2022‑2025) report, equity curve, trade list, strategy description, and 1‑month demo access. Please without concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Ultimate Quantum EA V1.01
30 - 350 USD
Title: Ultimate Quantum EA V1.01 | Dynamic Hedge Recovery System Description: Professional automated trading system designed for high-precision execution and advanced risk management. Key Features: Dynamic Hedge Recovery: Automatically manages losing trades by opening calculated hedge positions (2x-3x) to exit in total profit. Basket Profit Management: Closes all open positions once the total dollar profit target is
プロジェクト情報
予算
30+ USD
締め切り
最低 30 最高 50 日