Right we went over that as well. That's why we were talking about using time conditions in the previous posts. If you need to find that time then adjust your time conditions to meet that criteria.
The value that is plotted is the previous day value. The previous day value comes from finding the up or down value during the time condition and setting it as the current days value, on the following day that found up or down value is set to the previous days value and plotted. The current day value is reset so it can find the new value when the time comes. This repeats for each bar.
Keep in mind that our support can only provide a direction for you such as the small example i originally provided in post 2. If you need to accommodate specific other requirements you will need to program those cases. The platform has tools for you to use to debug the script when you run it which is Print statements. You can use that to learn more about how certain logic works to better learn NinjaScript.
Comment