Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 02:33:36 +0000



Opening Stock Option position from a Stock Chart

View Count: 3257

[2016-01-27 16:26:33]
User713273 - Posts: 409
We have switched symbol settings to the specifics you put forth still getting "tick size is unknown. Unable to modify order" & "the price does not conform to the minimum price variation for this contract"

Specifically what price field are you referring to?

I have attached a screen shot that shows a trade that occurred at 8:02, price in IB is 1.29, price within SC trade log is 1.27.

And is the Trade and Current Quote Symbol being programmatically changed through ACSIL?

The trade symbol is being populated based on spreadsheet buy/sell signals, and we are rounding to the nearest integer, we have had no issues facilitating market orders. I dont know if this is what you need here.
imageimage (1).png / V - Attached On 2016-01-27 16:25:44 UTC - Size: 211.28 KB - 211 views
imageimage.png / V - Attached On 2016-01-27 16:25:55 UTC - Size: 595.17 KB - 250 views
Attachment Deleted.
[2016-01-27 17:34:46]
User713273 - Posts: 409
Attached Order not modified. Internal order ID: 45831 | 2016-01-27 09:23:02 *
Trade Order Error: Parent price (2.170000) is more than 25% different than original Attached order price (0.399500). Attached Order not modified. Internal order ID: 45832 | 2016-01-27 09:23:02 *

Another item from trade service log that we are getting.

Thanks
[2016-01-27 20:46:25]
User99735 - Posts: 234
Hi,
Even after setting the ticksize in the symbol settings still getting error
Order Modification Error: Tick Size is not known. Unable to modify order. Internal Order ID: 45260. Service Order ID: 2794 | 2016-01-25 07:20:17 *

Regards

Vivek
[2016-01-27 23:32:15]
Sierra Chart Engineering - Posts: 104368


I have attached a screen shot that shows a trade that occurred at 8:02, price in IB is 1.29, price within SC trade log is 1.27.

You are referring to your own code. We cannot possibly answer this question. You need to answer this yourself. Or refer to something specifically within Sierra Chart. We cannot answer any questions about TWS or your own code.


Trade Order Error: Parent price (2.170000) is more than 25% different than original Attached order price (0.399500). Attached Order not modified. Internal order ID: 45832 | 2016-01-27 09:23:02 *
We see how this can be a problem with option prices. We are working on a solution to this.


Order Modification Error: Tick Size is not known. Unable to modify order. Internal Order ID: 45260. Service Order ID: 2794 | 2016-01-25 07:20:17 *
We have to test this and find out what the problem is because this does not make sense for it to be occurring.
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-01-27 23:32:41
[2016-01-28 01:28:46]
User713273 - Posts: 409
You are referring to your own code. We cannot possibly answer this question. You need to answer this yourself. Or refer to something specifically within Sierra Chart. We cannot answer any questions about TWS or your own code.

- Attached orders
Please advise further as the above link states that "it is determined from the Quote Data for the symbol. You can see the Quote Data through the Window >> Current Quote Window." The quote window matches exactly what is in IBs option chain on the ask/bid during regular market hrs. The time stamped price is gathered using historical intraday chart data. Basically there is a mismatch between the historical intraday chart output price and the current price in TWS instance. Mind you we have updated symbol settings and using SC data feed.

We see how this can be a problem with option prices. We are working on a solution to this.

- Great, look forward to it.

We have to test this and find out what the problem is because this does not make sense for it to be occurring.

-Please let us know if anything is needed from us.
Date Time Of Last Edit: 2016-01-28 01:40:00
[2016-01-28 22:46:06]
User713273 - Posts: 409
Hey SC Engineering,

Would you please provide a rough estimate as the time it will take to resolve this as I want to plan accordingly with the others on my team.

I understand you are busy and appreciate the effort.

Adam
[2016-01-28 23:11:48]
Sierra Chart Engineering - Posts: 104368
We were just about to follow up on this

Basically there is a mismatch between the historical intraday chart output price and the current price in TWS instance.

So if you see a difference between the last trade price in an Intraday chart for a particular symbol compared to the last trade price in Trader Workstation, then there is a problem with the data sent by Trader Workstation.

