Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 03:38:31 +0000



Post From: Exit on the Bar Close - Trading System Based on Alert Condition

[2024-07-05 16:01:30]
John - SC Support - Posts: 36238
We are not exactly sure how you are setting this up, but in order to get an Alert when a bar is closed, you would enter the following for the Alert Condition:
=1

So the alert is always active, and then enable the alert option for "Evaluate on Bar Close".

--

It sounds like you would need a condition to test if you are in a trade. Again, without knowing more about what you are doing, all we can recommend is to use the "Trading: Position Quantity" study and test against this to see if it is non-zero (hence you are in a trade). In which case your alert condition would be the following:
=ID1.SG1 > 0

Again, make sure the option for "Evaluate on Bar Close" is enabled, so you will then close out any open positions on bar close when you are in a trade.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing