Auto Master-Slave positions

仕事が完了した

実行時間2 日
依頼者からのフィードバック
Great job. The EA works like a charm!

指定

Hi,

First of all, I'm new to this, so sorry for the lack of technical knowledge and lexique

I am using MT4. I need a robot (script?) to be automatically executed every X seconds (configurable variable into the file, no dialog needed) and do the following:

  • Get the list of open positions that have no comment
  • For each position (let's call it THIS_POSITION):
    • Get the position info symbol and type
    • Get the list of all other open positions with same symbol and type AND having a comment AND that have SL and/or TP
      • If none is found
        • Close THIS_POSITION
      • Else (let's call them ALL_OTHER_POSITIONS)
        • Get the best* SL and TP from ALL_OTHER_POSITIONS
        • Set those safest SL and TP to THIS_POSITION

*best SL and TP:

  • Closest TP from Open Price (and is > Open Price in case of BUY, opposite for SELL)
  • Farthest SL from Open Price (and is < Open Price in case of BUY, opposite for SELL)

I hope I made it clear

Last point, I said it has to be executed every X seconds, but I don't know if there are better ways to achieve the same (if there are event triggers on Current Price, Position Close...)

Please do not hesitate to ask for clarification


Best,

応答済み

1
開発者 1
評価
(87)
プロジェクト
134
14%
仲裁
41
22% / 29%
期限切れ
14
10%
2
開発者 2
評価
(878)
プロジェクト
1391
67%
仲裁
117
32% / 42%
期限切れ
215
15%
仕事中
3
開発者 3
評価
(4)
プロジェクト
4
0%
仲裁
1
0% / 100%
期限切れ
1
25%
4
開発者 4
評価
(105)
プロジェクト
135
42%
仲裁
19
16% / 53%
期限切れ
20
15%
取り込み中
5
開発者 5
評価
(135)
プロジェクト
192
42%
仲裁
17
29% / 59%
期限切れ
28
15%
6
開発者 6
評価
(153)
プロジェクト
224
58%
仲裁
3
100% / 0%
期限切れ
45
20%
取り込み中
7
開発者 7
評価
(45)
プロジェクト
58
33%
仲裁
12
42% / 42%
期限切れ
7
12%
8
開発者 8
評価
(169)
プロジェクト
204
30%
仲裁
25
40% / 44%
期限切れ
12
6%
9
開発者 9
評価
(155)
プロジェクト
171
43%
仲裁
6
0% / 67%
期限切れ
8
5%
仕事中
10
開発者 10
評価
(64)
プロジェクト
93
37%
仲裁
11
27% / 45%
期限切れ
14
15%
11
開発者 11
評価
(453)
プロジェクト
512
33%
仲裁
25
40% / 48%
期限切れ
7
1%
取り込み中
12
開発者 12
評価
(16)
プロジェクト
32
47%
仲裁
1
0% / 100%
期限切れ
8
25%
13
開発者 13
評価
(264)
プロジェクト
538
50%
仲裁
55
40% / 36%
期限切れ
224
42%
仕事中
14
開発者 14
評価
(54)
プロジェクト
65
52%
仲裁
5
40% / 60%
期限切れ
22
34%
仕事中
類似した注文
Looking for an EA which can produce less than 5% drawdown. Also profit factor above 1.5 (preferably 2.0) Please give me proper explanation how your EA works too Has anyone programmed it before? is it limited to forex only
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
The wiper 35 - 48 USD
a ll traders want to find market behavior patterns, which could help identify favorable moments for performing trading operations. They also want to eliminate randomness and influence of external factors, such as rumors, news releases, fatigue, and so on. Traders monitor charts and may formulate some formal rules, which enable objective analysis of price or tick charts. Technical indicators can facilitate such
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

プロジェクト情報

予算
100+ USD
開発者用
90 USD
締め切り
最低 3 最高 5 日