Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 18:35:01 +0000



Post From: Custom Study Alert formula

[2017-07-10 13:08:07]
User92311 - Posts: 11
Hello,

We are a propfirm, and one of our senior traders is building a new trading system based on the SC repulse indicator through the study alerts field.
He was able to come up with a formula which is made of 2 separate parts/conditions. When he writes the 2 conditions as two separate strings, the alerts work, when he puts them both together in the same string (as it should be) he gets a syntax error. Here is the formula:

=AND(OR(CROSSFROMABOVE(ID4.SG3[-1],ID1.SG1[-1]),CROSSFROMABOVE(ID4.SG3[-2],ID1.SG1[-2])),(ID4.SG4>ID1.SG1,ID3.SG1[0]>ID3.SG1[-1],ID3.SG1[-1]<ID3.SG1[-2]))

We would appreciate if somebody could tell us what he's doing incorrectly and how to combine the 2 conditions together.

Thank you,
Savius