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
評価
(97)
プロジェクト
128
40%
仲裁
19
16% / 53%
期限切れ
19
15%
多忙
5
開発者 5
評価
(135)
プロジェクト
192
42%
仲裁
17
29% / 59%
期限切れ
28
15%
6
開発者 6
評価
(149)
プロジェクト
216
58%
仲裁
3
100% / 0%
期限切れ
44
20%
取り込み中
7
開発者 7
評価
(45)
プロジェクト
58
33%
仲裁
12
42% / 42%
期限切れ
7
12%
8
開発者 8
評価
(169)
プロジェクト
204
30%
仲裁
25
40% / 44%
期限切れ
12
6%
9
開発者 9
評価
(149)
プロジェクト
165
41%
仲裁
5
0% / 80%
期限切れ
8
5%
仕事中
10
開発者 10
評価
(64)
プロジェクト
93
37%
仲裁
11
27% / 45%
期限切れ
14
15%
11
開発者 11
評価
(430)
プロジェクト
488
33%
仲裁
25
40% / 48%
期限切れ
7
1%
仕事中
12
開発者 12
評価
(16)
プロジェクト
32
47%
仲裁
1
0% / 100%
期限切れ
8
25%
13
開発者 13
評価
(262)
プロジェクト
536
50%
仲裁
54
41% / 37%
期限切れ
224
42%
仕事中
14
開発者 14
評価
(54)
プロジェクト
65
52%
仲裁
5
40% / 60%
期限切れ
22
34%
仕事中
類似した注文
Hello, I am looking for someone to convert my MQL4 code project to MQL5. A brief description of my current strategy: MT4 'Spreadsheet' EA collects data from 28 FX currency pairs -> sends it to Excel, then Excel calculates and makes a decision -> Excel sends a signal to MT4 'Trading' EA and manages trades I want the MT4 EA to be converted into MT5. For Back testing purposes, I want to withdraw from using Excel and let
Hey i would like an EA (mt5) the EA will use two indicator which are Moving Average and Parabolic SAR and it should risk 5% of the amount of the account and it should double the account every time it enters a trade and the EA must also increase lots as the account grows
I would need an expert advisor that enters trades base off a indicator on trading view. The indicator is a free indicator on trading view, Which is called TFO Displacement. What needs to happen or the criteria is once the indicator prints a displacement. So once displacement is printed I would love for the EA to immediately open a trade in the direction of the displacement. With a 15 Pips top loss. And a 30 pip take
Welcome I have an Excel file that contains recommendations for buying and selling appears in a specific cell I would like to connect the Excel file to Metatrader 4 to implement these requests directly on metatrader 4 Many outpatient settings settings There is no stop or tP If this appears, the purchase process is indicated that opens one deal and is not closed unless the mark changes to the sale You cannot provide
Eu gostaria que criassem um robo que utilizasse capzack e tunel de vegas com multiplas ordens, seriam 5 ordens no total e o robo precisa interpretar a direçao do capzack
I need an Ea (mt4) with monthly profit 3 -5 % with Drawdown less than 10% if you have any EA with same criteria and with demo version that I can make back testing for it.any one has this EA can send me
I AM DEVELOPER EXPERT MQL4 MQL5 - +12 YEARS EXPERIENCE I work fast, i change your ea functions, add functions, indicadores or ADD panel DESIGN AMAZING Background ! If you need contact me on telegram : https://t.me/stevekronos
I wanted to convert from mt4 to Ctrader Cbot and you want a particular option/feature to work as a bot. A nd can you update this point: the option to check the account name/number on which the CBOT will work, if the wrong account number is given the CBOT should not work
Can you convert TradingView Harmonic pattern indicator to ninjatrader8? and I don not need statistic table with numbers, just indicators pattern, PRZ box (predicted prize box) etc. just no tables with numbers
Mt5 EA 30+ USD
Hey, I would like to find out if you can assist in developing and EA that I can use for my trading system for MT5 My system is very basic, it just a hedging system. Taking two trades buy and sell exactly at 14:00 (UCT+2). Risking 1% on each trade on a 1 : 2,5 Risk Reward ratio and stop loss of 2500 points since I am only trading GER30(Dax Index) for now, please make these inputs changeable. Once the trade is on 1 : 2

プロジェクト情報

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