My apologies. I used the daily candle to try to keep things easy, but all I did was to confuse! Sorry.
I'm trying to achieve this:
__
*
when a new bar opens, send the time of the closure of the previous bar to a variable
place this value into a once per day block, so that the blocks attached to it can only execute within a 15 minute interval
[/list:u:14101pd8]
[/quote:14101pd8]
With your kind help, I've got as far as placing the time of the closure of the previous bar into a variable correctly.
The next bit is eluding me. I just can't work it out! š
It seems to me that I need to come up with a magic way of extracting from the unix time, a value in "hh:mm" format, place it in a new variable, and drop this into the "from" and "to" fields of the once per day block. Sadly, my magic isn't strong enough (indeed, its pretty weak!) to come up with the method. I appreciate I may need to use a Custom MQL4 Code block along the way to achieve this.
Any suggestions would be most welcome!
Thanks again,
James.