工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
This bot will not use any indicators to open trades, it will be purely based on specific TIME of the day. (H:M)
i will explain here and attach a diagram to understand it better.
the bot will open LONG and SHORT positions at a specific time of the day that will be user defined, lets say 8:29am as an example.
every day at 8:29am the bot will open N number of long and short positions.
once positions PROFIT is more than N PIPS (for example more than 20 pips) = bot will activate the trailing stop at N value in pips and a take profit (with option to enable/disable)
once all positions with profit HIT trailing or TP, the remaining open positions will activate the take profit and stop loss at N value in pips (for stop loss it will be calculated using MARKET PRICE + N amount of pips)
after those positions hit the SL or TP, and all short/long positions of the day are closed, the bot calculates the BALANCE in dollars:
IF balance is negative = default VOLUME DUPLICATES for next day trades.
IF balance is positive = SET VOLUME to DEFAULT.
thats the end of the circle.
and i need an optional rule that if ALL positions remain unchanged after N hours ALL trades are closed immediately.
(for example if after 48 hours no trailing/SL/TP were activated, the bot close the positions opened that specific day)
i would like to be able to set a different trailing/SL/TP for each of the winning positions.
all functions should have an option to be enabled/disabled.
the bot will repeat daily, so the trades for each day shouldnt be mixed with the trades following days, since sometimes the trades could take weeks to be closed.
---
fields needed: (value samples)set default volume: 0.1
set time to open trades (hours:mins): 14:59
Long positions to open: 4
Short positions to open: 2
Profit value to activate trailing: 50 pips
Winning Trades Take Profit: 150 pips
Losing Trades Take Profit: 50 pips
Losing Trades Stop Loss: +100 pips (market price +100 pips)
Winning Trade #1 SL trailing: 20
Winning Trade #2 SL trailing: 30
Winning Trade #3 SL trailing: 40
Winning Trade #4 SL trailing: 50
Magic number: (should be different every day?)
Close all pos. after N Hours: 48 hours (all trades are closed after 48 hours)