How can I get the barsAgo value by a specific time?
For example how can I implement a function that gets the High value by a dateTime:
public double GetHighByDateTime(DateTime dateTime)
{
return (High[GetBarsAgoByDateTime(dateTime)]);
}
public int GetBarsAgoByDateTime(DateTime dateTime)
{
// What's the code here?
}

Comment