The FILLCOLOR function is used to fill an object’s content using RGB format
For example :
1 2 3 |
R=255 B=255 PRINT(VarA) as "A" COLOURED(R,0,0) FILLCOLOR(0,0,B) |
Displays in a table the values taken by VarA. The header of the corresponding column will be “A”, the text will be written in red (COLOURED instruction) on a blue background (FILLCOLOR instruction)
1 2 3 |
R=255 B=255 DRAWRECTANGLE(barindex, close, barindex[5], close[5]) COLOURED("green") FILLCOLOR(R,0,B) |
Draws a rectangle whose outline is green and whose content is purple.
Hi, I looked between the Q&A without success. I just wanted to fill with color my custom Bollinger Bands. How can I do that? Thank’s in advance.
You have to use COLORBETWEEN for this purpose.
it seems that colorbetween is discarded when used with if / then instructions
a trick is to define Red,green,Blue within the test if/then and colorbetween OUTSIDE if/the
ex
if close > open
R = 0
G= 200
B = 0
ENDIF
COLORBETWEEN(R,G,B)