Here is the code for the chart study:
def newDay = GetDay() <> GetDay()[1];
rec priceOpen = if newDay then open else priceOpen[1];
plot dailyOpen = priceOpen;
plot crossAboveOpen = !newDay and close[1] < dailyOpen[1] and close > dailyOpen;
crossAboveOpen.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
crossAboveOpen.SetDefaultColor(Color.CYAN);
crossAboveOpen.SetLineWeight(3);
Alert(crossAboveOpen, "Cross Above Open", Alert.BAR, Sound.RING);
Here is the code for the scan:
def newDay = GetDay() <> GetDay()[1];
rec priceOpen = if newDay then open else priceOpen[1];
def crossAboveOpen = !newDay and close[1] < priceOpen[1] and close > priceOpen;
plot scan = crossAboveOpen;
Screenshot below shows what the chart study looks like with arrows. Audible alerts will trigger at those arrows. Arrows can repaint of the close of the bar moves back below the daily open.
There is no need to use the custom study you attached. That is overkill for what you are requesting. I just need to know if you are requesting a Chart Study that alerts for the ticker symbol loaded on the chart, or if you are asking for a Scan that alerts for a group of ticker symbols.
Last reminder. Still waiting for you to provide additional details as requested above. If no response in 24 hours this post will be deleted.
actually i am looking for both i need chart alert whenever the current price crossover to daily open ( RED TO GREEN)
Thanks for all your help