Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 09:08:05 +0000



[Programming Help] - Trade System Based on Alerts

View Count: 1370

[2018-12-17 16:20:25]
User901353 - Posts: 26
I am using "Trade System Based on Alerts" when the alert triggers I get a point over or under the bar. I would like to change this. The only option I see is Point on High or Ignore. Nothing else works. Is there documentation on changing this?

Thanks
[2018-12-19 23:22:54]
User901353 - Posts: 26
Did I post this in the wrong area of support? I notice there is no response.
[2019-01-08 17:09:19]
User901353 - Posts: 26
Years of Sierra Chart use and I have always gotten prompt responses to support questions. Now I get nothing. Why support... why?
[2019-01-08 18:23:54]
Sawtooth - Posts: 3976
You can only use Draw Styles that do not require a price location:
Point On High
Point On Low
Background
Color Bar
Value On High
Value On Low
...etc.
[2019-01-08 18:35:01]
Sierra Chart Engineering - Posts: 104368
Yes post #4 is correct unless you modify the study itself. The source code is available. Refer to:
How to Build an Advanced Custom Study from Source Code
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
[2019-01-08 18:44:03]
User901353 - Posts: 26
Thanks to Tom and Support
[2019-01-19 18:34:58]
User901353 - Posts: 26
Is it possible to enter a trade with 2 cars and then if the trade falls below the entry point to sell 1/2 of your position?

Thanks
[2019-01-20 20:10:26]
Sierra Chart Engineering - Posts: 104368
Yes. This can be done with Attached Orders by using an attached Stop order with a quantity of 1:
Attached Orders: Using Attached Orders and Attached Order Settings
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: 2019-01-20 20:11:04
[2019-01-25 18:42:51]
User925659 - Posts: 39
Is there a way to get flat at eod using alert based system?
[2019-02-06 15:07:58]
User901353 - Posts: 26
I'm not sure. I am looking for a way to go flat at a certain time as well. I can run auto trade systems during certain periods of time but when they stop the system does not go flat. I think I saw a way to do this but I don't remember where.
[2019-02-07 01:35:17]
User90125 - Posts: 715
Easy way to do it. Open the trade window on the chart that you trade from. I use the Control Bar button called ATW for this purpose. Then select the tab marked "A".

Choose Flatten Position and Cancel Orders from the Flatten and Cancel at Set Time Options dropdown box. Below that, add the Time at which you would like to flatten your position and cancel your orders.

Then select the And Disable Auto Trading at Time checkbox, which should stop your auto-trade system on your chart at the Time you selected.

Hope this helps.
[2019-02-07 01:48:12]
Sawtooth - Posts: 3976
You can also do it using the Global Profit/Loss Management functionality.
Global Profit/Loss Management
[2019-02-07 02:00:21]
User90125 - Posts: 715
Perhaps. I see that SC had updated it to provide that functionality too. But that's Global, not per chart or Symbol.

If you use different times to flatten for each chart or Symbol, using the Global Profit/Loss Management, how would you go about doing it?
Date Time Of Last Edit: 2019-02-07 02:00:51
[2019-02-07 04:36:04]
Sawtooth - Posts: 3976
If you use different times to flatten for each chart or Symbol, using the Global Profit/Loss Management, how would you go about doing it?
You can't use the Global Profit/Loss Management for separate symbols or charts because it's global.

I can be done on individual charts with the Trading System Based On Alert Condition study.
You'd need two instances, one for BuyExit and one for SellExit.
You'd need to enable Auto Trading, but with these settings it will only exit.
And use a formula like this in the Alerts tab of both:
=BARTIME>TIMEVALUE("16:00:00")
You'll need to refer to the documentation to understand the other study settings:
Trading System Based on Alert Condition
Confirm its function using Replay Chart.

This can also be done with the Spreadsheet System for Trading study.
[2019-02-10 22:50:10]
User901353 - Posts: 26
That's great information. Thanks Do either of you know how to take one contract off when your default buy and sell number is more than 1 car? By that I mean if my number of contracts in the main dom is set to 2 cars can I take 1 contract off without manually resetting the number in the dom? By dom I meant "trade window"

I hope this isn't too confusing.

Thanks
Date Time Of Last Edit: 2019-02-10 22:52:52
[2019-02-10 23:39:24]
Sawtooth - Posts: 3976
can I take 1 contract off without manually resetting the number in the dom? By dom I meant "trade window"
It can be done if your exits are automated using the Spreadsheet System for Trading study, but not if you are exiting manually.
[2019-02-11 01:14:25]
User901353 - Posts: 26
Interesting. Thanks, Tom. It sounds like there is a fundamental difference between pumping in a command from a spreadsheet rather than executing based on a formula nested in an alert?

Thanks again!
[2019-02-11 01:37:34]
Sawtooth - Posts: 3976
The Spreadsheet System for Trading study's order quantity overrides the Trade Window's order quantity, but only if the entry/exit is generated by the study. If you enter/exit manually, the order quantity will be the one in the Trade Window.

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

Login

Login Page - Create Account