Search found 1 match

Go to advanced search

by sk123
Mon Dec 07, 2020 11:12 am
Forum: Pine Script Q&A
Topic: Referencing the chart's resolution inside of a conditional statement?
Replies: 1
Views: 889
 
Jump to post

Referencing the chart's resolution inside of a conditional statement?

here is an example of what I am trying to do.

If chart's resolution is 15minutes, then use 0.1 value for an indicator.
If chart's resolution is 30 minutes, then use 0.2 value.
If charts resolution is 1h, then use xyz value...

etc.

Go to advanced search