Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 12:44:04 +0000



[User Discussion] - custom MA

View Count: 740

[2017-04-08 07:32:35]
N!co - Posts: 140
Hi,

I would like to create a custom Moving Average

a MA of the lows, BUT only consider UP bars in the calculation ( so if the bar is a Down bar , the value of the Low is ignored)

How would I do this ?

thank you very much
Date Time Of Last Edit: 2017-04-08 11:13:08
[2017-04-08 23:46:38]
Sierra Chart Engineering - Posts: 104368
You can create this using the Sierra Chart Advanced Custom Study Interface and Language. However, we do not provide formula or programming help. If you would like someone to create this for you contact Jim _At_ SierraChart.com.

They can do it for a reasonable price.
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
Date Time Of Last Edit: 2017-04-08 23:47:08
[2017-04-09 00:52:52]
Sawtooth - Posts: 3993
Try this:
1) Add the Color Bar Based On Alert Condition study
-Check Hide Study
-Set the Output When Condition True to Use Input Data
-Set the Input Data to Last.
-Use this formula on the Alerts tab: =C>O

2) Add the Moving Average Simple Skip Zeros study
-Set Based On to the Color Bar study
-Set the Input Data to Color Bar

Repeat for down bars, if needed, using this formula =C<O

Note: This limits you to using a Simple Moving Average.

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

Login

Login Page - Create Account