Support Board
Date/Time: Thu, 27 Feb 2025 13:16:06 +0000
[Programming Help] - Omit gaps from True Range
View Count: 524
[2021-06-29 14:04:14] |
Alex C Demosthenes - Posts: 50 |
Hi - I have the True Range study (with Avg. True Range) on my charts and whenever the market gaps up overnight, I am getting a huge True Range bar representing the overnight move. I am wondering if there is a way to use True Range to only account for the bar sizes (High minus Low), but without including the gaps. I believe this skews my ATR rolling data. I have attached a pic to show what the gap looks like on my TR study. |
[2021-06-29 19:26:03] |
Sawtooth - Posts: 4176 |
You can create your own True Range study using the Spreadsheet Formula study, with a formula like this in the Formula field: =H-L |
[2021-06-29 22:57:45] |
Alex C Demosthenes - Posts: 50 |
Thanks. I gave this a go and I'm not getting the bars to show up. On the subgraph tab, I have it set to "Bar" draw style, and have it in green, and so I would expect them to show up. I have my settings as you can see in the attached image. I also included a screenshot of the area where the bars for true range are not appearing
|
[2021-06-29 23:30:00] |
Sawtooth - Posts: 4176 |
Set the Number of Bars to Calculate to 2000 or so. This value will need to be at least as large as the 'Based On' MA's length. |
[2021-06-30 13:12:14] |
Alex C Demosthenes - Posts: 50 |
Ah, this is perfect. It worked. Thank you!!
|
To post a message in this thread, you need to log in with your Sierra Chart account: