The DRAWARROWUP function in ProBuilder language is used to visually annotate specific points on a trading chart by drawing an upward-pointing arrow. This function is typically used to highlight significant events or conditions, such as potential buy signals in technical analysis.
DRAWARROWUP(x1, y1) COLOURED(R, G, B, a)
The DRAWARROWUP function requires two parameters, x1 and y1, which specify the chart coordinates where the arrow should be drawn. The COLOURED function is optional and allows the user to specify the color of the arrow using RGB color codes and an alpha (transparency) value.
sto = Stochastic[10,3](close)
signal = average[5](sto)
rge = averagetruerange[10](close)
if sto[1] < 20 and sto crosses over signal then
DRAWARROWUP(barindex[1], low[1] - rge/2) COLOURED(10, 255, 10)
endif
RETURN
In this example, the DRAWARROWUP function is used to draw an upward arrow when the Stochastic indicator crosses over its signal line, suggesting a potential buying opportunity. The arrow is drawn below the low price of the bar, adjusted by half the average true range (ATR), and is colored green.
This function is useful for traders who use visual cues to quickly assess trading opportunities based on technical analysis indicators.