Login Page - Create Account

Support Board


Date/Time: Thu, 06 Mar 2025 09:02:41 +0000



Bid Ask Volume ratio study

View Count: 877

[2022-01-12 19:53:47]
User39772 - Posts: 311
Hello my frieds,

I wish you a happy new year !

I am trying to implement a study via ACSIL programming that uses the existing Bid Ask Volume ratio study.

Unfortunately I did not find an appropriate function for that.

I also tried to use sc.BaseData, but therefore I would nee sth. like SC_ASK_BID_VOL_DIFF which does not exist.

Do you have a hint how I could implement this.
[2022-01-12 23:35:24]
John - SC Support - Posts: 38425
The code for the Bid Ask Volume Ratio study is in the file Studies6.cpp which is in the ACS_Source folder which is located under the main Sierra Chart installation folder (typically C:\SierraChart).

Hopefully that will give you what you need.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-01-13 18:44:55]
User39772 - Posts: 311
Thanks that helped.

An additional question came up.
Since I updated to 2344 SC seems to lose track of the orders sent to TWS.

Example: I send an order via Chart DOM to TWS.
TWS opens the position and I see the Position for a couple of seconds in the SC chart.
Then the position seems to disappear in the chart and I can not flatten it any more from via SC.
Trade Service Log tells me: Position does not exist, but it is still visible in TWS.

Do you have an idea ?
Date Time Of Last Edit: 2022-01-13 18:46:22
[2022-01-13 19:39:32]
John - SC Support - Posts: 38425
Refer to the following:
Interactive Brokers Trading Service: Trade Position Line or Quantity Disappearing or Displaying Zero
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-01-28 18:17:26]
User39772 - Posts: 311
Hello,

I asked IB and they told me, nothing changed here.

I see the following behavior:

I can enter Lmt orders for stocks via Chart DOM.
As soon as these orders are executed, I see the open position for a few seconds, then it disappears in SC.

I can enter Mkt orders for stocks via shortcut keys.
As soon as these orders are executed, I see the open position for a few seconds, then it disappears in SC.

I can not enter Lmt orders for forex symbold via Chart DOM.

I can enter Mkt orders for forex symbols via shortcut keys.
As soon as these orders are executed, I see the open position for a few seconds, then it disappears.

It worked fine with the SC version I used before (version from mid of last year).
After I updated to latest version I had this problem, so I guess sth. in SC changed.

Please help.
[2022-01-29 02:18:04]
Sierra_Chart Engineering - Posts: 18669
We have updated this section here as to why this happens. Follow the updated information:
Interactive Brokers Trading Service: Trade Position Line or Quantity Disappearing or Displaying Zero

Almost certainly it is related to the symbol of the chart not matching the symbol for the Position.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2022-01-29 18:08:53
[2022-01-29 11:34:38]
User39772 - Posts: 311
Hello,

I sum up:

Chart Settings -> Symbol: AAPL
Chart Settings -> Trade and Current Quote Symbol: empty
Trade Position Window -> Symbol: AAPL-STK-SMART-USD

If I change it as follows:

Chart Settings -> Symbol: AAPL
Chart Settings -> Trade and Current Quote Symbol: AAPL-STK-SMART-USD
Trade Position Window -> Symbol: AAPL-STK-SMART-USD

It works fine, I see positions and can enter lmt orders in the chart.

Problem:

Every time I change the stock symbol e.g. via the quote board,
I have to do change the settings in Trade Position Window manually,
otherwise the wrong symbol is transmitted to TWS.

Question:

Isn't there a way to ensure this without user interaction, e.g. with an
correspondence table used to assign the correct TWS nomenclature that is
accessible to the user also, so that he could make changes by himself ?
Maybe Symbol Settings could be used for that !?






Isn't it possible to
Date Time Of Last Edit: 2022-01-29 11:37:51
[2022-01-29 19:05:45]
Sierra_Chart Engineering - Posts: 18669
Isn't there a way to ensure this without user interaction, e.g. with an
correspondence table used to assign the correct TWS nomenclature that is
accessible to the user also, so that he could make changes by himself ?
Maybe Symbol Settings could be used for that !?

Yes. Documentation has been updated here:
Interactive Brokers Trading Service: Symbol Differences for Positions

Regarding the prior paragraph, to automatically have a particular Trade and Quote Symbol set in the Chart Settings for a Symbol, then add that Symbol to the Global Symbol Settings if it is not already listed there. And set the Trade and Quote Symbol setting to the particular Trade and Quote Symbol you want to use for that Symbol. In this case the Trade and Quote Symbol will automatically be set in the Chart >> Chart Settings window when the symbol of the chart is changed to that Symbol.

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, 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