Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 09:58:32 +0000



[Programming Help] - Creating Alerts on Number Bars Calculated Values

View Count: 2295

[2016-11-14 12:28:14]
User408379 - Posts: 1
Dear Forum users

I use the Bid/Ask Volume for entering my trades but it is quite time consuming to watch the numbers all the time over 8 pairs. It is a simple continuation strategy but it works pretty well for me.

To reduce time spending in front of my screens i though an alert can be very useful.

What i do is the following:

1) When the Day Cumulative AskV-BidV is positive i look for long trades with an entry below the actual price. Once i have found a good level i wait until the price has reached this level and my price alram goes off.

2) Then I watch the AskV-BidV of a 15min candle at this price and when the difference for this candle turns positive again (on close) i enter the trade in the foreseen direction. If not i wait for the next 15 min candle to close positive and so on.

So my question is: Does any know how i can create an alert for the following conditions:

if the Day Cumulative AskV - BidV is positive and the AskV-BidV turns from negative to positive i need an alert.

I believe this can be done with a simple alert condition but have no clue how to combine these two conditions.

And same for opposite direction :-)

Attached you find a screenshot to clarify what i mean. Here i have set a price alarm at 0.77 and entered the trade after the candle with the red circle. (The candle which touched 0.77 was still negative in closing)
imageexample.JPG / V - Attached On 2016-11-14 12:27:46 UTC - Size: 191.56 KB - 664 views
Attachment Deleted.
[2016-11-14 19:11:35]
Sierra Chart Engineering - Posts: 104368
We do not provide formula programming help, but for the relevant documentation, refer to:
http://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php

To combine formulas you need to use the AND and OR functions.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-11-14 19:20:26]
Sawtooth - Posts: 3992
I responded to this on futures.io forum.

Try this:

Add the Color Bar Based On Alert Condition study
Put this formula on the Alerts tab:
=AND(ID1.SG10>0,ID1.SG1[-1]<0,ID1.SG1>0)
where ID1 is the Numbers Bars Calculated Values study; edit as needed.
Check 'Evaluate On Bar Close' and select your alert sound.

This will color the bar and give an audible alert.
If you don't want to color the bar, use the same formula on the Alerts tab of any study. (You don't need the color bar study).
[2019-08-22 09:13:10]
User99735 - Posts: 234
Hi,
Is there any documentation available for 'Number Bars' study's Subgraphs? For eg, in your reply you have referred to SG10, which does not appear in the Subgraph tab of Settings window for the study?

Regards

Vivek
[2019-08-22 13:32:48]
Sawtooth - Posts: 3992
Post #3 refers to the Numbers Bars Calculated Values study, where SG10 does appear.

https://www.sierrachart.com/index.php?page=doc/NumbersBars.php#s328
https://www.sierrachart.com/index.php?page=doc/NumbersBars.php#s300
Date Time Of Last Edit: 2019-08-22 16:48:12
[2019-08-22 21:55:32]
User99735 - Posts: 234
Thanks. I was looking for a subgraph to for "AskVol BidVol Diagonal Difference Percentage of Bar Range". If not available, can other available subgraphs be used to calculate for each price tick. Please advise.

Regards

Vivek
[2019-08-22 23:44:15]
Sawtooth - Posts: 3992
Any subgraph output can be used to calculate a value.

The Numbers Bars Calculated Values study has 56 subgraphs and the Numbers Bars Calculated Values 2 study has 8 subgraphs but none are specifically 'AskVol BidVol Diagonal Difference Percentage of Bar Range'.

You could use the Ask Volume and Bid Volume studies' outputs, with H and L Main Price Graph Identifiers:
Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables
Use a formula in the Spreadsheet Formula study to output the calculated value.

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

Login

Login Page - Create Account