If this is not what you are trying to say, then you need to make it much more clear and straightforward specifically what you are referring to. It does not help us to make reference to some line in the Message Log generated by your own code . This is meaningless to us.

We are still working on the other items, setting up test for these, is a difficult procedure.
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
[2016-01-29 01:07:45]
Sierra Chart Engineering - Posts: 104368
Letting you know, we will have all issues other than support for trailing stops completed by the morning.

The 25% error check for attached orders has been solved. We are still looking into the tick size not set issue. We have not yet been able to reproduce that.

The error returned by TWS relating to the order price not conforming to what is required for the symbol has been resolved.
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
[2016-01-29 03:54:10]
User713273 - Posts: 409
Good to hear, looking forward to resolve on trailing component.

Thanks a million!
[2016-01-29 21:15:28]
User713273 - Posts: 409
So if you see a difference between the last trade price in an Intraday chart for a particular symbol compared to the last trade price in Trader Workstation, then there is a problem with the data sent by Trader Workstation.

Please have a view of the attachment, it depicts the issue we've had when logging prices in the trade log vs logging prices in TWS. Last trade price in an intraday chart for that symbol is 2.89, current price in current quote window is 3.10 ask, 3.00 bid and the same data is within TWS.

Hope this is clear. Thx again.
imageimage.png / V - Attached On 2016-01-29 20:59:39 UTC - Size: 145.73 KB - 215 views
[2016-01-29 21:38:39]
Sierra Chart Engineering - Posts: 104368
What is: "trade log "? We do not know what you are referring to. This is far too vague for us to help with. And it does not help us either to mention a specific window. You need to be even more specific than that. If you are referring to an order FillPrice in the Trade >> Trade Activity Log >> Trade Activity tab, then you need to ask Interactive Brokers about that.

Last trade price in an intraday chart for that symbol is 2.89, current price in current quote window is 3.10 ask, 3.00 bid and the same data is within TWS.
OK so this is not the problem then.

We still do not know what the question is. Before posting again, logically think about what you are asking about, and try to answer it yourself and if you cannot, therefore provide us all of the relevant details which we are able to actually work with. So far we are not getting anything even close to that.
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-01-29 21:41:39
[2016-01-30 04:10:58]
Sierra Chart Engineering - Posts: 104368
We were not able to reproduce this problem:

Order Modification Error: Tick Size is not known. Unable to modify order. Internal Order ID: 45260. Service Order ID: 2794 | 2016-01-25 07:20:17 *

We are fairly certain it is because the Symbol Settings are not being found for the symbol.


Rather than encountering this error instead the order is going to be rejected and the SCTRADING_SYMBOL_SETTINGS_NOT_FOUND error code will be returned:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#IgnoredOrderError

Update to version 1362 to get all of the latest changes addressing the issues in this thread.
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-01-30 04:11:47
[2016-01-30 11:23:56]
User99735 - Posts: 234
Hi,
"We were not able to reproduce this problem"
To reproduce the problem from an equity symbol Chart eg APPL, open an order on any AAPL option and try to modify it.

The Symbol settings are done as per the instructions provided by you earlier.
If you can provide any alternate email id, can forward our strategy for testing at your end.

Regards

Vivek
[2016-01-30 18:46:21]
Sierra Chart Engineering - Posts: 104368
Are you receiving the SCTRADING_SYMBOL_SETTINGS_NOT_FOUND error at the time the order is submitted?

You should be in this particular case now.

There is no additional testing that we need to do. The problem is clearly understood.

Looking at the following, we do see a pattern match:
AAPL-OPT-########-###-?-SMART-###-USD
AAPL-OPT-20151211-118-C-SMART-100-USD

Make sure you have "Use Pattern Matching" enabled for this symbol in the Global Settings >> Symbol Settings.

We tested this and it does work.
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
[2016-02-01 20:36:18]
User99735 - Posts: 234
Hi,
a) Have upgraded to build 1362 and ran some tests
b) The earlier reported error of 'Missing tick size' is not coming now
c) However the OCO bracket orders opened with the following code
s_SCNewOrder NewOrder;

   NewOrder.OrderQuantity = optionPos->Qty;
   NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
   NewOrder.TimeInForce = SCT_TIF_GTC;

   NewOrder.OCOGroup1Quantity = NewOrder.OrderQuantity;
   NewOrder.Symbol = optionPos->OptionName;
   NewOrder.TradeAccount = sc.SelectedTradeAccount;
