Time Based Background

Hello All,
I am able to incorporate a background on the basis of time slots.
Link: http://www.amibroker.com/kb/2015/02/02/high-low-of-certain-hours-of-the-day/

Example: Time 09:15 to 11:35 is one background then next is from 11:40 to 12:15

DH6AlS1V0AAQHoP

Next I want the highlight of the timeslots to be limited to only the High and the low during the slots and not for the entire range.

I am looking for something like below, where the timeslot AND the High Low range for the slot is highlighted.

DmLKcFEW0AAiw_0

Can you suggest how this can be achieved

Among others, two different options:

  1. The simplest one and probably the best: Just use PlotOHLC()

https://www.amibroker.com/guide/afl/plotohlc.html

  1. GfxSetCoordsMode(1) + GfxFillSolidRect()

https://www.amibroker.com/guide/afl/gfxfillsolidrect.html
https://www.amibroker.com/guide/afl/gfxsetcoordsmode.html

2 Likes