I’m trying to build an indicator but I’m not sure it is possible to draw a rectangle in the middle of barindex ?
I mean when I’m using the DRAWRECTANGLE it actually display the rectangle at the beginning of the barindex so it’s kind of “offset”. Whereas when I use the chart configurator I manage to get the black rectangle in the middle of the barindex (C.f. Screenshot)
Also is it possible to get a specific color between the two red and green lines in the code directly ? Or is it only possible in the chart configuration ?