12 PM strategy buy/Sell strategy

I want to write code for checking 12 PM (15 Minutes candle) High low and , want to generate buy signal when price close above High price of 12PM candle and generate sell signal when low breaks of 12 PM candle

1 Like

Same my question how do it ??

hidot = IIf(ValueWhen(TimeNum() == 120000,High)==High ,True,False);
lowdot = IIf(ValueWhen(TimeNum() == 120000,Low)==Low ,True,False);
Plot(ValueWhen(hidot,High), “\n12PMhigh”, colorGreen, styleThick|styleStaircase, Null,Null, 0,2,1);
Plot(ValueWhen(lowdot,Low), “\n12PMhigh”, colorRed, styleThick|styleStaircase, Null,Null, 0,2,1);