Resolution

Resolution or interval is a time period of one bar. Charting Library supports intraday resolutions (seconds, minutes, hours) and DWM resolutions (daily, weekly, monthly).
Charting Library API has lots of methods that accepts and returns Resolutions.

Intraday

Seconds

Format: xS, where x is a number of seconds.
Example: 1S - one second, 2S - two seconds, 100S - one hundred seconds.

Minutes

Format: x, where x is a number of minutes.
Example: 1 - one minute, 2 - two minutes, 100 - one hundred minutes.

Hours

Important: while user interface allows a user to enter a number of hours as xh or xH, it is never passed to the API. Hours are always set using minutes in the Charting Library API.

Example: 60 - one hour, 120 - two hours, 240 - four hours.

DWM

Days

Format: xD, where x is a number of days.
Example: 1D - one day, 2D - two days, 100D - one hundred days.

Weeks

Format: xW, where x is a number of weeks.
Example: 1W - one week, 2W - two weeks, 100W - one hundred weeks.

Months

Format: xM, where x is a number of months.
Example: 1M - one month, 2M - two months, 100M - one hundred months.

Years

Years are set using months.
Example: 12M - one year, 24M - two year, 48 - four years.

See also

[[How to set a list of available resolutions on a chart|JS-Api#supported_resolutions]]
[[How to set a list of resolutions supported by an instrument|Symbology#supported_resolutions]]
[[Set initial resolution on a chart#Widget-Constructor#interval|]]
[[Get current chart resolution|Chart-Methods#resolution]]
[[Change resolution on a chart|Chart-Methods#setresolutionresolution-callback]]

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,083评论 0 23
  • 01 这一年,她二十六,我二十。她刚好准备要结婚,我在得知消息后悄无声息地离开了。我没有参加她的婚礼。 这是我的小...
    安小麦吖阅读 478评论 1 4
  • 悄然过去的最后一个暑假,没有像之前大一大二的寒暑假一样,出去找事情做或是学一些课程。 比如:大一暑假去湖南长沙实习...
    大超在路上阅读 426评论 1 10
  • 躺在悬崖边上 等月亮升到很高 很高。 耳边永远只是温柔的风声 倘若你恰巧经过 安静些 好吗? 月光是黑夜的心跳 我...
    雨篱阅读 200评论 0 3
  • 秦歌盯着饭桌上的一盒年糕,他的食指摩挲着下巴,眉头紧锁。 秦歌在思考这盒年糕是哪来的?他使劲回想也没想出来这是什么...
    猩猩燎源阅读 268评论 3 4