Whooo, 5-years, here I smell history data issues. In my backtester the biggest TF is Daily, on live it is Monthly, but knowing the numbers of candles to use... check in Condition, somewhere in "Market properties" for highest/lowest price for candles period (also choose timeframe there). You can also create a custom block for these calculations, otherwise Formula blocks should be used. And use calculations in "on Init" if there is no need to reaclculate often. But if you know the actual highest/lowest prices and you can write them manually, I recommend to use them directly. 5 years is so big period, that somehow does not deserve calculations. And once when you reach price over/below the limits, then you work on lowest scale, but of course this depends on the strategy.
In case you are interested in coding, here are the functions that currently calculate highest, lowest prices:
http://fxdreema.com/documentation/colle ... hestfromto
http://fxdreema.com/documentation/colle ... westfromto
well, they are a little bit complicated, but if you understand coding a little, you can perhaps get the idea 