So I've tried editing this script, Hourly Pivot Points with Color Filling https://www.mql5.com/en/code/20614 almost got it working but there is something wrong in the code when I change it. I tried changing from hourly to more hours than just one, I managed to get adding just one more hour to work a
//+------------------------------------------------------------------+ //| PivotPointUniversal.mq5 | //| Copyright VDV Soft | //| vdv_2001@mail.ru |