Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 20:48:14 +0000



Weighted Price Type

View Count: 1369

[2017-08-27 14:52:23]
jimskin - Posts: 127
I'm having a MQL4 custom moving average ported over to a Sierra Chart study but Sierra Chart doesn't support a Weighted close price, (high + low + close + close)/4 (shown on: https://docs.mql4.com/constants/indicatorconstants/prices ). Is there any chance of adding that price type in the next release?
[2017-08-27 16:48:20]
Sierra Chart Engineering - Posts: 104368
There really is no need to. You just simply calculate it within the custom study. That is just nothing more than one line of code:
(sc.High[sc.Index] + sc.Low[sc.Index] + (sc.Close[sc.Index]*2))/4.0f

Whoever is doing this for you, should know that. The effort posting the question and answering it is more work than just simply writing the code.
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-08-27 16:48:45
[2017-08-30 16:36:50]
jimskin - Posts: 127
Thanks for the line of code and sorry about disturbing you on a sunday.

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

Login

Login Page - Create Account