I am trying to create an indicator, but the code I am working with I cannot get to work. I want to create a moving midpoint line of the high and low for the first 2 hours of a 5m chart. This is what I have so far:
It would be a moving average of the first 2 hours of a 5m chart from 8:30 cst to 10:30 cst. Thanks for the help, I s-ck at this.
Ruby:
((Highest High of intraday) + (Lowest Low of Intraday)/2)
Last edited by a moderator: