How to know chart period and pair from within indicator

 
I would like to specify certain time periods for certain pairs on which my indicator is to be used.   For example, if it is placed on the EURUSD, I need to look at the previous hi's, low's open's closes from 3 HOURS ago, 2 HOURS ago and 1 HOUR ago. If the indicator is placed on the GBPUSD then it needs to look at 3 DAYS ago, 2 DAYS ago, 1 DAY ago.     Could anyone help?
 

"How to know chart period and pair from within indicator"

Symbol() is the pair, Period() is the period

This website uses cookies. Learn more about our Cookies Policy.