Method: notify
The notify method is a static function designed to send messages to Telegram, notifying the user when a trading position has been found or to convey other important information.
Method Signature
static void notify(string text)
Description
Sends a text message to a predefined Telegram chat or user. This method is typically used to alert the user about significant events, such as when a trading position is identified, orders are executed, or any other critical notifications.
Parameters
- text (
string): The message content to be sent via Telegram. This should be a descriptive string containing the information you wish to notify the user about.