Available translations
loading results
Open Stage
The open stage deals with the definitions that make up the logic to enter a position, including the target rate and size, and order execution.
El open stage se ocupa de las definiciones que componen la lógica para ingresar a una posición, incluida la tasa y el tamaño objetivo, y la ejecución de la orden.
На стадии Open Stage рассматриваются определения, которые составляют логику входа в позицию, включая целевую ставку и размер, а также исполнение ордеров.
Open Stage, hedef oran, büyüklük ve emir yürütme dahil olmak üzere bir pozisyona girme mantığını oluşturan tanımlardır.
In der Eröffnungsphase (Open Stage) geht es um die Definitionen, die die Logik für das Eingehen einer Position ausmachen, einschließlich des Zielkurses und der Zielgröße sowie der Auftragsausführung.
Content
The open stage comes into play once the take position event is triggered.
Cтадия открытия Open Stage вступает в игру, как только запуска события Take Position Event.
Open Stage, pozisyon alma olayı tetiklendiğinde devreye girer.
Die Eröffnungsphase kommt ins Spiel, sobald ein Take Position Event ausgelöst wird.
Conceptually, the open stage deals with the details concerning how the position shall be opened once the decision to take a position has been made. That is, the open stage does not participate in the process of deciding whether a position should be open or not.
Концептуально стадия открытия касается деталей, касающихся того, как должна быть открыта позиция после принятия решения о ее открытии. То есть стадия открытая не участвует в процессе принятия решения о том, открывать позицию или нет.
Kavramsal olarak Open Stage, pozisyon alma kararı verildikten sonra pozisyonun nasıl açılacağına ilişkin ayrıntılarla ilgilenir. Yani, Open Stage, bir pozisyonun açık olup olmayacağına karar verme sürecine katılmaz.
To take a position, several definitions are required. In particular, those concerning targets, such as the rate and size of the position, and the logic of the execution strategy, that is, how many of which orders shall be placed at the exchange—and when—to enter the position.
Чтобы занять позицию, требуется несколько определений. В частности, те, которые касаются целей, таких как ставка и размер позиции, а также логика стратегии исполнения, то есть, сколько ордеров должно быть размещено на бирже и когда входить позицию.
Bir pozisyon almak için birkaç tanım gereklidir. Özellikle, pozisyonun oranı ve büyüklüğü gibi hedeflerle ilgili olanlar ve uygulama stratejisinin mantığı, yani borsaya hangi emirlerin ne kadar ve ne zaman girileceği gibi.
Um eine Position zu eröffnen, sind mehrere Definitionen erforderlich. Insbesondere solche, die die Ziele betreffen, wie den Kurs und die Größe der Position, und die Logik der Ausführungsstrategie, d. h. wie viele von welchen Aufträgen wann an der Börse platziert werden sollen, um die Position einzugehen.
The open stage closes as soon as one of the following events happen:
Стадия открытия завершается, как только произойдет одно из следующих событий:
Open Stage, aşağıdaki olaylardan biri gerçekleşir gerçekleşmez kapanır:
Die Eröffnungsphase schließt sich, sobald eines der folgenden Ereignisse eintritt:
- the target size gets filled,
- целевой размер заполняется,
- hedef miktar doldurulur,
- die Zielgröße (Target Size) wird erreicht,
- the close stage event is triggered,
- запускается событие стадии закрытия,
- Close Stage olayı tetiklenir,
- das Ereignis der Schlussphase (Close Stage Event) wird ausgelöst,
- the take profit or stop loss targets are hit.
- достигнуты целевые значения тейк-профита или стоп-лосса.
- Take profit or Stop Loss hedeflerine ulaşılır.
- Take Profit oder Stop Loss Ziele werden erreicht.
Foundations->Topic->Why My Stage is not Closing?->The Stage Does Not Close
The Stage Does Not Close
Стадия не закрывается
Die Stage schliesst nicht
Sahne Kapanmıyor
One common issue users have while dealing with stages is that they do not get closed after their orders get filled. This usually happens because there are several adjustments on rate that happens during trading, specially during live trading. The reason a Stage does not get closed automatically is because the total filled for the whole stage is not close enough to the Stage Target Size defined by users. In order to avoid this situation there are three configurations at the Stage node you can use:
Одна из распространенных проблем, с которой сталкиваются пользователи при работе со стадиями, заключается в том, что они не закрываются после исполнения ордеров. Обычно это происходит потому, что во время торговли, особенно во время реальной торговли, происходит несколько корректировок по стадиям. Причина, по которой стадия не закрывается автоматически, заключается в том, что общее количество исполненных ордеров для всей стадии не достаточно близко к целевому размеру стадии, определенному пользователями. Для того чтобы избежать этой ситуации, существует три конфигурации узла Stage, которые вы можете использовать:
Ein häufiges Problem, das die Benutzer beim Umgang mit den Stages haben, ist, dass sie nicht geschlossen werden, nachdem ihre Aufträge ausgeführt wurden. Dies liegt in der Regel daran, dass während des Handels mehrere Kursanpassungen vorgenommen werden, insbesondere beim Live-Handel. Der Grund dafür, dass eine Stage nicht automatisch geschlossen wird, liegt darin, dass die Summe der ausgeführten Aufträge für die gesamte Stage nicht nahe genug an der vom Benutzer definierten Stage-Zielgröße liegt. Um diese Situation zu vermeiden, gibt es drei Konfigurationen für den Stage Node, die Sie verwenden können:
Kullanıcıların aşamalarla uğraşırken yaşadıkları yaygın sorunlardan biri, siparişlerinin doldurulduktan sonra kapanmamalarıdır. Bu genellikle, alım satım sırasında, özellikle canlı alım satım sırasında meydana gelen oranda birkaç ayarlama olması nedeniyle olur. Bir Aşamanın otomatik olarak kapanmamasının nedeni, tüm aşama için doldurulan toplamın, kullanıcılar tarafından tanımlanan Aşama Hedef (Target Size) Boyutuna yeterince yakın olmamasıdır. Bu durumdan kaçınmak için Stage düğümünde kullanabileceğiniz üç yapılandırma vardır:
- ROUNDING_ERROR_CORRECTION_FACTOR: is a configurable factor that can be applied to the stage filled at runtime in order to force it to reach the Stage Target Size. The default value for this factor is:
- ROUNDING_ERROR_CORRECTION_FACTOR: это настраиваемый коэффициент, который может быть применен к стадии, заполненной во время выполнения, чтобы заставить ее достичь целевой величины Target Size. Значение по умолчанию для этого коэффициента:
- ROUNDING_ERROR_CORRECTION_FACTOR: ist ein konfigurierbarer Faktor, der auf die zur Laufzeit gefüllte Stage angewendet werden kann, um sie zu zwingen, die Stage Target Size zu erreichen. Der Standardwert für diesen Faktor ist:
- ROUNDING_ERROR_CORRECTION_FACTOR: Aşama Hedef Boyutuna ulaşmaya zorlamak için çalışma zamanında doldurulan aşamaya uygulanabilen yapılandırılabilir bir faktördür. Bu faktör için varsayılan değer:
ROUNDING_ERROR_CORRECTION_FACTOR = 1.001
This value is overwritten by whatever users config at the Stage node under the
roundingErrorCorrectionFactor
property. Это значение перезаписывается тем, что настроено пользователями на узле Stage в свойстве
roundingErrorCorrectionFactor.
Dieser Wert wird von dem Wert überschrieben, den der Benutzer am Stage Node unter der Eigenschaft
roundingErrorCorrectionFactor
konfiguriert. Bu değerin üzerine,
roundingErrorCorrectionFactor
özelliği altındaki Aşama düğümünde kullanıcıların yapılandırdığı her şey yazılır. A value of 1.01 would mean that when the Filled amount is at 1% distance from the Stage Target, the stage will be closed.
Значение 1.01 означает, что когда заполненное количество находится на расстоянии 1% от цели, то стадия будет закрыта.
Ein Wert von 1,01 würde bedeuten, dass die Stage geschlossen wird, wenn die erfüllte Menge 1% vom Stage Target entfernt ist.
1.01 değeri, Doldurulan miktar Aşama Hedefinden %1 uzaklıkta olduğunda aşamanın kapatılacağı anlamına gelir.
- ABSOLUTE_DUST_IN_BASE_ASSET: is a numeric value that represents the distance that you allow to be between the Size Filled and the Target Side for a stage, measured in Base Asset. It's default value is Zero and you can define it at the config of a Stage node using the
absoluteDustInBaseAsset
property.
- ABSOLUTE_DUST_IN_BASE_ASSET: это числовое значение, которое представляет собой расстояние, допустимое между Size Filled и Target Side для стадии, измеряемое в базовых активах Base Asset. По умолчанию это значение равно нулю, и вы можете определить его в конфигурации узла Stage с помощью свойства
absoluteDustInBaseAsset.
- ABSOLUTE_DUST_IN_BASE_ASSET: ist ein numerischer Wert, der den Abstand zwischen der erfüllten Menge und der Target Side für eine Stage angibt, gemessen in Base Asset. Der Standardwert ist Null, und Sie können ihn in der Konfiguration eines Stage Nodes über die Eigenschaft
absoluteDustInBaseAsset
definieren.
- ABSOLUTE_DUST_IN_BASE_ASSET: Bir aşama için Doldurulan Boyut ile Hedef arasında olmasına izin verdiğiniz mesafeyi temsil eden sayısal bir değerdir ve Temel Varlıkta ölçülür. Varsayılan değeri Sıfır'dır ve bunu
absoluteDustInBaseAsset
özelliğini kullanarak bir Aşama düğümünün yapılandırmasında tanımlayabilirsiniz.
- ABSOLUTE_DUST_IN_QUOTED_ASSET: is a numeric value that represents the distance that you allow to be between the Size Filled and the Target Side for a stage, measured in Base Asset. It's default value is Zero and you can define it at the config of a Stage node using the
absoluteDustInQuotedAsset
property.
- ABSOLUTE_DUST_IN_QUOTED_ASSET: это числовое значение, которое представляет собой расстояние, допустимое между Size Filled и Target Side для стадии, измеряемое в базовых активах Base Asset. По умолчанию это значение равно нулю, и вы можете определить его в конфигурации узла Stage с помощью свойства
absoluteDustInQuotedAsset.
- ABSOLUTE_DUST_IN_QUOTED_ASSET: ist ein numerischer Wert, der den Abstand zwischen der erfüllten Menge und der Target Side für eine Stage angibt, gemessen in Base Asset. Der Standardwert ist Null, und Sie können ihn in der Konfiguration eines Stage Nodes mit der Eigenschaft
absoluteDustInQuotedAsset
definieren.
- ABSOLUTE_DUST_IN_QUOTED_ASSET: Temel Varlık cinsinden ölçülen, bir aşama için Doldurulan Boyut ile Hedef arasında olmasına izin verdiğiniz mesafeyi temsil eden sayısal bir değerdir. Varsayılan değeri Sıfır'dır ve bunu
absoluteDustInQuotedAsset
özelliğini kullanarak bir Aşama düğümünün yapılandırmasında tanımlayabilirsiniz.
Implementation
Реализация
Implementierung
Uygulama
Here you can see how these parameters are implemented in the Low Frequency Trading Bot code:
Здесь вы можете увидеть, как эти параметры реализованы в коде Low Frequency Trading Bot:
Hier sehen Sie, wie diese Parameter im Code des Low Frequency Trading Bot implementiert sind:
Burada, bu parametrelerin Düşük Frekanslı Ticaret Botu kodunda nasıl uygulandığını görebilirsiniz:
if (
tradingEngineStage.stageBaseAsset.sizeFilled.value
*
ROUNDING_ERROR_CORRECTION_FACTOR
+
ABSOLUTE_DUST_IN_BASE_ASSET
>=
tradingEngineStage.stageBaseAsset.targetSize.value
) {
positionFilled()
} else if (
tradingEngineStage.stageQuotedAsset.sizeFilled.value
*
ROUNDING_ERROR_CORRECTION_FACTOR
+
ABSOLUTE_DUST_IN_QUOTED_ASSET
>=
tradingEngineStage.stageQuotedAsset.targetSize.value
) {
positionFilled()
} else {
checkCloseStageEvent(tradingSystemStage)
}
Initial Values
These are the Initial Values for Open Stage configuration:
{
"roundingErrorCorrectionFactor": 1.01,
"absoluteDustInBaseAsset": 0,
"absoluteDustInQuotedAsset": 0
}
Examples
This is a list of properties featured by the Open Stage configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
Open Stage Menu
The Open Stage 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
The Add Missing Items menu item has the following properties:
- action: Add Missing Children
- label: Add Missing Items
- relatedUiObject: Open Stage
- actionFunction:
payload.executeAction
- actionProject: Visual-Scripting
- relatedUiObjectProject: Foundations
The Add Announcement menu item has the following properties:
- action: Add UI Object
- label: Add Announcement
- relatedUiObject: Announcement
- actionFunction:
payload.executeAction
- relatedUiObjectProject: Social-Bots
- actionProject: Visual-Scripting
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 Open Stage already has the required child type that the menu item may add, and only that child is allowed for that case.
Open Stage Children
The Open Stage node has the following childrenNodesProperties:
The Initial Targets node property features the following properties:
- name:
initialTargets
- type: node
- childType: Initial Targets
- autoAdd: true
The Open Execution node property features the following properties:
- name:
openExecution
- type: node
- childType: Open Execution
- autoAdd: true
The Close Stage Event node property features the following properties:
- name:
closeStageEvent
- type: node
- childType: Close Stage Event
- autoAdd: true
The Announcements node property features the following properties:
- name: announcements
- type: array
- childType: Announcement
- project: Social-Bots
The User Defined Code node property features the following properties:
- name:
userDefinedCode
- type: node
- childType: User Defined Code
- autoAdd: false
Open Stage Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Open Stage with other nodes:
Compatible Types: