Script for close order automatically

MQL5 スクリプト C++

仕事が完了した

実行時間2 日

指定

I trade multiple pairs with a automated signal provided from another platform.


Existing method: when mt4/mt5 receives the buy or sell signal it will execute the order automatically. But it doesn't close the previously running position in the same pair.


Requirement:

Script should work @ each order is executed(buy/sell).

Only one trade will be there per symbol at any point of time. if mt4/mt5 receives a signal it will execute the orders. Now script will check for more than one order in any symbol. If there is more than one order in a symbol the script should close the older order.

For example: if mt4/mt5 receives a sell signal it will be executed automatically. now the script should check for the more than one order condition in that symbol if there is more than one trade (Sell executed now and a buy is running already and its a older order) the script should close older orders and the latest should be active and running.


NOTE: need this script in both mt4 and mt5

応答済み

1
開発者 1
評価
(192)
プロジェクト
232
30%
仲裁
1
100% / 0%
期限切れ
9
4%
パブリッシュした人: 2 codes
2
開発者 2
評価
(12)
プロジェクト
12
25%
仲裁
0
期限切れ
1
8%
3
開発者 3
評価
(20)
プロジェクト
29
55%
仲裁
0
期限切れ
0
4
開発者 4
評価
(430)
プロジェクト
606
55%
仲裁
48
23% / 56%
期限切れ
176
29%
5
開発者 5
評価
(349)
プロジェクト
463
51%
仲裁
41
24% / 49%
期限切れ
149
32%
6
開発者 6
評価
(19)
プロジェクト
27
19%
仲裁
6
33% / 33%
期限切れ
2
7%
7
開発者 7
評価
(34)
プロジェクト
51
43%
仲裁
5
40% / 20%
期限切れ
14
27%
パブリッシュした人: 2 codes
8
開発者 8
評価
(65)
プロジェクト
71
30%
仲裁
8
0% / 88%
期限切れ
5
7%
9
開発者 9
評価
(7)
プロジェクト
10
60%
仲裁
4
0% / 75%
期限切れ
3
30%
パブリッシュした人: 76 articles, 5 codes
10
開発者 10
評価
(12)
プロジェクト
13
23%
仲裁
7
0% / 71%
期限切れ
3
23%
仕事中
11
開発者 11
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
12
開発者 12
評価
(45)
プロジェクト
91
13%
仲裁
34
26% / 59%
期限切れ
37
41%
13
開発者 13
評価
(49)
プロジェクト
134
27%
仲裁
62
13% / 53%
期限切れ
58
43%
パブリッシュした人: 335 articles, 1 code
14
開発者 14
評価
(54)
プロジェクト
65
52%
仲裁
5
40% / 60%
期限切れ
22
34%
仕事中
15
開発者 15
評価
(64)
プロジェクト
144
46%
仲裁
20
40% / 20%
期限切れ
32
22%
類似した注文
i need someone that can make me an EA really easy with the martingala system?, I am looking for something that doesn't exceed 5 trades for the martingale, I think I did it, but it only works for propfirms, So i need to develop it on ninja trader I have identified a very very simple strategy but it only works on propfirms, with only two propfirm accounts, i absolutely need account A and account, And they have to open
Access and confidentiality restrictions: You will receive only a separately named copy of the Commander . Existing trading EAs, presets, account credentials, Telegram credentials and proprietary entry/exit code will not be shared. The Commander intelligence must be developed using: Defined signal/input interfaces Anonymized historical logs and replay data Mock EA signals and test harnesses Documented authority and
We are looking for an expert algorithmic trading developer to build a high-performance, fully automated Custom Expert Advisor (EA) or trading bot. The bot must integrate advanced Smart Money Concepts (SMC) , Inner Circle Trader (ICT) methodologies, and Volume Spread Analysis (VSA) with a high-frequency trading (HFT) style execution and scaling model. The core objective is to program a bot that identifies
Automatic buy and sell entries. stoploss (sl) take profit (tp) risk management and adjustable lot size. Adjustable risk percentage per trade. Trailing stop maximum number of open trades. Trading hours filter. Ability to backtest and optimize the strategy. Easy to use settings. The EA should work reliably on mt5 and provide the source code. I want the developer to test the EA and provide backtest results before
Develop an Expert Advisor for MetaTrader 5 that manages existing positions. Features Automatically detect all open positions. Apply Break-Even after price reaches a configurable profit. Partial Close: Close X% of volume at the first target. Move Stop Loss to Break-Even. ATR Trailing Stop (optional). Magic Number filter. Comment filter. Symbol filter. Trading session filter. Retry mechanism for trade operations
Mt5 ea 30+ USD
I have a fast execution ea that need a little touch, it trade on gold and my problem is about the risk ratio the tp is 3pip and stop loss 20 but i cannot get it right to make the average win larger and average loss lower. I would like to know if i can get help to get it right without touching the tragedy and the trade frequency. Those two pictures I attached is the example of what my bot actually do like i explained
hello could you make me same indicator for ninja ? https://www.youtube.com/watch?v=pxs2MuqvH3w if yes for how much and timeline ? thks in advance and please reply me as soon as possible you get my notification
Hello, I want a simple bot for NinjaTrader8. I need a bot that operates automatically on Nasdaq (NQ/MNQ). Requirements: open buys and sells following a simple trend strategy, configurable stop loss and take profit, risk per trade of 1 to 2% of capital, if it loses 3% in a day, stop trading until the next day. Compatible with backtesting, delivery of the source code and the working bot in NinjaTrader 8. My initial
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
I have a technical specification ready for a custom alert indicator in NinjaTrader 8 (NinjaScript / C#). Important clarification: it is NOT an automatic trading bot, it is solely a visual indicator (arrows/lines on the chart) and sound alerts (notifications) based on EMA crossovers and range breakouts (ORB 15m) on lower timeframes for futures (MES). I already have the exact rules written out unambiguously

プロジェクト情報

予算
30 - 40 USD