Lavoro terminato
Specifiche
Hi There
I need an EA that does the following:
a) On any 15min chart, calculate the 'range' (difference between High and Low), 'target' (range*0.5) from 01:00 to 07:45 bars //Print-out the 'range', 'target' variables as well as 'High', 'Low' and the 'AccountBalance'
b) Lotsize should be AccountBalance * 'Risk' //Risk variable should be an externalVariable that I input
c) Place the following pending orders at 08:00 with an expiry of 18:00 if not executed and at a lotsize calculated in (b):
d) BuyStop order with the following parameters:
- Buy 6 pips above the high calculated in (a) = 'EntryPoint'
- TP = EntryPoint + Target
- SL = High - Target
e) SellStop with the following parameters:
- Sell 6 pips below the low calculated in (a) = 'EntryPoint'
- TP = EntryPoint - Target
- SL = Low + Target
So, for instance if my account balance is 1,000 and the 'Risk' I input is 0.0005 and the EA is attached on the GBPUSD pair with a High of 1.33331 and Low of 1.33124, the EA should output the following and display on chart:
Hi: 1.33331
Lo: 1.33124
Range: 20.7
Target: 10.4
Then the following Pending order should be opened at 08:00 with 18:00 expiry
Buy 0.5 @ 1.33391
TP @ 1.33495
SL @ 1.33228
Sell 0.5 @ 1.33064
TP @ 1.32961
SP @ 1.33228
Trust that this is clear.
Thanks