Order-Placer & Delta-Profit-Monitor EA

MQL4 エキスパート

指定

Hello Coders!


This is what I need:


EA-Settings table:



Example (Variables)

Pair A

USDJPY

Pair B

USDCHF

Direction of A

BUY

Direction of B

SELL

Lot Size for A

0.05

Lot Size for B

0.07

Max. Spread  A

4 Pips

Max. spread  B

3 Pips

Magic Number

12345

Delta-Take-Profit

20 Pips

Inifinte Cycle

ON

 

 


 

 

 

 

 

 






Explanation:

 

  • Spread-Checking and Opening trades:
    • Check Pair A Spread
    • Check B Spread
    • If both spreads are below the maximum spread indicated in the Settings at the same time, then this EA should place 2 market orders simultaneously in both pairs with lot size and direction indicated in the Settings
    • Example with Settings above:  The EA is running since 14:03:10 o'clock and at 14:03:12 o'clock USDJPY has a spread of 1.2 and  USDCHF a spread of 1.5 (both below indicated max spreads in the Settings (4.0 and 3.0). So now the EA simply places a 0.05 lot market order buy with Magic number 12345  for USDJPY and a 0.07 lot market order sell for USDCHF with Magic number 12345 in the most simultaneous manner technically achievable! The quicker the better. There should never ever be a single only position with the same Magic number at the same time.


  • Profit-Monitoring and closing trades: 
    • We now have 2 positions in 2 different pairs.
    • EA should now monitor as frequent as technically possible the difference of profit pips that occurs between those two positions.
    • If the Profit reaches the indicated Profit Delta-TP in the Settings, both positions should immediately Close simultaneously regardless of the spread.
    • The EA should be able to differentiate between this profit-difference (let's call it Delta-Profit) between pairs of unique Magic numbers only, so that it can be run on different pair-couples also at the same time.
    • Example with Settings above: The P/L of the USDJPY buy Position is currently at -12 pips and the USDCHF sell Position is currently at +42 Pips, this equals a Delta-Profit of +20 pips (-12+42) in the same MagicNumber and the EA should now immediately and simultaneously Close both positions.
  • Repeat-Cycling:
    • If the Cycling-Setting from Settings is switched ON, the EA should wait some time (let's say 10 seconds)after having closed the positions in profit and then repeat the same procedure from beginning with checking spreads e.t.c.





応答済み

1
開発者 1
評価
(414)
プロジェクト
670
33%
仲裁
60
17% / 32%
期限切れ
113
17%
仕事中
2
開発者 2
評価
(195)
プロジェクト
395
28%
仲裁
155
20% / 52%
期限切れ
112
28%

プロジェクト情報

予算
20 - 30 USD
VAT(付加価値税) (19%): 3.8 - 5.7 USD
合計: 23.8 - 35.7 USD
開発者用
18 - 27 USD
締め切り
最低 1 最高 3 日