Auto Master-Slave positions

MQL4 专家 脚本 外汇

工作已完成

执行时间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 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
Important note- We only have the .ex4 file for the EA and need to create an exact replica of that EA, along with the mql4 file which is compatible with the 1420 Mt4 version, all the functionalities, inputs, and trade entry parameters should be exactly same. Key Requirements: - - The current EA runs on 1415 MT4 version and I need it to be adapted to the current 1420 MT4 version as it is. - The new EA should open

项目信息

预算
100+ USD
开发人员
90 USD
截止日期
 3  5 天