Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 01:52:31 +0000



IB Configuration: Orders sent to IB with ISLAND destination

View Count: 1820

[2016-12-04 19:34:38]
Sporken - Posts: 82
Hi,
What are the recommended settings for connecting Sierra chart with Interactive Brokers?

I cannot find a conclusive up-to-date guide. I think I've read all of the relevant documentation on your website and I have done my best to set things as I think is recommended but I still have various unexpected behaviours. There also appears to be some features that aren't yet documented.

I think my setup is fairly standard. SC + IB + SCData. I only trade Stocks, futures and forex (occasionally)

At the moment I'm sending orders using the SC Chart Trading (right click) and also with the Chart Trading panel. I’ve also written a trade manager in ACSIL that I plan to use once I have my initial settings correct.

Everything is running on a paper trading account until I gain confidence that things are reliable.

I realised on Friday that my orders and positions were reported incorrectly. After some investigation I realised that I have entries in my "Trade Activity log" -> "Trade Activity" page that have "OrderActionSource" set as "IB historical Fills data (Restored)" and the "Symbol" field recorded as "AMZN-STK-ISLAND" for example. The "IB order fill (execution)" entries for the positions say simply "AMZN" for example. the consequence is that the executions with symbol "AMZN-STK-ISLAND" are not showing markers on my charts and if I look on "Trade Activity Log" - "Trade Stats for Charts" page I see an entry for AMZN with an Open Quantity of 10 even though the position was actually closed by the "AMZN-STK-ISLAND" order. The position is flat in IB.

If I then change "Chart Settings”-> “Trade and Current Quote Symbol” to "AMZN-STK-ISLAND" then I see the position close marker drawn on my charts. But I no longer see the “AMZN” position open marker.

When I create new orders in Sierra chart by right clicking in a chart and choosing the menu item “Trade-> Buy Limit” then I see an order appear in Interactive Brokers "API" page. The surprising thing is that the “Destination” says “ISLAND” whereas I have an older order for EZPW that say “SMART” in that field.

I googled for Sierra+IB+ISLAND and found various discussions, one of which said that ISLAND is fine and it will still be processed as "SMART" by the order routing.
But I'm not sure.

I've spent quite a lot of time on this but I'm not sure what to try next. I updated my version of SC to the newest pre-release last night. I also fixed a couple of incorrect settings on my Sierra and IB configuration. I had failed to set my IB "Component Exch. Separator" as '/'. I had not set my SC "Use Server Side OCO and Bracket Orders" to false. I’ve also done a “Full Reset” of my Interactive Brokers “Global Symbol Settings”.

I have configured "IB->Global Configuration->Presets->Prefer SMART" to true for all preset types (Stock, futures, forex etc)

Additionally, the SC settings that I am unsure about are set as follows. This is how I have mine set.

From “Data/Trade Service Settings”

“Perform Automatic Trading Account Check for SV Exchange Data Feed” = true

“Do Not Cancel Active Historical Data Requests on Timeout” = True

“Download Regular trading hours bars (Daily Bars only)” = False

“Download 5 second Historical Intraday Data (Not Recommended)” = False

“Record True Real-Time Data in Intraday Charts” = False

“Clear out of Order market Depth data” = true.

“Support Alternative Forex Historical Data” = False

Are they correct? Some of them are a mystery to me.

Any help is greatly appreciated.

I can send screenshots of all of my settings pages if you would find this helpful.

Kind Regards,
-Jason
Date Time Of Last Edit: 2016-12-04 22:29:50
[2016-12-06 07:28:58]
Sierra Chart Engineering - Posts: 104368
Interactive Brokers has complex and inconsistent symbology. If the historical fill symbol does not match the symbol of the chart, we cannot help with it. And we will not answer any further questions about this.

This should be set to No:

“Clear out of Order market Depth data” = true.

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: 2016-12-06 07:36:14
[2016-12-06 07:31:27]
Sierra Chart Engineering - Posts: 104368
I realised on Friday that my orders and positions were reported incorrectly.
Please be very specific about this so we can help.

If you are referring to the Trade Stats for Charts tab, this is explained here:
https://www.sierrachart.com/index.php?page=doc/TradeActivityLog.php#TradeStatsResettingData

Just remember you will have unsolved problems with Interactive Brokers. This is simply unavoidable.
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: 2016-12-06 07:37:04
[2016-12-08 20:55:11]
Sporken - Posts: 82
Hi, Thanks for your reply.

I've not been able to reproduce the bug where the trade symbol comes back as XXX-STK-ISLAND. Perhaps setting InteractiveBrokers->GlobalConfiguration->API->Settings->"Component Exch. Separator" as character '/' has fixed this. I'll do more tests next week.

I found that moving stops/targets using the user interface (by dragging the lines) doesn't seem to work properly for me. I notice that IB asks me to confirm the change in the IB user interface. I cant see a way to avoid this. When I click to authorise, it still doesn't work. I have no idea if the bug is in IB world or Sierra World but I don't need this functionality. So I'll ignore it.

I found that my stops/targets are reliably and correctly placed when initiating positions using sc.BuyEntry and sc.SellEntry and that clicking the "BE" button to move stops to BreakEven works fine. This is good enough for my purposes. So in my code I now set NewOrder.MoveToBreakEven.Type = MOVETO_BE_ACTION_TYPE_OFFSET_TRIGGERED; with a trigger of 5 ticks. (at the moment)

(I've written an ACSIL Study to act as a trade manager on Renko charts, I can draw rectangles and it trades Long/Short as it crosses the rectangle edges. Entry/Take Profit based on the edge colour and fill colour. I annotate them with Text to configure the trade quantity and trade count. It seems to work quite well. Better than plain Stop losses at least! I have more work to do to make it robust to network problems though)

Anyway, Thanks again for your help.

-Jason
Date Time Of Last Edit: 2016-12-08 20:57:52
[2016-12-09 05:40:04]
Sierra Chart Engineering - Posts: 104368
I have no idea if the bug is in IB world
The problem is most definitely on the Interactive Brokers side.
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