Alert, Debug, Share

View as Markdown

The following section documents properties and methods used to trigger alerts from a NinjaScript object, send debug messages to the NinjaScript Output Window, or utilize Share Services to send emails or post to social-media networks.

MethodDescription
Alert()Generates a visual/audible alert for the Alerts Log window
ClearOutputWindow()Clears all data from the NinjaTrader Output Window
Log()Generates a NinjaScript category log event record which is output to the Log tab of the NinjaTrader Control Center / Account Data windows
PlaySound()Plays a .wav file while running on real-time data
Print()Converts object data to a string format and appends the specified value as text to the NinjaScript Output window
PrintToDetermines either tab of NinjaScript Output window the Print() and ClearOutputWindow() method targets
RearmAlert()Rearms an alert created via the Alert() method
SendMail()Sends an email message through the default email sharing service.
Share()Sends a message or screen shot to a social network or Share Service.