How do I use multi timeframe in a watchlist column or scan?

Pelonsax

Pelonsax

Active member
VIP
I have an idea for a scan or at least a watchlist column but I can't get it to work with the regular MTF code that I use. Any suggestions?

Here's how I code it: (for example on a 1 minute chart)

def Time_Frame = aggregationperiod.FIVE_MIN;
close(period = Time_Frame);
 
BenTen

BenTen

Administrative
Staff
VIP
What's the point of doing that? There is already an option to select whichever timeframe you want.



Example: Say I want to see the current value of the daily 20 SMA. Rather than using this indicator, I can just add the regular 20 SMA as a watchlist column and set the timeframe to D (daily). Does that make sense?
 

Similar threads

Top