Creating a box every hour
-
Hey i'm trying to figure out how to markout the first 5 minutes of every hour without having to input the first 5 minutes every hour as a time stamp. is there a way to save space and code by doing this another way?
-
What do you exactly mean by 'markout the first 5 minutes' of each H1 candle?
-
so lets say i want to put a rectangle from 1:00 to 1:05 of every hour. Marking out the high and low of this range. Ideally i want to do it without adding parameters for every hour like 1:00 - 1:05, 2:00-2:05. This is something i want to repeat every hour on the 1M chart. Thank you.
-
You don't need any rectangle to do that. You can simply use variables to store the values you are looking for. Creating so many objects on the chart will make teh bot far more cumbersome, while using variables will make it faster to execute.
-
@l-andorrà So what do i add to variables? thank you
-
@shiitake You can add highest and lowest proces for that period on different variables, yes. But the question is, would the values stored in the previous candle be substituted by the last ones or should they be still available indefinitely?
-
@l-andorrà Can you show me how this is done? i cant figure out how to do it besides using a string for every hour. It's bogging down the EA. Thanks
-

tried to gpt to help me but so many custom code errors
-
@shiitake You didn't reply to my question. What option do you need?
-
@l-andorrà Hey sorry i the values should be substituted cause i would like to mark out the rectangle while the candles are still painting. Thanks so much!