Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 22:43:24 +0000



Viewing Positions in a different instrument.

View Count: 138

[2024-04-12 17:19:31]
skalaydzhiyski - Posts: 16
Hi guys,

I want to know whether the following setup is possible withing Sierra.

1. Trade CFDs from a python process targetting the Interactive Brokers API directly (without going through Sierra)
2. View positions in the CFDs I have in the Stock charts from Nasdaq TotalView.

For example - 1 buy 100 CFDs in NVDA (ib contract -> NVDA-CFD-SMART-NASDAQ-USD) at price 900$ profit 1000$ stop 800$ THEN I would want to render my position on the NVDA-NQTV chart with entry price 900$ profit 1000$ and stop 800$

Is there a way to link the symbols in this particular way? I don't care if the process is manual and I have to do it for every symbol, I can write a script to automate that, I just need to know if it's possible.

All the best,
[2024-04-12 17:26:13]
John - SC Support - Posts: 31480
This can definitely be done, the questions you have to ask yourself are how automated do you want it to be and how do you want to view the information in Sierra Chart?

For instance, if you just want to draw a line at each of the levels, then your Sierra Chart study would draw those lines taken from some information source. Refer to the following for chart drawings using ACSIL:
Using Drawing Tools From an Advanced Custom Study

Also refer to the general ACSIL information starting here:
Advanced Custom Study Interface and Language (ACSIL)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-12 18:20:25]
skalaydzhiyski - Posts: 16
I guess what I want is for it to be fully automated. I want my positions in IB to be synchronised with my Nasdaq TotalView symbols (i.e. for every -NQTV symbol I want to have a corresponding CFD symbol from IB that is used for trading).

This way whenever i open a chart of a symbol for which I have an open position I will see the necessary lines automatically, the same way I can see them in simulated trading mode.
[2024-04-12 18:31:14]
John - SC Support - Posts: 31480
It is up to you as to how you get the information from Interactive Brokers, or from your Python process, to Sierra Chart. Our ACSIL interface uses standard C++, so you can use the tools available to connect in whatever mechanism you want.

From there, the work in Sierra Chart is to determine how you want to display the information.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-12 18:42:00]
skalaydzhiyski - Posts: 16
I need to map all of my symbols that end with *-NQTV to have trade symbol as *-CFD-SMART-USD.

Is there a way to do that with global symbol settings somehow ? I cannot find anything in the XML format for symbol definition in here - SymbolSettings/SymbolSettings.interactive_brokers.trading.xml

In summary I need to automatically have the field "Trade and Current Quote Symbol" set to {symbol_name}-CFD-SMART-USD for every {symbol_name}-NQTV in Chart Settings->Symbol
Date Time Of Last Edit: 2024-04-12 18:58:21
[2024-04-12 19:23:46]
John - SC Support - Posts: 31480
You can use pattern matching characters in the Symbol Settings for the "Trade and Current Quote Symbol". So in the symbol settings for ?-NQTV, you could enter the following for the "Trade and Current Quote Symbol":
?-CFD-SMART-USD

You would need to update each of the various options, ?-NQTV, ??-NQTV, ???-NQTV, etc. to cover all the symbols.

Refer to the following for how to modify symbol settings:
Global Symbol Settings: Instructions
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-12 19:25:17]
skalaydzhiyski - Posts: 16
Hey I managed to do this,

It is working nicely in terms of synchronising my positions, but for some reason the line is not showing up on the graph now... Any obvious reason why this might be the case?
[2024-04-12 19:39:12]
John - SC Support - Posts: 31480
Exactly what line are you referring to?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-12 20:47:00]
skalaydzhiyski - Posts: 16
</settings><settings>
<symbol>SPY-NQTV</symbol>
<trade-and-current-quote-symbol>SPY-CFD-SMART-USD</trade-and-current-quote-symbol>
...

This is what I have currently for every one of my symbols in SymbolSettings.interactive_brokers.trading.xml
and what this achieves is the following:

1. Everytime i open a new chart with a symbol matching ~-NQTV pattern it automatically has the Trade and Quote symbol as ~-CFD-SMART-USD, which is brilliant and it works like a charm.
BUT
for some reason the line showing me my current position is not showing up on the chart. Ragardless of whether I submit a trade from my TWS Api or from Sierra Chart's Trade Window - I just don't see the line for the current position :(

This is literally the last piece of the puzzle so any suggestions on where to investigate are welcome.
[2024-04-12 21:58:14]
skalaydzhiyski - Posts: 16
P.S.

I am sorry for wasting your time, I think I found what I need, it is just the "Show Orders and Positions" option that i needed to get setup.

The only thing I need to get an answer for is how do I set that up globally for all charts ?

I want "Show Orders and Positions" to automatically be enabled for every chart I open.

All the best,
[2024-04-15 14:20:43]
John - SC Support - Posts: 31480
When you enable the option for "Trade >> Chart Trade Mode On", the option for "Show Orders and Positions" is enabled. There is not a way to change this.

Are you using a "Template" chart that has this disabled, such that you have to turn it on when you duplicate that chart?

Or are you enabling the option for "Chart Trade Mode On" through a custom study that may be setting the option for "Show Orders and Positions" to not be enabled?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-16 07:16:37]
skalaydzhiyski - Posts: 16
Hi John, I think it was my template yes. All good now !

Thanks for your help,
All the best

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

Login

Login Page - Create Account