Support Board
Date/Time: Sun, 02 Nov 2025 02:09:16 +0000
Post From: Help with formulating alert/ automated trade
| [2022-05-30 16:15:29] |
| Sawtooth - Posts: 4282 |
|
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 |
