Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 23:24:20 +0000



Post From: Price/Study Overlay study question

[2013-06-29 00:03:31]
ticktrader - Posts: 5
TastyRisk:
Thanks for your answer and sharing your code. However that just works for studies in the same chart. I however need to read data from another chart in a different time frame. The challenge there is that bars between the chart don't align. My guess is that is why SC has many options in that particular study. However I need to add two studies and set the option values to "Use Earliest Value from ..." and "Use Latest Value from ..." to be able to get all the signals from the second chart.
The issue lies in the call to:
sc->GetNearestMatchForDateTimeIndex(m_ChartNumber, index)
that returns the equivalent index from the second chart that matches the first chart.
There is another parameter "Bar Time Maching metod" which I don't know what it does. Ideally I would like to code this in a single chart.

However the support here I getting worst. I used to get answers reponded in the same day.