Well man i have to say i couldnt solve the problem because i couldnt understand a word about u said 
What i did to solve the problem was to put the values manualy so i dont have constants for that parametres right now.
But i have another existencial problem man..
When i use once per bar, it all works good but it is not exactly what i want.
For example, i use a no trade is running->once per bar->condition block->close trades
And then trades passes the once per bar just when the next bar has just started.
So its technicaly ok, because the price wich the candle 1 ends is the same with the price wich the candle 0 starts and in that tick the once per bar passes... but what i want is that the trades closes when a certain conditions are filtered at the exactly 0:59 minute of the bar ( 1 minute before it closes) because it affects a lot my friend.
For this problem i found the block "once per hour" but my doubt is if this block will be synchronized with the server time of my broker. I mean, every time 1 minute before an hour bar ends the block has to passes.
Can u understand me?