Login Page - Create Account

Support Board


Date/Time: Fri, 01 Nov 2024 05:21:28 +0000



Post From: Alert condition for arrows

[2018-06-15 23:27:00]
Xfanman1 - Posts: 320
I added =SG1<>0.=SG2<>2

This code shouldn't work as you have it written. Both conditions can't be true at the same time (as well as the formula syntax is incorrect) I would assume as you want a Bullish OR a Bearish candle depending on the conditions. Try just half the condition as Engineering suggested to see if it works in your study as you hope:

=SG1<>0

(Buy Signal is Not Equal to Zero)

If this works then you can add the other condition with an OR operator like so:

=OR(SG1<>0,SG2<>0)

(Buy Signal is NOT equal to Zero OR Sell Signal is NOT Equal to Zero)

This will return one or the other as true, but not both.

I'm not sure where you got =SG2<>2 from instead of =SG2<>0 ? If you're confident that you need 2 then replace the second 0 in my suggestion.

If neither of these work then the output from your study is different than what is expected. Also, you don't have to wait until Sunday night to test these, you can simply Replay today or an earlier date to see if this code works for you.

Replaying Charts

--
Scott
Date Time Of Last Edit: 2018-06-15 23:35:46