PrintOut(Text)

PrintOut helps you writing systems. It add Text variable in the console. It can be usefull to debug systems or to write comments during the process.

 

This procedure has one parameter:
Text   Text is the text you want to write in the console.

 

Example:

' This is a system. To see the result open the console (in View menu) Sub Main()
  For CurrentBar = BeginBar to EndBar
    RSId = GetValue("RSI", CurrentBar)
    If RSId < 10 then
      Buy(CurrentBar)
      PrintOut(DateToStr(CurrentBar) + ": Strong buy signal")
    End If
    If RSId > 90 then
      Sell(CurrentBar)
      PrintOut(DateToStr(CurrentBar) + ": Strong buy signal")
    End If
  Next
End Sub