Login Page - Create Account

Support Board


Date/Time: Mon, 08 Jun 2026 17:54:00 +0000



Spread ZF/ZN sur Sierra Chart : les trades ferment après 1-2 minutes sans TP/SL défini

View Count: 29

[2026-06-08 13:19:25]
User592284 - Posts: 4
Contexte :

Python écrit un fichier signal_zfzn.txt avec 3 champs : timestamp|signal|id

Signal = 1 (LONG), -1 (SHORT), 0 (FLAT)

Deux DLL C++ (ACSIL) lisent ce fichier :

BridgeFinal_64.dll sur ZF

BridgeFinal_ZN_64.dll sur ZN

Comportement observé :

Les ordres sont bien exécutés sur ZF et ZN (quantité = 1).

La position s’ouvre correctement (LONG sur ZF = SHORT sur ZN, et inversement).

Mais la position est systématiquement fermée après environ 1 à 2 minutes, avec une perte de 1 tick sur l’une des jambes.

Ce qui a été vérifié :

Aucun TP/SL/trailing n’est défini dans le Python (Z_STOP désactivé, TP=15
,
S
L
=

150
,SL=−150 non atteints).

Aucun stop ou target n’est défini dans le C++ (pas de Target1Offset, Stop1Offset, TrailStopStep).

Les réglages Sierra Chart (Trade Service Settings, Order Defaults) ne montrent aucun auto-flatten ou stop par défaut.

Le problème est reproductible à 100% (tous les trades ferment prématurément).

Question :

Pourquoi Sierra Chart ferme-t-il automatiquement les positions ?

Quel paramètre ou fonction cachée provoque cette fermeture ?

Comment la désactiver ?

English
Title: ZF/ZN spread on Sierra Chart: trades close after 1-2 minutes with no TP/SL defined

Context:

Python writes a file signal_zfzn.txt with 3 fields: timestamp|signal|id

Signal = 1 (LONG), -1 (SHORT), 0 (FLAT)

Two C++ DLLs (ACSIL) read this file:

BridgeFinal_64.dll on ZF

BridgeFinal_ZN_64.dll on ZN

Observed behavior:

Orders are correctly executed on both ZF and ZN (quantity = 1).

Position opens correctly (LONG on ZF = SHORT on ZN, and vice versa).

But the position is systematically closed after about 1-2 minutes, with a 1-tick loss on one leg.

What has been checked:

No TP/SL/trailing defined in Python (Z_STOP disabled, TP=15
,
S
L
=

150
,SL=−150 not reached).

No stop or target defined in C++ (no Target1Offset, Stop1Offset, TrailStopStep).

Sierra Chart settings (Trade Service Settings, Order Defaults) show no auto-flatten or default stop.

The issue is 100% reproducible (all trades close prematurely).

Question:

Why does Sierra Chart automatically close positions?

Which hidden parameter or function causes this close?

How to disable it?
[2026-06-08 15:34:52]
John - SC Support - Posts: 46546
Is this in live trading or is this in Simulation Mode or with the Trading Evaluator?

After this occurs, get us your "Trade >> Trade Service Log" by following these instructions:
Support Board Posting Information: Providing Lines From Trade Service Log
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account