Support Board
Date/Time: Tue, 04 Feb 2025 06:54:08 +0000
How to automatically exit trade at market close?
View Count: 2109
[2020-01-04 21:49:31] |
sourdubber - Posts: 52 |
Is there a way to set up automated trading during market hours using the available studies? I would like to have the strategy run the "time chart" during the US and European market hours and switch to "tick chart" for the Asian session. I also want to automatically exit all trades 5 minutes prior to close of each session. Thanks in advance. |
[2020-01-05 01:50:10] |
Ackin - Posts: 1865 |
maybe these threads will help you: Auto Trading System Start Time End Time Trading System Based on Alert Condition - How to flatten at end of day Question About Global profit/loss management - Flatten Positions |
[2020-01-05 06:43:24] |
sourdubber - Posts: 52 |
Thanks for the reply. At the moment, I want to use the "Trading System Based on Alert Condition" because it has the time option (see the first attachment). But I currently use "Spreadsheet System for Trading". Is it possible to combine both without adding any alerts to the first study and use only the second study to trade? (see the second attachment) I just want to use the time parameters.
Date Time Of Last Edit: 2020-01-05 06:49:48
|
[2020-01-05 10:13:09] |
Cavalry3162 - Posts: 523 |
simplest way to just flatten all positions at a specific time is via Global Settings -> Global Profit/Loss Management see: |
ksnip_20200105-051158.png / V - Attached On 2020-01-05 10:12:14 UTC - Size: 11.62 KB - 369 views |
[2020-01-06 22:58:31] |
sourdubber - Posts: 52 |
simplest way to just flatten all positions at a specific time is via Global Settings -> Global Profit/Loss Management
Okay, so I did as you suggested. My trade was indeed closed at the time I specified 13:05 (PST), but I found out just now the trade resumed soon afterwards. In the settings, I set the "Start of the Day" at 15:00 (PST), so I shouldn't see any trades before that time. But there were 3 trades executed between 13:05 and 14:00 (ES goes on a break between 14:00 and 15:00). Take a look at the attached pics. This is not acceptable for live trading. How can I fix? Edit: I found out these spreadsheet entries pertaining to Trading Time Range. Some of the entries are READ ONLY, but I'm able to add the value in the cell. Please see the attachment ("config") and advise. Date Time Of Last Edit: 2020-01-06 23:08:36
|
Flatten.jpg / V - Attached On 2020-01-06 22:58:02 UTC - Size: 53.61 KB - 337 views Trades.jpg / V - Attached On 2020-01-06 22:58:10 UTC - Size: 168.41 KB - 334 views config.jpg / V - Attached On 2020-01-06 23:08:18 UTC - Size: 121.83 KB - 326 views |
[2020-01-07 02:06:17] |
sourdubber - Posts: 52 |
I found a solution by following the suggestions in this post: Spreadsheet System for Trading - Flatten Positions And Cancel Orders At Set Time This post should be considered as a sticky. |
[2020-01-09 18:55:40] |
Sierra Chart Engineering - Posts: 104368 |
One way to avoid new trades being issued after you flatten, is to use the option in the Global Profit/Loss Management to also Lock Trading. Refer to the following: Global Profit/Loss Management: Lock Trading (Global Settings >> Global Profit/Loss Management) 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 |
[2020-01-09 18:56:12] |
Sierra Chart Engineering - Posts: 104368 |
You can certainly change the timeframe of the chart bars using the Advanced Custom Study Interface and Language. The second item is possible as well using ACSIL: Automated Trading From an Advanced Custom Study 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: