Available translations





loading results
Accessing Trading System Definitions and Session Parameters
Summary: The Trading System may access it's own definitions as well as Session Parameters from any Formula or Condition.
Summary: Торговая система может получить доступ к своим собственным определениям, а также к параметрам сессии Session Parameters из любой формулы Formula или условия Condition.
Summary: Trading system, kendi tanımlarına ve Oturum Parametrelerine herhangi bir Formül veya Koşuldan erişebilir.
Trading System definitions and Trading Session Parameters are accessible from within conditions and formulas, pretty much like conditions and formulas may access the values of indicators, or the Trading Engine hierarchy.
Определения торговой системы и параметры торговой сессии Trading Session доступны из условий и формул, точно так же, как условия и формулы могут получить доступ к значениям индикаторов или иерархии Trading Engine.
Ticaret Sistemi (Trading System) tanımlarına ve İşlem Oturumu Parametrelerine (Trading Session Parameters), koşullar ve formüller gibi, göstergelerin değerlerine veya Ticaret Motoru hiyerarşisine erişebileceği gibi, koşullar ve formüller içindende erişilebilir.
Note: This is a technical feature mostly oriented to developers. Practical use cases are few for less technically oriented individuals.
Note: Это техническая функция, ориентированная в основном на разработчиков. Практические случаи использования для менее технически ориентированных людей немногочисленны.
Note: Bu, çoğunlukla geliştiricilere yönelik teknik bir özelliktir. Pratik kullanım durumları daha az teknik yönelimli bireyler için zordur.
Syntax
Синтаксис
Sözdizimi
To access a trading system definition, follow the path given by the trading system structure. For example, to access a condition in the take position event, use:
Чтобы получить доступ к определению торговой системы, следуйте пути, указанному в структуре торговой системы. Например, чтобы получить доступ к условию в событии занятия позиции, используйте:
Bir ticaret sistemi tanımına erişmek için ticaret sistemi yapısı tarafından verilen yolu izleyin. Örneğin, pozisyon alma olayındaki bir koşula erişmek için şunu kullanın:
tradingSystem.tradingStrategies[i].triggerStage.takePositionEvent.situations[n].conditions[m].code To access a trading session parameter, use the syntax starting with
sessionParameters followed by the name of the parameter, and the name of the specific parameter in the configuration. For example, to access the taker parameter in the fee structure, use: Для доступа к параметру торговой сессии используйте синтаксис, начинающийся с
sessionParameters, за которым следует название параметра и название конкретного параметра в конфигурации. Например, чтобы получить доступ к параметру taker в структуре комиссии, используйте: Bir ticaret oturumu parametresine erişmek için,
sessionParameters ile başlayan sözdizimini ve ardından parametrenin adını ve yapılandırmadaki belirli parametrenin adını kullanın. Örneğin, ücret yapısındaki taker parametresine erişmek için şunları kullanın: sessionParameters.feeStructure.config.taker Example
Пример
Örnek
Such a feature may be useful, for instance, to include such definitions or parameters on Telegram announcement messages, as in:
Такая возможность может быть полезной, например, для включения таких определений или параметров оповещения в Telegram, как в:
Böyle bir özellik, örneğin, Telegram duyuru mesajlarına aşağıdaki gibi tanımları veya parametreleri dahil etmek için yararlı olabilir:
"The condition with the following code: " +
tradingSystem.tradingStrategies[tradingEngine.tradingCurrent.strategy.index.value].triggerStage.takePositionEvent.situations[0].conditions[0].code +
" triggered the take position event." Notice that...
Обратите внимание, что...
Dikkat edin...
[tradingEngine.tradingCurrent.strategy.index.value] ... corresponds to the syntax deriving from the trading engine hierarchy.
... соответствует синтаксису, вытекающему из иерархии Trading Engine.
Previous
Accessing Runtime Data
Accessing Runtime Data
Trading Logic — TOC
You just read page 4 in the topic.
1. Situations, Conditions, and Formulas
4. Accessing Trading System Definitions and Session Parameters