The DRAWARROWDOWN function in ProBuilder language is used to visually represent a downward movement or signal directly on a trading chart. This function is particularly useful in technical analysis, where visual cues can help identify potential sell signals or other significant events based on the chart’s data.
DRAWARROWDOWN(x1, y1) COLOURED(R, G, B, a)
The DRAWARROWDOWN function requires two parameters for positioning:
The COLOURED function is optional and allows the user to specify the color of the arrow using RGBA values:
sto = Stochastic[10,3](close)
signal = average[5](sto)
rge = averagetruerange[10](close)
if sto[1] > 80 and sto crosses under signal then
DRAWARROWDOWN(barindex[1], high[1] + rge/2) COLOURED(255, 10, 10)
endif
In this example, a downward arrow is drawn when the stochastic indicator crosses under its signal line, suggesting a potential sell signal. The arrow is placed at a position slightly above the high of the previous bar, adjusted by half the average true range, which helps in avoiding overlap with the price bars. The arrow is colored red for visibility.
Understanding these indicators can help in effectively utilizing the DRAWARROWDOWN function for technical analysis in trading strategies.