FUNCTION: GRAPHLINE

STUB: GRAPHLINE(axis,vector,color)


Function GRAPHLINE allows you to add a vector to a graph. Since a graph can be divided into 6 "stacked up" areas, you need to define to which area you are assigning the named vector.

Here is a short example:


CLOSE=LOAD(_TICKER,CLOSE)
ICLOSE=INTERPOLATE(CLOSE)

VOLUME=LOAD(_TICKER,VOLUME)
MA20=MOVAVG(ICLOSE,20)

GRAPHAREA(75,25,0,0,0,0)
GRAPHLINE(Axis1,CLOSE,RED)
GRAPHLINE(Axis2,CLOSE,RED)
GRAPHLINE(Axis2,MA20,BLUE)
GRAPHBAR(Axis3,VOLUME,GREEN)

GRAPHLABEL(Axis1,Axis1)
GRAPHLABEL(Axis2,Axis2)
GRAPHLABEL(Axis3,Axis3)
GRAPHTITLE(TEST)
GRAPHSUBTITLE(SUBTEST)