Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 04:56:24 +0000



Exit entire position with: Trading System Based on Alert Condition

View Count: 671

[2023-02-16 15:17:04]
BenjFlame - Posts: 324
Hi,
I use that amazing study: Trading System Based on Alert Condition.

I created a "Sell exit" alert that works fine when I hold only a single contract.
But when I buy (manually) several, it will exit each on a different bar. I would like the exit alert to exit ENTIRE position.

Is it possible? If yes how,

I did set "Allow Only One Trade per Bar" to "NO".
[2023-02-16 17:37:53]
Sierra_Chart Engineering - Posts: 17218
We will look this over.
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
[2023-02-17 17:20:23]
BenjFlame - Posts: 324
Thanks a lot.
Maybe a new boolean setting to "Exit entire position on first stop Hit" would be nice.
[2023-02-18 00:53:00]
User61168 - Posts: 403
This is possible. I do it all the time with my alert condition. Just make sure you have the "maximum position Allowed" set to a equal or higher number than your entry size. Same for "Max Long and short trades per day" to a large number in the exit alert study settings.
EDIT: and set "Evaluate on bar close" to No if you want to exit all your positions on tick.
Date Time Of Last Edit: 2023-02-18 00:54:18
[2023-02-18 06:52:09]
BenjFlame - Posts: 324
I already had "maximum position Allowed" and "Max Long and short trades per day" set to a large number so these do not affect the outcome.

However, when I set "Evaluate on bar close" to No here is what I notice:

- It indeed exits multiple contracts, but a random number of them!!! So if I have 3 contracts it will exit them all. If I have 10 it will exit a random number like 6.... and the rest on the next signal. This could be a bug.

Second possible problem: I see no reason why it will exit several contracts only when "Evaluate on bar close" is set to "No". It should exit ALL contracts in both situations. And I personally NEED "Evaluate on bar close".

SierraChart, please look into this.
Date Time Of Last Edit: 2023-02-18 07:40:30
[2023-02-22 21:03:02]
Sierra_Chart Engineering - Posts: 17218
The quantity of the exit order is the quantity set on the Trade Window, the Trading System Based on Alert Condition study is on.

In the next release of Sierra Chart there will be a Flatten action that can be used by this study. That is what you will want to use. This will definitively solve the problem.
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
[2023-02-23 14:40:23]
User90125 - Posts: 715
Could Flatten also be added as an "Action on Crossover When in Position" on the Study Subgraph Crossover study?

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

Login

Login Page - Create Account