Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 00:23:15 +0000



[Programming Help] - How to code in ASCIL code to FLATTEN EVERYTHING by MARKET CLOSE?

View Count: 321

[2023-07-11 12:20:09]
ElKimoBasha999 - Posts: 22
Hey guys, simple question, can you please give me the exact code to just basically have a MASTER KILL SWITCH to include in my code that says by Cash Close futures so LA Time would be 11.30am to KILL any order or position and just MARKET exit it. I tried so many but failed.

Please if you could give me the actual snippet I could add to my existing code, and also in a way that I can just easily change the desired time I want to kill trades so maybe by 10am etc.

Thanks a bunch, you guys ROCK!
[2023-10-11 13:58:20]
Sierra_Chart Engineering - Posts: 17187
There actually is not a single function for this. There is not a simple way to do this from ACSIL.

And also doing this at a particular time, is not simple either. It can be done but it has to be programmed. But we do not provide custom programming for users.

However, this functionality does exist with the new profit/loss management for the simulated futures trading service and soon will be supported for Teton order routing. Although this functionality has to be configured for each individual trade account. There is no global way to do this, if there are multiple accounts.

What seems like a simple question for us is not. It actually requires research, and there is no code example which exists to do what you want. At this time it is an extensive programming request.
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: 2023-10-11 14:36:43

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account