Specification
// 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);
}
Responded
1
Rating
Projects
293
21%
Arbitration
35
54%
/
29%
Overdue
38
13%
Working
2
Rating
Projects
4
50%
Arbitration
4
0%
/
75%
Overdue
0
Working
3
Rating
Projects
118
17%
Arbitration
44
23%
/
39%
Overdue
21
18%
Working
4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I want a trading robot that will be trading based on previous (support & resistance) & candlestick patterns. I will provide a screenshot & the candlestick system that I need the EA to open trades according to those signals. I want a situation when I put a robot on the chart It Will only buy/sell in a particular direction only. Starting from 15 minutes to the daily timeframe, if the market price is on the 'support'
Looking for French speaking developer
30 - 100 USD
Good morning I am definitely looking for a French developer to finish my discord to mt5 signal copier projectThe developer who started this project has unfortunately no longer been active for 3 weeks and I have to finish the project then I am looking for a developer who could copy signals on the Sierra Charts trading platform on my chart footprint who will send the signals to mt5 a end of executions. regarding the
EA developent needed similar to SMC
30 - 100 USD
I have a working strategy that needs to be automated. It is very similar to SMC but with a few tweaks. I need the EA to run through forex pairs mainly and XAUUSD. The forex pairs: - AUDUSD - EURUSD - GBPUSD - USDCAD - USDCHF - EURGBP - XAUUSD I need the EA to understand the overall bias in Timeframes; for example, i need it to display the bias on the daily, 4hr, 1hr, 30min, 15min, 5min, 1min. The steps are simple; -
Subject: Request for API programming for AI financial analysis program Dear Programmer, request API programming for my AI program. , news, and market movements and indicators. I want to program a program that can access historical and real-time market data. This data can be used to analyze price movements and identify potential trends. I want the API to include the following: Market data: including stock prices
Backtest MT4 EA
30 - 40 USD
Greetings, I am interested in obtaining a Backrest report for an MT4 EA covering the past year, specifically from September 25, 2022, to September 25, 2023. The desired time frame for this report is 1 minute, and the pairs to be included are EURUSD, USDCHF, GBPUSD, AUDUSD, USDCAD, and USDJPY. Kindly Bid for this project if it what you can do for me
Am i need of a developer to create a mt5 program that can copy the orders a bot makes in a mt5 account from this mt5 to another mt5 or Mt4 automatically. Kindly bid for this project if it is what you can do for me. Thanks
This is my first request, and depending on the final result, I would like to close a partnership for future work (if possible)! I want a robot that works on buy and sell operations, with an AI implementation, where it learns with the operations, mistakes, hits, and always evolves. I want the operations to be based on pivot, having the RSI(9) to confirm the entries, I think the indicator zigzag could complement giving
Hello I currently have a TradingView strategy that I would like converted into an automated EA for MT4. The strategy consists of 3 Supertrend indicators (by KivancOzbilgic) .Kindly bid if you have interest and let discuss
Hello I currently have a TradingView strategy that I would like converted into an automated EA for MT4. The strategy consists of 3 Supertrend indicators (by KivancOzbilgic) .Kindly bid if you have interest and let discuss
Hello I currently have a TradingView strategy that I would like converted into an automated EA for MT4. The strategy consists of 3 Supertrend indicators (by KivancOzbilgic) .Kindly bid if you have interest and let discuss
Project information
Budget
30+ USD
VAT (20%):
6
USD
Total:
36
USD
For the developer
27
USD
Deadline
from 30 to 50 day(s)