| Low(Place) as Number |
This function has one parameter:
| Place | Place is the day you want to retrieve the low value. |
Example:
|
' This is an indicator ' Daily Close vs. High and Low Close Sub Main() For CurrentBar = 2 to Last C = Close(CurrentBar) H = High(CurrentBar) L = Low(CurrentBar) Value = 0 If (H - L) <> 0 then If ((C - L) / (H - L)) > 0.66 then Value = 1 Else If ((C - L) / (H - L)) < 0.38 then Value = -1 Else Value = 0 End If End If End If SetValue CurrentBar, Value Next End Sub |