| HHV(Name, Begin, End) as Number |
This function has three parameters:
| Name | This parameter can be of two different types. It can be the name of an indicator (ex: "RSI", "ROC"...) or an array created in the script. Below two different examples. |
| Begin | The begin place. It's an integer. |
| End | The end place. It's an integer. |
Example:
|
' This example shows the Name parameter as an indicator name ' This is a report Sub Main() TakeThisStock Header 1, "Highest" vHigh = HHV("Close", Last - 10, Last) PutInGrid 1, vHigh End Sub ' This example shows the Name parameter as an array (arrRSI) ' This is a report Sub Main() TakeThisStock Header 1, "Highest RSI" arrRSI = GetIndic("RSI") vHighestRSI = HHV(arrRSI, Last - 10, Last) PutInGrid 1, vHighestRSI End Sub |