I’m trying to set a custom tick timeframe dynamically in ProRealTime using the TIMEFRAME()
function. However, I found that TIMEFRAME((timeFrame) tick, UPDATEONCLOSE)
does not work when timeFrame
is a variable.
I also tried using conditional statements like:
But that didn’t work either.
Is there any way to pass a variable to TIMEFRAME()
or dynamically change the timeframe without manually editing the script? If not, what’s the best workaround?
Thanks in advance for any help! 🚀