Login Page - Create Account

Support Board


Date/Time: Mon, 07 Jul 2025 05:41:23 +0000



[Programming Help] - syntax on alert

View Count: 989

[2019-04-03 20:54:18]
Glenn Infinity - Posts: 103
what I want to do is create a color bar, arrow etc, when the 4th bar and only the 4th bar closes above or below SG4 of the delta momentum study after 3 bars up or down I am guessing it's a crossfromabove/below alert so what I am looking for is after only 3 bars the 4th bar changes direction and the close is above/below the subgraph indicated if there are more or less than 3 up or down it does not trigger the alert. I hope this is clear. The crossover alert is easy I just don't know how to trigger with the said parameters...any help would be great.
[2019-04-15 15:11:31]
Glenn Infinity - Posts: 103
Any word on this? is it possible?
[2019-04-15 15:46:02]
ForgivingComputers.com - Posts: 1076
Long: =and(id1.sg4>0,id1.sg4[-1]>0,id1.sg4[-2]>0,id1.sg4[-3]>0,id1.sg4[-4]<0)
Short: Reverse the < and > signs.

http://www.sierrachart.com/image.php?Image=1555343198634.png
Date Time Of Last Edit: 2019-04-15 15:47:05
attachmentGlenn.Cht - Attached On 2019-04-15 15:45:33 UTC - Size: 48.9 KB - 429 views
[2019-04-15 16:22:59]
User477191 - Posts: 10
Bradth,

You are close, but we need the signal (SHORT) to generate when price closes below (using range bars) a 3 push up on the delta momentum & opposite for LONG signal.
[2019-04-15 16:29:47]
ForgivingComputers.com - Posts: 1076
I don't understand. Price and Delta Momentum are different scales. How does price close below Delta Momentum?
[2019-04-15 16:39:32]
User477191 - Posts: 10
Bradth,

I have posted a screenshot with an example. I have circled (IN WHITE) a negative delta momentum 3 push down, and then I circle (IN WHITE) a range bar eventually closing above that 3 push down. This would be a (LONG) signal.


Hopefully this paints the picture of what we are trying to achieve.


I appreciate your help!
image3 push close above example.PNG / V - Attached On 2019-04-15 16:38:55 UTC - Size: 355.68 KB - 288 views
[2019-04-15 16:49:19]
ForgivingComputers.com - Posts: 1076
That is a bit more complicated. Don't have time to work on that.

Brad
[2019-04-15 16:54:46]
User477191 - Posts: 10
Bradth,

Let's message privately and work something out?

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

Login

Login Page - Create Account