Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 12:52:45 +0000



sc.RoundTurnCommission ignored

View Count: 796

[2017-02-10 08:40:56]
DabbaDo - Posts: 148
I asked this question at ASCIL access to symbol's Round Trip Commission | Post: 110113 and then realized that thread had been marked User Discussion.

With ESH7 (connected to Gain) sc.RoundTurnCommission is always 0.
But with ESH17 (connected to SC Data - All Services) sc.RoundTurnCommission reports the commission properly (as set in Edit Global Symbols).

In my GlobalSymbolSettings.xml I have these:
<settings>
<service-code>scdataallservices</service-code>
<symbol>ES?##</symbol>
<use-pattern-matching-characters>true</use-pattern-matching-characters>
<contract-months>HMUZ</contract-months>
<description>E-Mini S&P 500 Index (ES) - GBLX</description>
<category>Futures - Indices</category>
<value-format-code>2</value-format-code>
<tick-size>0.25</tick-size>
<currency-value-per-tick>12.5</currency-value-per-tick>
<error-filtering>true</error-filtering>
<time-zone>EST-05EDT+01,M3.2.0/02:00,M11.1.0/02:00</time-zone>
<intraday-start-time>16:15:00</intraday-start-time>
<intraday-stop-time>16:14:59</intraday-stop-time>
<default-order-quantity>1</default-order-quantity>
<rt-commission>4.08</rt-commission>
<rollover-method>Method3</rollover-method>
<rollover-input-1>8</rollover-input-1>
<rollover-input-2>3</rollover-input-2>
<sc-data-symbol>ES?##</sc-data-symbol>
<sc-data-symbol-multiplier>0.01</sc-data-symbol-multiplier>
<sc-data-srvcode>cme</sc-data-srvcode>
</settings>

<settings>
<service-code>DTCSubInstance</service-code>
<symbol>ES?#</symbol>
<historical-chart-symbol>ES?##</historical-chart-symbol>
<use-pattern-matching-characters>true</use-pattern-matching-characters>
<contract-months>HMUZ</contract-months>
<description>E-mini S&P 500 - CME</description>
<category>Futures</category>
<value-format-code>2</value-format-code>
<tick-size>0.25</tick-size>
<currency-value-per-tick>12.5</currency-value-per-tick>
<error-filtering>true</error-filtering>
<default-order-quantity>1</default-order-quantity>
<rt-commission>4.08</rt-commission>
<rollover-method>Method3</rollover-method>
<rollover-input-1>8</rollover-input-1>
<rollover-input-2>3</rollover-input-2>
<sc-data-symbol>ES?##</sc-data-symbol>
<sc-data-symbol-multiplier>0.01</sc-data-symbol-multiplier>
<sc-data-srvcode>cme</sc-data-srvcode>
<use-patch-data>true</use-patch-data>
<patch-data-source>cme</patch-data-source>
<patch-data-symbol>ES?##</patch-data-symbol>
<patch-data-multiplier>0.01</patch-data-multiplier>
<patch-data-use-sc-exchange-data-servers>true</patch-data-use-sc-exchange-data-servers>
<maintain-server-data-service-codes>oec,scoec</maintain-server-data-service-codes>
</settings>

Test code:
int& isMessageLogged = sc.GetPersistentInt(1);
  if (sc.SetDefaults)
  {
    sc.GraphName = "Test Commission";
    return;
  }
  if (!isMessageLogged)
  {
    SCString message;
    message.Format("For symbol=%s RoundTurnCommission=%f", sc.Symbol.GetChars(), sc.RoundTurnCommission);
    sc.AddMessageToLog(message, 1);
    isMessageLogged = 1;
    sc.SetPersistentInt(1, isMessageLogged);
  }
[2017-02-10 18:05:47]
Sierra Chart Engineering - Posts: 104368
Refer to:
ASCIL access to symbol's Round Trip Commission
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