Support Board
Date/Time: Sat, 23 Nov 2024 00:08:22 +0000
[User Discussion] - Aotumatically closing of orders at the end of the day
View Count: 2318
[2013-04-17 09:02:35] |
User76676 - Posts: 7 |
Hi, I want my orders (both pending orders and open positions) to be automatically closed out at the end of the day. How do I do this? Is there a setting in the Sierra trader or where can I find it? Thanks |
[2013-04-17 13:39:59] |
Sierra Chart Engineering - Posts: 104368 |
Sierra Chart does not have the capability to flatten positions at the end of the day itself and this is not likely to be added. However, to have orders canceled at the end of the day simply set the Time in Force for them to Day. 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: 2013-05-30 20:52:04
|
[2013-05-30 20:50:10] |
RafiH - Posts: 28 |
How could that be done using sc.FlattenAndCancelAllOrders()?
|
[2013-05-30 20:52:49] |
Sierra Chart Engineering - Posts: 104368 |
You could use that ACSIL function to flatten your position and cancel the orders for a particular symbol. Refer to this page for more information: http://www.sierrachart.com/index.php?l=doc/doc_ACSILTrading.html 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 |
[2013-05-30 21:01:12] |
RafiH - Posts: 28 |
Can you give me an example? I assume it would look something like "If time of day is >= 15:15, then sc.FlattenAndCancelAllOrders()" Or is something like this in any of the Sierra example systems? |
[2013-05-30 21:03:23] |
Sierra Chart Engineering - Posts: 104368 |
We do not provide programming help.
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 |
[2013-05-31 03:04:32] |
joshtrader - Posts: 488 |
You could use the spreadsheet for trading study, and use the flatten cell (I think it's J29). You would set the value of the cell to true if the time of the first bar (in row 3) is greater than a certain time.
|
[2013-05-31 03:25:54] |
RafiH - Posts: 28 |
Thanks - I'm trying to do this in ASCIL
|
[2013-05-31 20:52:04] |
vegasfoster - Posts: 444 |
Maybe try if(GetHour()>12) or whatever the hour is you want to flatten. |
To post a message in this thread, you need to log in with your Sierra Chart account: