Slope(Array, Period) as Array

Slope returns an array containing the Slope of the selected period of the array.

 

This function has two parameters:
Array   The array that contains the initial values to process the slope.
Period   The period of the slope. Must be an integer.

 

Example:

' This is an indicator showing the slope of the closing prices.
Sub Main()
  SetIndic(Slope(GetClose, 10))
End Sub