Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 19:56:23 +0000



[User Discussion] - E3 crossup B3 instead of E3>B3

View Count: 938

[2015-05-22 13:45:49]
User81805 - Posts: 9
Right now I am working with strategies surrounding the formula: =AND(E3>B3) for long positions, but I want to have it so a Buy signal is created when E3 (last bar-value) cross up the B3 (open bar-value), instead of just having a buy signal created when E3>B3.

How should this formula look like?
[2015-05-22 14:23:01]
Sawtooth - Posts: 4141
If your signal is at bar close, you'll need to reference the previous bar:
=AND(B4>E4,E3>B3)
You could also use:
=CROSSFROMBELOW(E3:E4,B3:B4)

If your signal is intrabar, this would be the formula:
=E3>B3
and it would necessarily be the first occurrence in the current bar. Subsequent occurrences in the current bar could be eliminated with Signal Only Once Per Bar set to Yes.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account