指定
Here is a script for forex trading AI tool requirements
_MT4 Version_
```
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
int start()
{
// Define the number of positions
int numPositions = 50; // adjust this value from 5 to 100
// Define the symbol and stop levels
string symbol = _Symbol; // current symbol
double stopLevel = 0.01; // adjust this value
// Define bulk operations buttons
int bulkCloseAll = 0;
int bulkCloseProfitable = 0;
int bulkCloseSell = 0;
int bulkCloseBuy = 0;
// Define stop loss and take profit buttons
double stopLoss = 0.0;
double takeProfit = 0.0;
// Define adjustable lot size
double lotSize = 0.1;
// Loop through each position
for (int i = 0; i < numPositions; i++)
{
// Calculate the stop price for buy and sell
double buyStopPrice = Ask + (i * stopLevel);
double sellStopPrice = Bid - (i * stopLevel);
// Place buy stop order
int ticket = OrderSend(symbol, OP_BUYSTOP, lotSize, buyStopPrice, 3, stopLoss, takeProfit, "Buy Stop", 0, 0, Green);
// Place sell stop order
ticket = OrderSend(symbol, OP_SELLSTOP, lotSize, sellStopPrice, 3, stopLoss, takeProfit, "Sell Stop", 0, 0, Red);
}
// Bulk operations buttons
if (bulkCloseAll == 1) {
CloseAllOrders();
}
if (bulkCloseProfitable == 1) {
CloseProfitableOrders();
}
if (bulkCloseSell == 1) {
CloseSellOrders();
}
if (bulkCloseBuy == 1) {
CloseBuyOrders();
}
return(0);
}
//+------------------------------------------------------------------+
//| Close all orders function |
//+------------------------------------------------------------------+
void CloseAllOrders()
{
for (int i = 0; i < OrdersTotal(); i++) {
OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
}
}
//+------------------------------------------------------------------+
//| Close profitable orders function |
//+------------------------------------------------------------------+
void CloseProfitableOrders()
{
for (int i = 0; i < OrdersTotal(); i++) {
if (OrderProfit() > 0) {
OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
}
}
}
//+------------------------------------------------------------------+
//| Close sell orders function |
//+------------------------------------------------------------------+
void CloseSellOrders()
{
for (int i = 0; i < OrdersTotal(); i++) {
if (OrderType() == OP_SELL) {
OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
}
}
}
//+------------------------------------------------------------------+
//| Close buy orders function |
//+------------------------------------------------------------------+
void CloseBuyOrders()
{
for (int i = 0; i < OrdersTotal(); i++) {
if (OrderType() == OP_BUY) {
OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
}
}
}
```
_MT5 Version_
```
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
// Define the number of positions
int numPositions = 50; // adjust this value from 5 to 100
// Define the symbol and stop levels
string symbol = Symbol(); // current symbol
double stopLevel = 0.01; // adjust this value
// Define bulk operations buttons
int bulkCloseAll = 0;
int bulkCloseProfitable = 0;
int bulkCloseSell = 0;
int bulkCloseBuy = 0;
// Define stop loss and take profit buttons
double stopLoss = 0.0;
double takeProfit = 0.0;
// Define adjustable lot size
double lotSize = 0.1;
// Loop through each position
for (int i = 0; i < numPositions; i++)
{
// Calculate the stop price for buy and sell
double buyStopPrice = SymbolInfoDouble(symbol, SYMBOL_ASK) + (i * stopLevel);
double sellStopPrice = SymbolInfoDouble(symbol, SYMBOL_BID) - (i * stopLevel);
// Place buy stop order
int ticket = OrderSend(symbol, OP_BUYSTOP, lotSize, buyStopPrice,
```
応答済み
1
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
2
評価
プロジェクト
186
41%
仲裁
24
58%
/
21%
期限切れ
13
7%
暇
類似した注文
Hello, I’m looking for an experienced MQL4/MQL5 developer to work with me on an ongoing basis. My clients request services such as: Converting TradingView Pine Script indicators/strategies into MT4 or MT5 Expert Advisors Converting MT4 EAs to MT5 (and MT5 to MT4) Compiling and fixing existing MQL4 / MQL5 EA code Adding simple features like alerts, SL/TP, lot size, and basic money management This job is for
I am looking someone to create an EA based on my MACD Histo indicator / strategy from Pinescript. I will send it to you for you to replicate. The EA shall have: - Divergence length in bars, min and max values. - Pivot Logic - Entry on close of divergence confirmation bar. - Dynamic lot size dependent on SL/TP, in monetary value. - SL / TP in percent away from entry, separate values for long and short. - Time, day and
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
simple automated trading system with adaptive risk management and trend-based execution. The EA manages trades with dynamic position handling and built-in stability filters. Designed for single-position trading and disciplined execution 30 usd budget
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Ninjatrader strategy for mnq
30+ USD
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
EA developer with stregegy builder required
50 - 100 USD
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
I am looking for a developer to build a robust MetaTrader 5 Expert Advisor for Gold (XAUUSD) scalping on the M5 timeframe. The EA must be optimized for small accounts ($200 - $1,000). Technical Requirements: Primary Strategy: Mean Reversion using Bollinger Bands (20, 2.0) and RSI (14). Buy: Price closes below lower band + RSI < 30 + Trend Filter. Sell: Price closes above upper band + RSI > 70 + Trend Filter. Trend
Olá amigos possuo um indicador que não tem o código fonte mas tenho a licença para usar esse indicador que está me trazendo bons resultados no meu operacional desejo automatizar as suas entradas através de um robô funciona mais ou menos da seguinte forma o indicador gera um sinal de compra ou venda e também gera um nível de take profit stop loss.O robô deve fazer a leitura dos sinais e definir TP e SL nos mesmos
プロジェクト情報
予算
30+ USD