Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 05:12:09 +0000



Post From: Buy/Sell formula using Study Angle

[2016-08-20 23:58:08]
Sawtooth - Posts: 4000
Try this:

For Simple Alerts:
Buy signal:
=AND(ID1.SG1[-2]>ID1.SG1[-1],ID1.SG1>ID1.SG1[-1])
Sell signal:
=AND(ID1.SG1[-2]<ID1.SG1[-1],ID1.SG1<ID1.SG1[-1])
where ID1 is the Study Angle study, edit as needed.

For spreadsheet studies:
Buy signal:
=AND(ID1.SG1@5>ID1.SG1@4,ID1.SG1@3>ID1.SG1@4)
Sell signal:
=AND(ID1.SG1@5<ID1.SG1@4,ID1.SG1@3<ID1.SG1@4)

where ID1 is the Study Angle study, edit as needed.