Support Board
Date/Time: Wed, 22 Jan 2025 04:37:14 +0000
Can you help with correct code for crossfromabove/below for stochastic?
View Count: 1158
[2018-09-06 00:35:55] |
SierraFan - Posts: 92 |
I've created a color based on alert condition using the stochastic slow indicator. Here's the code =CROSSFROMABOVE(ID6.SG1,ID6.SG2). I've done the same code for crossfrombelow. The alerts are showing up perfect. I would like to add some additional code to remove the buy/sell signals from the charts when the sg1 and sg2 are above the 70 and below the 30. Can you help with this? Thanks
|
[2018-09-06 00:47:16] |
Xfanman1 - Posts: 320 |
=AND(ID6.SG1>30,ID6.SG2>30,ID6.SG1<70,ID6.SG2<70,CROSSFROMABOVE(ID6.SG1,ID6.SG2)) Try this,typing this on my phone so couldn’t t test it. Let me know if it doesn’t work. —- Scott |
[2018-09-06 01:16:06] |
SierraFan - Posts: 92 |
That is it. Had to break it up into 2 different commands. Thanks You for your help, Xfanman!!!! =AND(ID6.SG1>70,ID6.SG2>70,CROSSFROMABOVE(ID6.SG1,ID6.SG2)) =AND(ID6.SG1<30,ID6.SG2<30,CROSSFROMBELOW(ID6.SG1,ID6.SG2)) |
To post a message in this thread, you need to log in with your Sierra Chart account: