Getting date time of n-th bar before current bar  [SOLVED]

Questions about MultiCharts and user contributed studies.
gpstephy
Posts: 2
Joined: 15 Mar 2022

Getting date time of n-th bar before current bar

Postby gpstephy » 13 Aug 2022

i aware that we have function to get the datetime of the current bar, is that a function I can get n-th bar earlier's datetime?

Great thanks.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Getting date time of n-th bar before current bar

Postby TJ » 13 Aug 2022

KEYWORD [ n-th bar ]

eg

datetime[5]

gpstephy
Posts: 2
Joined: 15 Mar 2022

Re: Getting date time of n-th bar before current bar

Postby gpstephy » 14 Aug 2022

KEYWORD [ n-th bar ]

eg

datetime[5]
Thanks TJ, I am a bit new to MC and thanks for your remind, and thanks for answering my coding 101 question :P

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Getting date time of n-th bar before current bar  [SOLVED]

Postby TJ » 14 Aug 2022

You are welcome !


Return to “MultiCharts”