Order-Placer & Delta-Profit-Monitor EA

MQL4 Experten

Spezifikation

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.





Bewerbungen

1
Entwickler 1
Bewertung
(414)
Projekte
670
33%
Schlichtung
60
17% / 32%
Frist nicht eingehalten
113
17%
Arbeitet
2
Entwickler 2
Bewertung
(195)
Projekte
395
28%
Schlichtung
155
20% / 52%
Frist nicht eingehalten
112
28%
Frei

Projektdetails

Budget
20 - 30 USD
MwSt (19%): 3.8 - 5.7 USD
Insgesamt: 23.8 - 35.7 USD
Für die Entwickler
18 - 27 USD
Ausführungsfristen
von 1 bis 3 Tag(e)