Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 16:42:21 +0000



Code help please

View Count: 1494

[2019-08-27 12:25:21]
Brenster - Posts: 15
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
thank you for help..what a helpful group you got you got here
[2019-08-28 01:39:05]
Ackin - Posts: 1865
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.




contact link:
https://www.sierrachart.com/UserControlPanel.php?page=StudyStore&SCDLLName=zyp_download_free
Date Time Of Last Edit: 2020-06-24 22:33:45
[2019-08-28 04:47:30]
Sawtooth - Posts: 3976
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
still got an error but thank you Tomgilb

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

Login

Login Page - Create Account