Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
OPERATION
· Any Timeframe
· First of all, we define a time windows betwen T1 y T2 (parameters) and we register the maximun and minimun Price level during that period (MaxLevel y MinLevel).
· When the time window (T2), inmediatly we put a pending order BUY STOP at level MaxLevel and a pending order SELL STOP at level MinLevel.
· We put these pending orders ONLY if (Max Level – Min Level) <= MaximaVariacion (parameter)
· We use TakeProfit TP = TPfijo in each order
· We use BUY STOP with SL= MinLevel and SELL STOP with SL=MaxLevel
· We use BUY STOP and SELL STOP with lot = LOT
· LOT=LOTFIJO (parameter) IF LoteDinamico=FALSE OR
· LOT= BalanceActual*RiesgoMaximo/(MaxLevel-MinLevel) IF LoteDinamico=TRUE
· BalanceActual is the current Balance in the account
· IF we reach BUY STOP , then we delete the SELL STOP, IF parameter AlwaysBoth= NO
· IF we reach SELL STOP, then we delete BUY STOP, IF parameter AlwaysBoth= NO
· After amount of hours equal to MaximoPeriodo (parameter) from T2 AND IF no pending orders has been reached, we delete all pending orders.
· Draw box with T1, T2, MaxLevel and MinLevel in the MT4
PARAMETERS:
RiesgoMaximo = (parameter default 0,02)
T1 = 00:00 (default)
T2 = 23:59 (default)
MaximoPeriodo= 24 (horas) (default)
TPFijo= 100 (default equivalent 10 pips or 100 points)
LOTFIJO= 0.01 (default)
LotDinamico= False (default)
AlwaysBoth=False (default)
MaximaVariacion = 500 (default equivalent 50 pips or 500 points)