| AroonD(Period) as Array |
This function has one parameter:
| Period | Enter the period to use to calculate the Aroon Down indicator. |
Example:
|
' This is a system based on the Aroon Up/Down indicator Sub Main() ArU = AroonU(14) ArD = AroonD(14) For CurrentBar = BeginBar + 1 to EndBar I1 = ArU(CurrentBar) I2 = ArU(CurrentBar - 1) J1 = ArD(CurrentBar) J2 = ArD(CurrentBar - 1) If (I1 > J1) and (I2 < J2) then WSA.Buy(CurrentBar) If (I1 < J1) and (I2 > J2) then WSA.Sell(CurrentBar) Next End Sub |