Support Board
Date/Time: Mon, 25 Nov 2024 07:47:44 +0000
Is it possible to place 2 orders with one keyboard shortcut?
View Count: 306
[2024-03-28 04:44:21] |
Tony - Posts: 518 |
I would like to place a buy stop 2 points up right after I placed a sell market order, or place a sell stop 2 points below right after I placed a buy market order. Right now I set up 4 different keyboard shortcuts to place those 4 different orders, it would be nice if I could only need 2 shortcuts (one shortcut for each of the scenario mentioned above). Wonder if it is possible? Thanks a lot. Date Time Of Last Edit: 2024-03-29 05:47:18
|
[2024-03-28 13:33:24] |
John - SC Support - Posts: 36238 |
To have a Stop placed when you enter your Market Order, use the Attached Orders feature. Refer to the following: Attached Orders By default, whatever you have setup in your Trade Window, will be what is setup for your order. Therefore, if you just always want the 2 points offset, then you would just leave the Stop setup as 2 points and when you do a Buy or Sell, it will put it at the right place. Therefore, you would just need two shortcuts, one for Buy and one for Sell. If you are going to be changing your setup and not always have the 2 point offset, then you would want to use the Trade Configurations to change between the setups. You can set these to Control Bar or Keyboard Shortcuts as well. Refer to the following: Basic Trading and the Trade Window: Using and Changing Between Different Trade Window and Attached Orders Configurations For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-03-28 17:53:09] |
Tony - Posts: 518 |
Thanks so much John, It works great when I check "Use Attached Orders" in the Trade Window. I was hoping to set this option on/off by ACSIL, the document regarding "sc.SupportAttachedOrdersForTrading" says: When sc.SupportAttachedOrdersForTrading is set to TRUE(1), then the Attached Orders set on the Trade Window for the chart the trading study is applied to will be used no matter what the Use Attached Orders setting is set to on the Trade Window. I was able to change the value of sc.SupportAttachedOrdersForTrading by ACSIL, but when its value is 1, the stop order didn't placed after I place a market order, the "Use Attached Orders" has to be checked regardless whether the value of sc.SupportAttachedOrdersForTrading is 0 or 1. Not sure what I did wrong... Thanks |
[2024-03-28 18:43:31] |
John - SC Support - Posts: 36238 |
The documentation you are referencing is only true when you are placing orders through that custom study. It does not apply to the status of the "Use Attached Orders" option itself. There is not a function or variable that controls the "Use Attached Orders" option on the Trade Window directly. To turn this on/off through ACSIL, you would need to use two different Configuration files and use ACSIL to change between them. Refer to the following: ACSIL Interface Members - Variables and Arrays: sc.TradeWindowConfigFileName 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: