Can I reference the bar open minutes in my code to check for this.
i.e. buy at the open of the 5 minute bar if the open price of the bar is greater than the 25 period SMA and bar minutes = 00, 15, 30 or 45. Is that possible or is there another way?
I don't want the trade to open during the open of any other 5 minute bar, only at the quarter hour.
Thanks
Comment