Login Page - Create Account

Support Board


Date/Time: Thu, 26 Dec 2024 12:25:13 +0000



Opening Stock Option position from a Stock Chart

View Count: 3253

[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
[2016-02-17 21:48:32]
User99735 - Posts: 234
Hi,
Have successfully implemented our own custom stop ( "different Symbol" / for opening a AAPL option position from an AAPL chart ).

Had another query, can BuyExit() can be used for exiting a long position for a "different Symbol". The manual link https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#SubmittingOrdersDifferentSymbolAccount has no mention of this.

Regards

Vivek
[2016-02-18 00:16:28]
Sierra Chart Engineering - Posts: 104368
To exit a Long Position requires a sell order. Therefore, you need to use in this particular case sc.SellOrder:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#SellEntry
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-18 00:25:12]
User99735 - Posts: 234
Hi,
Tried sc.SellOrder, but is flattening the long and opening a short position.

Do the trade related variables work for "different Symbol" also?

Have tried setting
sc.SupportReversals = false;
Is there any other variable which needs to be set to flatten a long with a sc.SellOrder for "different Symbols".

Regards

Vivek
[2016-02-18 01:42:26]
Sierra Chart Engineering - Posts: 104368

Tried sc.SellOrder, but is flattening the long and opening a short position.

Provide us all of the lines in the Trade Activity Log for the order generated by this function called. Here are instructions:

https://www.sierrachart.com/index.php?page=doc/doc_TradeActivityLog.php#TradeActivityLogToSupport


Have tried setting
sc.SupportReversals = false;

This will not have an effect one way or another.

Is there any other variable which needs to be set to flatten a long with a sc.SellOrder for "different Symbols".
No. Just make sure the Order Quantity structure member is set correctly. This is all.
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-18 01:58:20]
User713273 - Posts: 409
ActivityType  DateTime  Symbol  OrderActionSource  InternalOrderID  ServiceOrderID  OrderType  Quantity  BuySell  Price  Price2  OrderStatus  FillPrice  FilledQuantity  TradeAccount  OpenClose  ParentInternalOrderID  PositionQuantity  FillExecutionServiceID
Order  2016-02-17 09:59:55.132  AAPL-OPT-20160219-97-C-SMART-100-USD  IB open order update  55282  6933  Market  10  Sell      Filled  1.22  10  DU273679  Open    -19  
Fill  2016-02-17 09:59:55.128  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55282  6933  Market  5  Sell      Pending Open  1.22  10  DU273679  Open    -19  0001f4e4.56c41f0c.01.01
Order  2016-02-17 09:59:55.056  AAPL-OPT-20160219-97-C-SMART-100-USD  IB open order update  55282  6933  Market  10  Sell      Pending Open  1.22  5  DU273679  Open    -14  
Fill  2016-02-17 09:59:55.044  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55282  6933  Market  5  Sell      Order Sent  1.22  5  DU273679  Open    -14  0001f4e4.56c41f0b.01.01
Order  2016-02-17 09:59:54.753  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 10:00:00  55282    Market  10  Sell      Order Sent      DU273679  Open    -9  
Fill  2016-02-17 09:22:45.858  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55281  6932  Stop  9  Sell  1.00    Filled  0.98  10  DU273679  Open    -9  0001f4e4.56c41c88.01.01
Order  2016-02-17 09:22:45.857  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55281  6932  Stop  10  Sell  1.00    Filled  0.98  10  DU273679  Close      
Fill  2016-02-17 09:22:45.853  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55281  6932  Stop  1  Sell  1.00    Open  0.98  1  DU273679  Close      0001f4e4.56c41c87.01.01
Order  2016-02-17 09:22:35.001    Requesting Open orders from trading service                Unspecified      None        
Order  2016-02-17 09:22:20.101  AAPL-OPT-20160219-97-C-SMART-100-USD  IB open order update  55281  6932  Stop  10  Sell  1.00    Open      DU273679  Close    1  
Order  2016-02-17 09:22:20.003  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade order modification: AAPL [M] 1 Min #2 | Option Trader. Requested Price: 0.99999998. Requested Quantity: 10  55281  6932  Stop  10  Sell  0.84    Pending Modify      DU273679  Close    1  
Order  2016-02-17 09:21:29.261    Requesting Open orders from trading service                Unspecified      None        
Order  2016-02-17 09:21:14.524  AAPL-OPT-20160219-97-C-SMART-100-USD  IB open order update  55281  6932  Stop  10  Sell  0.84    Open      DU273679  Close    1  
Order  2016-02-17 09:21:14.255  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 09:21:00  55281    Stop  10  Sell  0.84    Order Sent      DU273679  Close    1  
Fill  2016-02-17 09:21:14.095  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55280  6931  Market  1  Buy      Filled  0.98  10  DU273679  Open    1  0001f4e4.56c41c5d.01.01
Order  2016-02-17 09:21:14.094  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55280  6931  Market  10  Buy      Filled  0.98  10  DU273679  Close      
Fill  2016-02-17 09:21:14.090  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55280  6931  Market  4  Buy      Open  0.98  9  DU273679  Close      0001f4e4.56c41c5c.01.01
Fill  2016-02-17 09:21:13.999  AAPL-OPT-20160219-97-C-SMART-100-USD  IB order fill (execution)  55280  6931  Market  5  Buy      Open  0.99  5  DU273679  Close    -4  0001f4e4.56c41c5b.01.01
Order  2016-02-17 09:21:13.163  AAPL-OPT-20160219-97-C-SMART-100-USD  IB open order update  55280  6931  Market  10  Buy      Open      DU273679  Close    -9  
Order  2016-02-17 09:21:12.756  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 09:21:00  55280    Market  10  Buy      Order Sent      DU273679  Close    -9
[2016-02-18 01:59:33]
User713273 - Posts: 409
Also order and position" log attached with same internal ids listed above.
image2016-02-17_SC.png / V - Attached On 2016-02-18 01:58:46 UTC - Size: 210.16 KB - 227 views
[2016-02-18 02:14:38]
Sierra Chart Engineering - Posts: 104368
We see three separate orders which were the result of calling sc.SellOrder/sc.BuyOrder three separate times:

Order  17/02/16 09:21  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 09:21:00  55280    Market  10  Buy      Order Sent      DU273679  Close    -9


Order  17/02/16 09:21  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 09:21:00  55281    Stop  10  Sell  0.84    Order Sent      DU273679  Close    1


Order  17/02/16 09:59  AAPL-OPT-20160219-97-C-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start time: 2016-02-17 10:00:00  55282    Market  10  Sell      Order Sent      DU273679  Open    -9

We examined the internal code and verified what we say is correct. Each of these orders has a quantity of 10.
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