Available translations





loading results
Signal Context Formula
The Signal Context Formula node allows the signal provider to send additional data surrounding an Outgoing Formula Signal or Outgoing Event Signal.
Узел Signal Context Formula позволяет поставщику сигнала отправлять дополнительные данные, такие как Outgoing Formula Signal или Outgoing Event Signal.
Sinyal Bağlamı Formül düğümü, sinyal sağlayıcının Giden Formül Sinyali veya Giden Olay Sinyalini çevreleyen ek veriler göndermesini sağlar.
Content
Attaching a Context Object
Прикрепление контекстного объекта
Bağlam Nesnesi Ekleme
By defining a Signal Context Formula node. The signal provider can attach a context object that holds additional information to be sent along with the signal data.
Определяя узел Signal Context Formula. Поставщик сигнала может присоединить объект контекста, содержащий дополнительную информацию, которая будет отправлена вместе с данными сигнала.
Bir Sinyal Bağlamı Formülü düğümü tanımlayarak. Sinyal sağlayıcı, sinyal verileriyle birlikte gönderilecek ek bilgileri tutan bir bağlam nesnesi ekleyebilir.
Context of Formula Signal
Formül Sinyalinin Bağlamı
A standard formula signal sends the result of its associated formula. So for example the resulting Order Rate of an order rate formula. A signal provider can also set up a Signal Context Formula node. This node allows the provider to send additional information coming out of the trading system. This can be values used to help calculate the current formula, values from the Trading Engine or any other available variables.
Стандартный сигнал формулы отправляет результат связанной с ней формулы. Например, результирующая ставка ордера по формуле ставки ордера. Провайдер сигналов может также установить узел Signal Context Formula. Этот узел позволяет провайдеру отправлять дополнительную информацию, поступающую из торговой системы. Это могут быть значения, используемые для расчета текущей формулы, значения из торгового движка или любые другие доступные переменные.
Standart bir formül sinyali, ilişkili formülün sonucunu gönderir. Örneğin bir sipariş oranı formülünün sonucu olan Sipariş Oranı. Bir sinyal sağlayıcı ayrıca bir Sinyal Bağlamı Formülü düğümü de oluşturabilir. Bu düğüm, sağlayıcının alım satım sisteminden gelen ek bilgileri göndermesine olanak tanır. Bu, mevcut formülün hesaplanmasına yardımcı olmak için kullanılan değerler, Ticaret Motorundan gelen değerler veya mevcut diğer değişkenler olabilir.
Context of Event Signal
Olay Sinyali Bağlamı
Events Signals often send simple
true and false values. Adding context variables using a Signal Context Formula node allows the signal provider to supply additional information concerning why an event was triggered allowing for far more powerful signals. Сигналы событий часто передают простые значения
true и false. Добавление контекстных переменных с помощью узла Signal Context Formula позволяет поставщику сигналов предоставлять дополнительную информацию о том, почему событие было вызвано, что позволяет создавать гораздо более мощные сигналы. Olay Sinyalleri genellikle basit doğru ve yanlış değerler gönderir. Bir Sinyal Bağlamı Formülü düğümü kullanarak bağlam değişkenleri eklemek, sinyal sağlayıcının bir olayın neden tetiklendiğine ilişkin ek bilgiler sağlamasına olanak tanıyarak çok daha güçlü sinyaller elde edilmesini sağlar.
Configuration
Available Data
Доступные данные
Mevcut Veriler
The provider has access to any of the session parameters active within the system at the time of sending the signal. Key examples include: user defined variables, trading engine values, and all indicator values.
Провайдер имеет доступ к любым параметрам сессии, активным в системе на момент отправки сигнала. Основные примеры: переменные, определяемые пользователем, значения торгового механизма и все значения индикаторов.
Sağlayıcı, sinyalin gönderildiği sırada sistem içinde aktif olan oturum parametrelerinden herhangi birine erişebilir. Temel örnekler şunları içerir: kullanıcı tanımlı değişkenler, ticaret motoru değerleri ve tüm gösterge değerleri.
Signal Context Formula Configuration
Конфигурация Signal Context Formula
Sinyal Bağlamı Formül Yapılandırması
Example
Пример
Örnek
let context = {
profitLoss: tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value,
hitFail: tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.hitFail.value,
roi: tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.ROI.value
}
context // return the context object Signal Context Formula Menu
The Signal Context Formula node has the following Node Menu items:
The Edit menu item has the following properties:
- action: Edit
- label: Edit
- iconPathOn: javascript-code
- iconPathOff: javascript-code
- dontShowAtFullscreen: true
- actionFunction:
uiObject.formulaEditor.activate
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 Signal Context Formula already has the required child type that the menu item may add, and only that child is allowed for that case.
Signal Context Formula Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Signal Context Formula with other nodes:
Compatible Types:
Signal Context Formula Formula
This section explores Signal Context Formula Node Code.
Initial Value
The initial value for Signal Context Formula is:
"// Type your formula code here. You are expected to return an object representing the context information attached to the outgoing signal." Examples
This is a list of examples used on the Signal Context Formula code, collected from this workspace.