Login Page - Create Account

Support Board


Date/Time: Tue, 07 Apr 2020 06:58:38 +0000



Code help please

[2019-08-27 12:25:21]
Brenster - Posts: 15 | Ending Date: 2020-04-30
I can write the code for Stochastic cross from above/below but i am having trouble adding to alert when crossing above 70 and below 30, i use 2 different stochastic with different settings,
the code i was trying is =OR(CROSSFROMBELOW(ID1.SG2,ID4.SG2<30)AND(CROSSFROMABOVE(ID1.SG2,ID4.SG2>70))

sorry guys/gals, i'm a rookie what i am trying to do is get an alert when both stocastics are above 70 or below 30 and they cross each other at those points

any input/help would be appreciated,

thank you
[2019-08-27 22:49:21]
Brenster - Posts: 15 | Ending Date: 2020-04-30
thank you for help..what a helpful group you got you got here
[2019-08-28 01:39:05]
Ackin - Posts: 693 | Ending Date: 2020-09-04
Hi,
I don't know how to do it in alerts. I only know C ++ (ACSIL). If you really want to do it as a study, then register for the CZ / SK forum and give a request there and I need more details about it - text / draw (picture better than 1000 words). This is about 30 minutes of work. I'll do it there free.


More information:
https://www.sierrachart.com/SupportBoard.php?ThreadID=20360#P187316
[2019-08-28 04:47:30]
tomgilb - Posts: 2437 | Ending Date: 2020-04-30
Try this:
=OR(AND(CROSSFROMBELOW(ID1.SG2,ID4.SG2),ID4.SG2<30),AND(CROSSFROMABOVE(ID1.SG2,ID4.SG2),ID4.SG2>70))
[2019-08-28 10:09:43]
Brenster - Posts: 15 | Ending Date: 2020-04-30
still got an error but thank you Tomgilb

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

Login

Login Page - Create Account