Jump to content

Search the Community

Showing results for tags 'bar history'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Gain Capital API FAQ
    • General Questions and Discussion

Found 1 result

  1. So, apologies in advance if this has been asked previously, I did attempt to search the forum first. In pulling price bars by day and attempting to calculate SMA and EMA for myself, I noticed that there seems to be a slight discrepancy between what is showing as the open and close prices of the bars versus what shows when highlighting a candlestick for the same day in the trading view. As an example, for last Friday, July 17th, 2020, the API returns the following data: { BarDate: '/Date(1594944000000)/', Open: 1.13837, High: 1.14437, Low: 1.13776, Close: 1.14276 } However, in viewing the candlestick data, this is what is displayed: O 1.13824 H 1.14430 L 1.13755 C 1.14261 My guess would be that one or the other is factoring in the spread somehow, but I can't find any documentation to corroborate that. Plus, the diff between the various data points is not consistent across the board. Any help?
×