NewOrder.Target1Price = (double)optionPos->OptionEntryPrice * (1 + PermData->OrderData[TargetPercent] / 100);
NewOrder.Stop1Price = (double)optionPos->OptionEntryPrice * (1 - PermData->OrderData[StopPercent] / 100);

Is this supported or not.
With this the bracket orders are getting closed after some time with source as "no order update from server"

d) As mentioned earlier we are using TWS as our broker and for feed also. Could not find any specific settings to be done in TWS, to send back updates to SC.

Please advice.

Regards

Vivek
[2016-02-01 21:19:21]
Sierra Chart Engineering - Posts: 104368

Is this supported or not.
With this the bracket orders are getting closed after some time with source as "no order update from server"
Yes this is supported and you are running into problems with TWS not responding to orders which can be an issue and is one of the problems of using Interactive Brokers.

What we recommend doing is disabling Global Settings >> General Trade Settings >> Use Server-Side OCO and Bracket Orders.

If that solves the problem, then we never recommend using that option with Interactive Brokers.
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
[2016-02-02 00:59:29]
User713273 - Posts: 409
We will run a test disabling "Use Server-Side OCO and Bracket Orders".

Also should Global Settings >> General Trade Settings >> Adjust Attached Orders to Maintain Same Offset on Parent Fill be unchecked also?

Yes this is supported and you are running into problems with TWS not responding to orders which can be an issue and is one of the problems of using Interactive Brokers.

What broker has the best support within the SC platform when implementing what we've referenced in past conversations listed above? I just want to get this solved as we have been working quite some time on this.

Again appreciate your help.
Date Time Of Last Edit: 2016-02-02 01:26:16
[2016-02-02 02:07:36]
Sierra Chart Engineering - Posts: 104368

Also should Global Settings >> General Trade Settings >> Adjust Attached Orders to Maintain Same Offset on Parent Fill be unchecked also?
This can remain enabled. It does not matter either way.

For the time being, Interactive Brokers is your only choice being you are trading options.
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
[2016-02-02 15:51:36]
User713273 - Posts: 409
Still getting error messages as we have before. The child orders are sent along with the market order but then canceled due to not being able to produce a accurate tick size. I've attached a screen shot referencing this.

Order Modification Error: Tick Size is not known. Unable to modify order. Internal Order ID: 46464. Service Order ID: 3153 | 2016-02-02 07:03:37 *
Trading message from IB: The price does not conform to the minimum price variation for this contract. Error Code: 110. ServiceOrderID: 3152. | 2016-02-02 07:03:37

Just another note the average price fill in IB (1.20) and Orders (1.20) under Orders and Positions is exactly the same, looking at Positions the fill price (1.21024) is different under Orders and Positions. Im unsure why this is, has this problem been an issue with other users before? Also the child orders are being sent at the exact same time as the parent order, can we modify orders after a duration of time, say 10 seconds? This might allow us to then attach child orders as the tick size can then be recognized.
imageimage.png / V - Attached On 2016-02-02 15:51:14 UTC - Size: 208.49 KB - 298 views
[2016-02-02 20:23:24]
Sierra Chart Engineering - Posts: 104368
The child orders are sent along with the market order but then canceled due to not being able to produce a accurate tick size.
If the orders are being canceled, it is only indirectly related to the Tick Size. It is because either there is no response from Interactive Brokers, your trading system is canceling the orders, or Interactive Brokers is canceling the orders.

The strike price for the option symbol is 95 so you need a new Symbol Pattern in the Global Symbol settings for that. The difference is is that where the strike price is you need to use ## instead of ###.

Just another note the average price fill in IB (1.20) and Orders (1.20) under Orders and Positions is exactly the same, looking at Positions the fill price (1.21024) is different under Orders and Positions. Im unsure why this is, has this problem been an issue with other users before?
Yes this is not unusual with Interactive Brokers. You can ask them about their Average Position Price calculation.



Also the child orders are being sent at the exact same time as the parent order, can we modify orders after a duration of time, say 10 seconds? This might allow us to then attach child orders as the tick size can then be recognized.
You can do whatever you require.
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
[2016-02-02 23:01:34]
User713273 - Posts: 409
If the orders are being canceled, it is only indirectly related to the Tick Size. It is because either there is no response from Interactive Brokers, your trading system is canceling the orders, or Interactive Brokers is canceling the orders.

Yes, the no response is due to bracket orders not being supported by market orders, rather they are supported by limit orders. Which is difficult to understand but something we will have to deal with.
[2016-02-03 01:28:28]
User713273 - Posts: 409
Quick question, when using limit orders and setting tick size to 0, would that by default allow limit orders to be taken on the ASK?

NewOrder.OrderType = SCT_ORDERTYPE_LIMIT;
    NewOrder.Price1 = NewOrder.Price1 + 0 * sc.TickSize;

[2016-02-03 02:46:22]
Sierra Chart Engineering - Posts: 104368
If you want to specify the ask price for the order price, then use: NewOrder.Price1 = sc.Ask;


Yes, the no response is due to bracket orders not being supported by market orders, rather they are supported by limit orders. Which is difficult to understand but something we will have to deal with.

This is not a limitation of Sierra Chart. You should not have any trouble with this as long as you disable Server-side OCO and Bracket Orders:
https://www.sierrachart.com/index.php?page=doc/doc_GlobalTradeSettings.html#GeneralTradeSettings
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-02-03 02:46:37
[2016-02-03 03:06:18]
User713273 - Posts: 409
What we recommend doing is disabling Global Settings >> General Trade Settings >> Use Server-Side OCO and Bracket Orders.

If that solves the problem, then we never recommend using that option with Interactive Brokers.

This has been disabled as of this morning and we still had issues.

The strike price for the option symbol is 95 so you need a new Symbol Pattern in the Global Symbol settings for that. The difference is is that where the strike price is you need to use ## instead of ###.

Yes, within symbol settings both patterns are assembled utilizing the pattern matching function.

Parent order and OCO brackets are opened up initially and as per trailing only the OCO stop order is being modified. We have shared the source code related to child orders previously, we will do it again to confirm we are using the correct format.

s_SCNewOrder NewOrder;

NewOrder.OrderQuantity = optionPos->Qty;
NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
NewOrder.TimeInForce = SCT_TIF_GTC;

NewOrder.OCOGroup1Quantity = NewOrder.OrderQuantity;
NewOrder.Symbol = optionPos->OptionName;
NewOrder.TradeAccount = sc.SelectedTradeAccount;
NewOrder.Target1Price = (double)optionPos->OptionEntryPrice * (1 + PermData->OrderData[TargetPercent] / 100);
NewOrder.Stop1Price = (double)optionPos->OptionEntryPrice * (1 - PermData->OrderData[StopPercent] / 100);

At this point what else would be "in the way" of making this functional?
[2016-02-04 07:29:26]
Sierra Chart Engineering - Posts: 104368
It is a very important that you clearly communicate to us the particular problem you are currently having.

What is the problem you are currently having?:
This has been disabled as of this morning and we still had issues.

It is best to focus on just one problem and only one problem we will address that and move forward.

As far as any kind of problems you have with Interactive Brokers accepting the orders or taking some proper action on them, that is outside of our control. You will need to contact Interactive Brokers about those. And at this point, it is our understanding that the remaining issues are on the Interactive Brokers side.

The source code you posted looks fine.

and as per trailing only the OCO stop order is being modified
Why is this the case? What does the Trade >> Trade Activity Log tell you? Any error messages relating to this in the Trade >> Trade Service Log? There is no need to give us the answer. This is just for your own information. If you have a question about something specific let us know.

You need to understand, we did indicate this before, what you are involved with is complicated for many reasons. This is not going to be easy. You can rely on us, but relying on Interactive Brokers is going to be difficult but there is no other choice other than them for option trading.

We do hope to offer another choice at some point in the future though.

Also in regards to adding a symbol pattern to the Global Symbol Settings. Make sure you enable "Use Pattern Matching".
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