Support Board
Date/Time: Wed, 12 Mar 2025 21:34:58 +0000
Help with formulating alert/ automated trade
View Count: 447
[2022-05-29 17:12:33] |
User283743 - Posts: 38 |
Could you help with this: I want the alert/trade entry when: ID3.SG1 crosses above SG1 (go long) or ID3.SG1 crosses below SG1 (cover long) or ID3.SG1 crosses below SG2 (go short) or ID3.SG1 crosses above SG2 (cover short) Thanks. |
[2022-05-29 20:07:17] |
Sawtooth - Posts: 4182 |
What is the ID# of the other SG1, and SG2 ?
Date Time Of Last Edit: 2022-05-29 20:07:39
|
[2022-05-30 08:59:27] |
User283743 - Posts: 38 |
Hi, it's ID1 for the other SG1 and SG2. Thanks. |
[2022-05-30 12:22:18] |
Sawtooth - Posts: 4182 |
Which study are you using?: - Trading System Based On Alert Condition - Spreadsheet System for Trading |
[2022-05-30 13:30:54] |
User283743 - Posts: 38 |
Hi Tom, I was just after the alert formula initially, the added the trade request; so I'm not using a study for the trade yet but from your examples/options, - Trading System Based On Alert Condition sounds promising. |
[2022-05-30 16:15:29] |
Sawtooth - Posts: 4182 |
Try this: ID3.SG1 crosses above ID1.SG1 (go long): =CROSSFROMBELOW(ID3.SG1,ID1.SG1) ID3.SG1 crosses below SG1 (cover long) =CROSSFROMABOVE(ID3.SG1,ID1.SG1) ID3.SG1 crosses below SG2 (go short) =CROSSFROMABOVE(ID3.SG1,ID1.SG2) ID3.SG1 crosses above SG2 (cover short) =CROSSFROMBELOW(ID3.SG1,ID1.SG2) You can put them together with OR(...,...,...,...) If you use this in the Trading System Based On Alert Condition study, you'll need 4 instances, one for each operation: Buy Entry Buy Exit Sell Entry Sell Exit Trading System Based on Alert Condition |
To post a message in this thread, you need to log in with your Sierra Chart account: