Time Based Variables

prorealtime find highs and lows

Find Time Based Highs and Lows

Daily Highs And Lows // calculate daily high/low (include sunday values if available) dailyHigh = DHigh(1) dailyLow = DLow(1) previousDailyHigh = DHigh(2) Weekly Highs And Lows // calculate weekly high If DayOfWeek < DayOfWeek[1] and lastweekbarindex = 0 then lastWeekBarIndex = BarIndex else if DayOfWeek < DayOfWeek[1] then weeklyHigh = […]