Trust Management and Social Trading

Quick article search

Trust Management Via Telegram

The PRO-version of the Moonbot terminal includes a copy trading feature via Telegram, which allows trading commands to be transmitted from a master terminal to follower terminals of other users — provided that those users have configured their terminals in advance to receive such commands via Telegram.


With this copy trading method, the master Moonbot terminal can automatically generate special commands corresponding to its core operations: placing, modifying, canceling, and closing orders, setting stops, and other actions. These commands are sent to your personal Telegram channel in a specific format. Follower Moonbot terminals can connect to this Telegram channel, receive and process these commands, and replicate the corresponding actions.


At any time, the master terminal can stop sending commands to the Telegram channel and cease acting as the master. Follower terminals can also disable the reception and processing of Telegram commands at any time and return to fully autonomous operation.


It is important to consider that follower terminals replicate the master’s commands exactly, but the execution results may differ. For example, if the master terminal places an order and fills the entire volume at the selected price, follower terminals will also place orders at that price. However, depending on their order size and the current liquidity in the order book, they may fail to purchase the coins at the same price or may only partially fill the order — because there may no longer be sufficient supply available at that price at that moment.


This is clearly illustrated in the figure below (example of the TRUST order book):



Suppose the master terminal places a Buy order for 2,063 TRUST coins at a price of 514 sat. In the order book (ASK) on the right, it is видно that only 2,058 coins are available at that price, so the master terminal will purchase them in full. The follower terminal will receive and replicate the command “Buy TRUST 514 sat”; however, the required volume of coins will no longer be available. As a result, its Buy order will remain as an unfilled limit order in the BID side of the order book (on the left). Meanwhile, the master terminal may already be selling the coins at the next best price — 520 sat — while the follower has not purchased a single coin. To avoid this situation, at the moment of purchase the master terminal immediately sends a command to sell the acquired coins. Upon receiving the sell command, the follower terminal cancels its Buy order if it has not been fully executed.


Configuring the Sending of Copy Trading Commands from the Master Terminal to Telegram


In the main Moonbot terminal window, open the chart of any coin and, on the right control panel, click the Share button to open the Share market window with a set of special settings (see the picture below):



If you do not want the Share market window to open automatically after clicking the Share button in the future, enable the checkbox Don`t show this screen next time (you can still open it by right-clicking on the "Share" button). After that, left-clicking the Share button will no longer open the Share market window and will instead immediately execute the command to send a message to Telegram. If needed, the Share market window can be opened by right-clicking the Share button.


To enable automatic sending of commands to your Telegram channel, perform the following steps in the Share market window:


  1. Enable automatic signal sending.
    To do this, check the box I`d like to post signals to my own channel automatically.
    If you would like to simultaneously send commands to the @MoonInt channel, enable the additional option and to the @MoonInt.

  2. Create your own Telegram channel.
    Important: it must be a channel, not a group.
    Then create a personal Telegram bot and obtain a bot token via @BotFather. Add the Telegram bot to your Telegram channel and grant it administrator rights.

  3. Enter the received bot token in the My Bot token field in the Share market window.

  4. Specify the name or ID of your Telegram channel in the My channel name field:

    1. if the channel is public, enter its short username;

    2. if the channel is private, enter your Telegram channel ID.
      You can obtain the Telegram channel ID in one of the following ways:

      1. Post any message in the channel (for example: BTCUSDT BUY) → open the log file logs\LOG_ADD_YYYY-MM-DD.log and find the ID there. In the Moonbot terminal logs, the ID appears as 17XXXXXX26 (without the -100 prefix).

      2. Use the Telegram bot @username_to_id_bot:

        1. find it via Telegram search, open it, and press Start

        2. press Channel → select your channel from the list whose ID you want to obtain → confirm the action

        3. in a line such as: Chat id: -10017XXXXXX26, copy the ID: -10017XXXXXX26 (with the -100 prefix).
          Note:
          In the My channel name field, you can enter either “-10017XXXXXX26” or “17XXXXXX26” — both options will work.

  5. If Telegram is blocked in your region, configure a proxy connection.
    To configure the proxy:

    1. enable the Use Socks5 proxy checkbox;

    2. in the Host:Port field, enter the host and port;

    3. in the Login field, enter the username;

    4. in the Password field, enter the password.

  6. Enable the Send only share signals checkbox.

  7. Check message delivery.
    Click the Test button to verify that messages are being sent to your Telegram channel. If a message with the current time appears in your channel, the setup is correct.

  8. Test sending a real signal.
    Close the Share market window, open the chart of any coin (for example, PEPE), and left-click the Share button. A message similar to the following will appear in your Telegram channel:

    #PEPE delta: +3.2% pump
    UserXXXX @ RatingXXX


    With these messages, you can notify all subscribers of your channel that this coin deserves attention.


⚠️ Important! The MoonShot strategy does not send control commands, since Buy orders of this type are managed by the terminal according to a strictly defined algorithm.


Notation Used in Control Command Syntax


  • Сoin — the coin name;

  • Price — the price value; can be specified either as an absolute value or as a percentage;

  • X% — the percentage size of the Buy order relative to the total deposit;

  • Key — a keyword used in the ChannelKey parameter of the Telegram strategy;

  • < > — a required parameter enclosed in angle brackets;

  • [ ] — an optional parameter enclosed in square brackets.


⚠️ Important! Make sure to strictly observe letter case when entering commands.


Automatic Control Commands


These are commands that are automatically sent by the master Moonbot terminal to the Telegram channel. Follower terminals connected to this channel receive, process, and execute these commands on their side.


  • cmd_Buy [Price] [sell [Price]] [OrderSize X%] [Key ChannelKey]
    Places a Long order for the specified coin (Coin) at the given price — either at an exact price value or at the specified percentage relative to the configured order.
    If the purchase price is not specified in the command, the Buy order will be placed in Long according to the Telegram strategy settings of the follower terminal.
    If a sell price is specified in the command using the keyword sell, the provided sell price will be applied to the Telegram strategy of the follower terminal.

    Example 1:
    A single command cmd_Buy NEO 7.15 sell +15% OrderSize 10% Key ST123 will be interpreted by the terminal as two separate commands: cmd_Buy NEO 7.15 OrderSize 10% and cmd_UpdateSell 15%.
    In this command, the keyword Key ST123 is specified for a particular Telegram strategy in which this value is set in the strategy settings on the Main tab in the parameter ChannelKey=ST123. Only this specific Telegram strategy will execute the command on the follower terminal.
    If the [Key ChannelKey] value is not specified in the command, or if there is no Telegram strategy with such a ChannelKey on the follower terminal, the first Telegram strategy in the list will be selected.

  • cmd_Short [Price] [sell [Price]] [OrderSize X%] [Key ChannelKey]
    Places a Short order for the specified coin (Coin) at the given price — either at an exact price value or at the specified percentage relative to the configured order (this command works on futures only).
    If the purchase price is not specified in the command, the Buy order will be placed in Short according to the Telegram strategy settings of the follower terminal. If a sell price is specified in the command using the keyword sell, the provided sell price will be applied to the Telegram strategy of the follower terminal.
    Example 2:
    A single command cmd_Short BTC 1% sell 2% OrderSize 10% will be interpreted by the terminal as two separate commands: cmd_Short BTC 1% and cmd_UpdateSell 2%. Since no keyword is specified in this command, the first Telegram strategy in the master terminal will respond to it.

  • cmd_CancelBuy
    Cancel the Buy order for the specified coin (Coin);

  • cmd_Sell
    Sell the specified coin (Coin) at the given price (Price).
    Upon receiving this command, all Buy orders for the specified coin will be canceled, and the terminal will begin selling all purchased Coin at the price specified in the command (Price);

  • cmd_SetStop
    Set the Stop Loss value for an open order on the specified coin (Coin) to the price value (Price).
    The price must be specified as an absolute value, for example: cmd_SetStop BNB 215;

  • cmd_PanicSell [Key ChannelKey]
    Activate the Panic Sell function for the specified coin. If the Key keyword is used, the command can be sent to execute the sell action for a specific Telegram strategy with the same ChannelKey.


Manual Control Commands


These are commands that are not sent automatically by the Moonbot terminal to Telegram. You can enter them manually in the control Telegram channel, and follower terminals connected to this channel will receive, process, and execute them on their side.