仕事が完了した


指定
Hi
I would like to create an EA to do the following please…
· To place 4 pending orders at a specific time of day…2 buy stops and 2 sell stops based on the high and low of the previous candle + certain number of pips (e.g. 1 buy stop and 1 sell stop to be placed at 3pm on the 5min candle on DAX - high of the 5 min candle is 15250 and low is 15230. Buy stop to be placed at high + 3 pips i.e 15250+3 = 15253 pips and sell stop to be placed at low - 3 pips i.e 15220-3=15217 pips
o I would like to be able to switch particular dates on/off...
o I would like the EA to place the pending orders at a time that I can specify e.g. 3:10 pm. The EA should always base the pending orders on the previous candle high and low +- certain pips from the highs/lows of the candle. The EA should work on the 5 min, 10 min (as this is not in built in mt4- a combination of two 5 min candles can be used) and the 15 min time frame
o The EA will only place the two pending orders at one time per day, never any more
o For the buy stop order, I would like to specify the number of pips from the high of the previous candle e.g. if the high is 15250 and I want the trade to be activated at 15253 then I can specify 3 pips from the high
o For the sell stop order, the opposite
o I would like to specify the TP in pips - the position needs to be handled in 2 parts.
Example - 2 buy stop orders get activated
Order 1 - to be closed when a certain pre specified TP(specified in pips), TP1 is reached. Order 2 is still on - we are in the trade and are waiting either for TP2 (pre specified in pips to be reached - this is different than the earlier TP) or SL. Please note that once the first order is closed on hitting TP1, SL on the second order needs to be immediately pushed to breakeven
o For the SL, I would like to do two things…either specify the SL in pips from the price the trade is activated or….to be able to place the SL based on the high and low of the previous candle e.g. if the order is a buy stop then I can specify the SL as a deviation from the low of the previous candle. If the deviation is zero for example, then the SL is at the same price as the low of the previous candle
o If the 2 orders on one side get activated and TP1 is hit on one order, orders of the opposite side need to be cancelled. Example - if the 2 buy stop orders are activated and TP1 is hit, then sell stop orders need to be deleted
o I would like the EA to be able to handle all major indices - NAS100, SPX, DAX, FTSE, CAC40, FTSE, SMI, AS200, NIFTY50, NIKKEI etc.
o For order size, I would like to specify this in lots
Any questions please ask.
Many thanks