Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 15:33:41 +0000



Post From: Percent Change from last open not working with Eurex

[2023-04-24 17:07:36]
John - SC Support - Posts: 36350
We see an example of what you are seeing with ZN in the chart. The issue is that the study is looking at the first bar as defined by the Session Times, but if that bar does not exist (no trading at that time) then the Open is 0, which then causes the calculation for Percent Change Since Open, to be zero all the way across.

There is not a solution from our standpoint, as we do not know how people would prefer to deal with this (move on to the next bar, or leave it as it is).

The code for this is available in Studies8.cpp (these files are in the ACS_Source folder under your main Sierra Chart folder). If you can do some coding, then we recommend updating this to do what you want when the data is not present at that bar. Refer to the following for how to build a study:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing