Hi, I have tried to make scanner but i know it's not working right as i am not able to get yesterday high and low right. If anyone can help will be grateful thanks in advance. Here is my code input ORtime = 5; def FirstBar = secondsfromtime(0930) >= 0 and secondsfromtime(0930) < 60; def RangeTime = SecondsFromTime(0930) >= 0 and SecondsFromTime(0930) < 60 * ORtime;by hadrindebachhal - Trading Discussion
HI i was checking code of your and wondering how can we convert this study into scan ? is it possible? Thanks for helping script OpenRange { input ORtime = 5; def FirstBar = GetDay() != GetDay()[1]; def RangeTime = SecondsFromTime(0930) >= 0 and SecondsFromTime(0930) < 60 * ORtime; def Rhigh = if FirstBar then high else if RangeTime and high > Rhigh[1] then hby hadrindebachhal - Trading Discussion