Login Page - Create Account

Support Board


Date/Time: Thu, 13 Mar 2025 16:29:54 +0000



Post From: Help with formulating alert/ automated trade

[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