Share()
Share()
Definition
Sends a message or screen shot to a social network or Share Service.
- This method can only be called once the State has reached State.Realtime. Calls to this method in any other State will be silently ignored.
- You MUST configure an account with a Share Service provider from the General Options.
Method Return Value
This method does not return a value.
Syntax
Share(string serviceName, string message)
Share(string serviceName, string message, object[] args)
Share(string serviceName, string message, string screenshotPath)
Share(string serviceName, string message, string screenshotPath, object[] args)
Parameters
- The “args” parameter differs for each share service used. If you are using a custom developed share adapter, you need to work with the developer of that adapter to understand what the “args” parameter represents for that adapter.
- For the default NinjaTrader share adapters, the “args” array represents the following:
- Mail share service:
- args[0] = A string representing the email “To” field,
- args[1] = A string representing the email “Subject” field
- StockTwits share service:
- args[0] = An enum representing the “StockTwitsSentiment” parameter
- Mail share service:

