Available translations





loading results
Social Bot Command
The Social Bot Command node is used to configure slash commands to be interpreted and executed by Superalgos.
Узел Social Bot Command используется для настройки слэш-команд, которые будут интерпретироваться и выполняться Superalgos.
Sosyal Bot Komut düğümü, Superalgos tarafından yorumlanacak ve yürütülecek eğik çizgi komutlarını yapılandırmak için kullanılır.
Overview
Обзор
Genel Bakış
The Social Bot Command node is used to configure slash commands which when triggered by a user from the messaging application will be interpreted and executed by Superalgos.
Узел Social Bot Command используется для настройки слэш-команд, которые при запуске пользователем из приложения для обмена сообщениями будут интерпретированы и выполнены Superalgos.
Sosyal Bot Komut düğümü, bir kullanıcı tarafından mesajlaşma uygulamasından tetiklendiğinde Superalgos tarafından yorumlanacak ve yürütülecek eğik çizgi komutlarını yapılandırmak için kullanılır.
- The configuration of the Social Bot Command node defines the slash command that is registered.
- Конфигурация узла Social Bot Command определяет слэш-команду, которая регистрируется.
- Sosyal Bot Komutu düğümünün yapılandırması, kaydedilen eğik çizgi komutunu tanımlar.
- The child Formula node defines the string which is evaluated and sent when the command is received.
- Дочерний узел Formula определяет строку, которая вычисляется и отправляется при получении команды.
- Alt Formül düğümü, komut alındığında değerlendirilen ve gönderilen dizeyi tanımlar.
The formula can contain any of the node paths from your Trading Engine and these can be entered exactly as the are within your Trading Strategy.
Формула может содержать любые пути узлов из вашего торгового движка, и они могут быть введены точно так же, как и в вашей торговой стратегии.
Formül, Ticaret Motorunuzdaki düğüm yollarından herhangi birini içerebilir ve bunlar tam olarak Ticaret Stratejinizde olduğu gibi girilebilir.
Example
Пример
Örnek
The below example will set up the slash command "/counters" which will send a message with the current Trading Episode Counters when received.
В приведенном ниже примере будет задана слэш-команда "/counters", которая при получении отправит сообщение с текущими счетчиками торговых эпизодов.
Aşağıdaki örnek, "/counters" eğik çizgi komutunu ayarlayacak ve bu komut alındığında geçerli Ticaret Bölümü Sayaçlarını içeren bir mesaj gönderecektir.
Social Bot Command Configuration:
Конфигурация Social Bot Command:
Sosyal Bot Komut Yapılandırması:
{
"name": "counters"
} "SUPERALGOS COUNTERS\n" +
"\nPeriods: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.periods.value +
"\nStrategies: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.strategies.value +
"\nPositions: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.positions.value +
"\nOrders: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.orders.value +
"\nHits: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.hits.value +
"\nFails: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.fails.value Examples
Примеры
Örnekler
Below are several example formulas and suggested command names.
Ниже приведены несколько примеров формул и предлагаемые имена команд.
Aşağıda birkaç örnek formül ve önerilen komut adları bulunmaktadır.
/balances
/dengeler
let baseAsset = TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.baseAsset.referenceParent.config.codeName
let quotedAsset = TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.quotedAsset.referenceParent.config.codeName
"SUPERALGOS BALANCES\n" +
"\nPair: " + baseAsset + "/" + quotedAsset +
"\nBase Asset: " + tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.balance.value + " " + baseAsset +
"\nQuoted Asset: " + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.balance.value + " " + quotedAsset /statistics
/istatistik
"SUPERALGOS STATISTICS\n" +
"\nDays: " + (tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.days.value).toFixed(2) +
"\nProfit Loss: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value +
"\nROI: " + (tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.ROI.value).toFixed(2) +
"\nAnnualized Rate Of Return: " + (tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.annualizedRateOfReturn.value).toFixed(2) +
"\nHit Fail: " + tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.hitFail.value /uptime
/uptime
let sessionBegin = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_BEGIN
let dateBegin = new Date(sessionBegin)
let dateNow = new Date();
let seconds = Math.floor((dateNow - (dateBegin))/1000)
let minutes = Math.floor(seconds/60)
let hours = Math.floor(minutes/60)
let days = Math.floor(hours/24)
hours = hours-(days*24)
minutes = minutes-(days*24*60)-(hours*60)
seconds = seconds-(days*24*60*60)-(hours*60*60)-(minutes*60)
let uptime = days + "D, " + hours + "H, " + minutes + "M, " + seconds + "S"
"SUPERALGOS UPTIME\n\nUptime: " + uptime Initial Values
These are the Initial Values for Social Bot Command configuration:
{
"name": "Enter the name of the command without a leading slash"
} Examples
This is a list of properties featured by the Social Bot Command configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
Social Bot Command Menu
The Social Bot Command node has the following Node Menu items:
The Configure menu item has the following properties:
- action: Configure
- actionFunction:
uiObject.configEditor.activate
- label: Configure
- iconPathOn: configuration
- iconPathOff: configuration
- actionProject: Foundations
The Add Formula menu item has the following properties:
- action: Add UI Object
- disableIfPropertyIsDefined: true
- propertyToCheckFor: formula
- label: Add Formula
- relatedUiObject: Formula
- actionFunction:
payload.executeAction
- actionProject: Visual-Scripting
- relatedUiObjectProject: Foundations
The Delete menu item has the following properties:
- action: Delete UI Object
- actionProject: Visual-Scripting
- askConfirmation: true
- confirmationLabel: Confirm to Delete
- label: Delete
- iconPathOn: delete-entity
- iconPathOff: delete-entity
- actionFunction:
payload.executeAction
Tip: When a menu item is grayed out, it means that Social Bot Command already has the required child type that the menu item may add, and only that child is allowed for that case.
Social Bot Command Children
The Social Bot Command node has the following childrenNodesProperties:
The Formula node property features the following properties:
- name: formula
- type: node
- childType: Formula
- autoAdd: true
- project: Foundations
Social Bot Command Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Social Bot Command with other nodes:
Compatible Types: