Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 14:09:05 +0000



Cannot find a way to set a different Instance Client ID number in a second Sierra instance

View Count: 1758

[2018-06-04 17:32:29]
trader2017 - Posts: 91
Hello, I have written about this previously and back then I was trying various ideas using two computers with two Sierra copies, two Sierra data connections and two instances of IB TWS as I remember.

Currently I would like to once again get this type of thing to work with a simpler set up. I have two instances of Sierra on one computer, I have one data connection and one IB TWS running. I would like to separate my trades so only long trades of the same symbol are traded in one instance and short trades of the same symbol are on the second instance.

Using Order Fill Calculated Trade Positions, I should be able to only see the long positions on one instance and the short position on the second instance even though they would cancel each other out in TWS and I would have no position. The problem I’m having is that on the second instance of Sierra under Global Settings >> Data/Trade Service Settings all I see is Service: DTC – Sub Instance [trading] greyed out in the top drop down menu and there is no place to set a different Instance Client ID number referenced from the instructions copied below. What do I need to do to change to a different Instance Client ID to make this work? Thanks for your help.

From the user guide: To have multiple copies of Sierra Chart connected to Interactive Brokers Trader Workstation (TWS), each copy of Sierra Chart needs to be set to a different Instance Client ID number, set with the Instance Client ID setting in the Service Settings section of the Global Settings >> Data/Trade Service Settings window.
[2018-06-04 18:37:41]
trader2017 - Posts: 91
I’m reading through all the documentation again, and even though I’m only using one computer this time and one TWS instance I think you’re going to write back and tell me I need to pay for a second connection to be able to get the dialog box in the second instance that lets me enter a separate Instance Client ID.

I’ll wait for you to confirm that before I add that new connection.
[2018-06-04 20:15:22]
Sierra Chart Engineering - Posts: 104368
To do what you want requires that you have two separate installations of Sierra Chart following the instructions here:
Using Multiple Data and Trading Services at the Same Time: Step-By-Step Instructions to Install Multiple Copies of Sierra Chart

You cannot use the sub instance feature (File >> New Instance).
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-06-04 20:15:39
[2018-06-05 12:29:33]
trader2017 - Posts: 91
I stopped having the first copy open automatically the second instance since I will no longer need that and then installed a new copy in a different folder. Changed the Instance Client ID then when I try to open both copies I get this message:

SC Data - All Services | Logon error received from server: Limited to one connection per username for the requested data source.

Does that mean I need a second Sierra data connection or do I need a second IB TWS instance? I need the long trades from the first copy of Sierra and the short trades initiated from the second copy of Sierra to both go into the same IB account even though they will be the same symbol and offset one another in the IB account.
[2018-06-05 12:57:54]
trader2017 - Posts: 91
Since my last post I tried the following. I use Sierra data since I’ve read it is more accurate than IB’s data but for what I’m doing I think having Sierra data for one copy of Sierra and letting IB provide the data for the second copy would be fine. I unchecked Global Settings >> Data/Trade Service Settings >> Allow Support for Sierra Chart Data Feeds and reconnected and it seems to be working. I’ll try initiating trades in both copies to see if it works as expected.
[2018-06-05 14:33:24]
trader2017 - Posts: 91
I tried a few trades and everything worked great. I did have one question though. I attach the trade window to the chart and on one copy of Sierra the short side trading consisted of one open and closed trade and one that is still open.

On the other copy of Sierra there was one long trade which is still open. So the open short and open long are really zero positions at IB.

While watching the trade window’s P/L and DlyPL amounts I can see that on the long side the commission for that trade was deducted and shows what the actual value would be. However, on the short side both the P/L and the DlyPL shows values that do not include commission.

In the Trade Activity Log I have checked Use Commission for both copies of Sierra. I have unchecked Include Open P/L in Chart/trade DOM P/L Display for both copies of Sierra, but nowhere in that dialog box do I see a way to have them include the commission. It’s strange that one copy would include it and the other would not even though I have set them both up to be identical. Also, both copies have the commission set for the symbol in the Chart Settings, Round Turn Commission field.
Date Time Of Last Edit: 2018-06-05 14:39:56
[2018-06-05 15:35:59]
trader2017 - Posts: 91
Well there is another unusual thing happening. When there is an open trade in one or both copies even though in reality there are no positions open in IB I don’t want to have to flatten them in Sierra which would cause unnecessary commissions.

So what I was trying to do to clear out the open positions in Sierra was to delete all the data in the Trade Activity Log. That worked well for the short side copy that had an open trade. But the long side Sierra copy let me delete all activity but still there is one open long position in the Trade Window and on the chart itself.

I went to the folder where that copy is installed and opened the ListedTradeOrders.xml file and nothing was listed there, but when I opened the TradePositionData.xml all my real positions at IB were listed as well as the one that is not really open at IB which is what I was using to experiment with this. The M6E-201806-GLOBEX symbol is still listed as open even though in reality it is not in IB. I have Download Historical Fills on Connect set to False in both copies.

So I deleted it from the XML file and saved it by overwriting the file in the Sierra application folder. That did not clear the long position from the Trade Window and when I opened the XML file again it was still there so it reloaded it apparently from somewhere. Do you know where this long position that is not really at IB is stored in Sierra so I can go delete it?
Date Time Of Last Edit: 2018-06-05 15:42:43
[2018-06-05 16:04:26]
trader2017 - Posts: 91
I wanted to let you know that when I closed that program and restarted it again it cleared the open position as well as cleared it from the TradePositionData.xml file. I have many charts and it takes a long time to start the application again so if you have any suggestions please let me know.

I should have first tried to disconnect from IB and reconnect instead of closing the program that might have worked, I’ll try that if it happens again to see if that is a faster way to get the data cleared out of the system.

I still have the question regarding the commission being deducted from one Trade Window but not in the other copy of Sierra that I wrote about in a previous post, if you know of something I can do to make both copies show the deducted commissions I’d appreciate that. Thanks.
[2018-06-05 21:30:52]
Sierra Chart Engineering - Posts: 104368
There are too many posts here and too much information. Be very clear simple and concise. If you have an outstanding question let us know what it is simply.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-06-05 22:41:56]
trader2017 - Posts: 91
I realize you have many posts to read through every day, I’ll try to be more concise in the future.

What happens is that as I’m writing I want to be as explicit as I can so it’s understandable. Also, while waiting for a reply I keep trying different things and then write to let you know what I’ve done to fix the problem so you don’t have to write a reply that includes what I’ve already done.

The remaining question from all the above posts is if there is anyway to have the commission be deducted from the Trade Window in the P/L and DlyPL sections. Today one of the Sierra copies deducted it in the totals and the other copy did not. Then later both did not.
[2018-06-06 23:42:37]
Sierra Chart Engineering - Posts: 104368
Also, while waiting for a reply I keep trying different things and then write to let you know what I’ve done to fix the problem so you don’t have to write a reply that includes what I’ve already done.
But this only takes more time for us to read through everything. It is not helpful.

You have the ability to save a draft. Would be best that you make all of your notes in a draft and then when you are ready to actually post something, you simplify it and then post it.


The remaining question from all the above posts is if there is anyway to have the commission be deducted from the Trade Window in the P/L and DlyPL sections. Today one of the Sierra copies deducted it in the totals and the other copy did not. Then later both did not.
This relates to the position average price and it is explained here:
http://www.sierrachart.com/index.php?page=doc/TradeStatusWindows.html#HowAveragePriceForPositionsIsCalculatedAndUsed

Sierra Chart itself does not include any commissions in those calculations but the external trading service may.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to 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