TakeThisStock

TakeThisStock procedure is used in Custom reports. When this procedure is called, the current stock will be selected in the report. You can use this option to select all stocks or only stocks that reach some conditions.

 

Example:

' This is a report
Sub Main()
  I = GetValue("RSI", Last)
  J = GetValue("RSI MA", Last)
  If (I < 50) then TakeThisStock
  Header 1, "Last close"
  Header 2, "RSI"
  Header 3, "RSI MA"

  PutInGrid 1, Close(Last)
  PutInGrid 2, I
  PutInGrid 3, J
End Sub