Login Page - Create Account

Support Board


Date/Time: Thu, 26 Dec 2024 16:25:31 +0000



[User Discussion] - Help coding simple ATR settings

View Count: 1387

[2019-10-29 22:31:16]
User116733 - Posts: 4
Hello, I have no clue on coding and was wondering if someone can help with some simple coding. I am trying to have my ATR indicator show on screen with a different colors when the new bar is 1.25 * ATR (for 14 bar periods)

So I think the generic formula would be :
ATR > 1.25*ATR(14)

Here's a picture of what I am sorta trying to achieve.. basically, ATR indicator at the bottom showing each ATR bar periods- black bars for normal ATR that doesn't exceed the ATR rule, green bars would be for buying volume that meets or exceeds the ATR*1.25 (for previous 14 period bars), and Red bars for selling volume that meets/exceed the ATR*.125 rule.

When I added the ATR indicator on screen and then click on the property for ATR, it shows as ID11. I was told I need that info to write the coding..

Any help would be GREAT. Thank you
Attachment Deleted.
imageATR.PNG / V - Attached On 2019-10-29 22:21:46 UTC - Size: 48.09 KB - 556 views
[2019-11-17 17:38:14]
Ackin - Posts: 1865
Hi,
you can download it as a finished study

Study: "Average True Range - Colored"


contact link:
https://www.sierrachart.com/UserControlPanel.php?page=StudyStore&SCDLLName=zyp_download_free
Date Time Of Last Edit: 2020-06-24 22:47:30
imageATR Colored.png / V - Attached On 2019-11-17 17:37:26 UTC - Size: 48.92 KB - 491 views

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

Login

Login Page - Create Account