Thank you Robert. Works perfectly. You are awesomeby QBtrades - Trading Discussion
I tried this but it did not work input openingRangeMinutes = 15; input Market_Open_Time = 0930; input Market_Close_Time = 1600; def day = getDay(); def pastOpen = if((secondsTillTime(Market_Open_Time) > 0), 0, 1); def pastClose = if((secondsTillTime(Market_Close_Time) > 0), 0, 1); def marketOpen = if(pastOpen and !pastClose, 1, 0); def firstBar = if (day[1] != day, day - 1, 0);by QBtrades - Trading Discussion
Does anyone have a code that will draw price levels at the opening bar's range? For instance the first 15 min bar of the day only starting at 930EST, draw a price level line for the open, close, high, and low of the range. I use this on 5, 15, 30, and 60 minute charts for the entire day. Thanks in advanceby QBtrades - Trading Discussion