Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Developer MUST be able to make possible small adjustments in addition to the spec during prototyping phase.
Description:
Night time range breakout system with sell/buy orders at edges of the range only opening when price has closed outside of the range and recurring every time price closes back within the range. Additionally it will have a martingale style recovery system.
Setup:
Price range set from time X to time Y and extended to time Z.
Entry requirements:
Buy:
Price has closed above top edge of range or has reached X pips above top edge of range.
Sell:
Price has closed below bottom edge of range or has reached X pips below top edge of range.
Exit:
Hits stop loss or hits take profit
Additional features:
If buy order has closed, allow new buy order if entry is met.
If sell order has closed, allow new sell order if entry is met.
Stop loss set to x% of range e.g. 25% or 50% or 75%#
If trade is a loss, make next trade’s profit(change lot size) = total loss of previous losing consecutive trades e.g. lose(-5), lose(-5), lose(-10) win(+20)
At time Z stop trades and wait for range of time X to time Y to complete.
Settings:
Range time:(time X, time Y, time Z)
Take profit
Stop loss(manual entry, percentage of range)
Number of pips above/below range to open order before candle close
Enable/disable - allow new order when price closes back inside range
enable /disable - martingale
Visuals:
Coloured range box from time X to Y with range in pips displayed near range box
Extend Range box of XY in a second colour to time Z
(when martingale is activated) Display current number of consecutive losses, current martingale potential loss.