Login Page - Create Account

Support Board


Date/Time: Tue, 30 Apr 2024 14:32:16 +0000



[Programming Help] - How to code buy exit (L3) and sell exit (N3)

View Count: 599

[2019-09-14 20:47:08]
User116135 - Posts: 9
Need buy exit code when price closes below moving average (ID6.SG1@3). Also the sell code for same moving average...

Thanks in advance...
[2019-09-15 03:54:36]
Sawtooth - Posts: 3985
Try this:
L3:
=CROSSFROMABOVE(E3:E4,ID6.SG1@3:ID6.SG1@4)
N3:
=CROSSFROMBELOW(E3:E4,ID6.SG1@3:ID6.SG1@4)

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

Login

Login Page - Create Account