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 일