The default timeframe, written as:
Timeframe(default)
is the timeframe on your chart, whatever it is.
In a multi-timeframe code, all the bigger timeframes used MUST be a multiple of the deafault timeframe, i.e. if the default timeframe is 1-minute, the bigger timeframes can be 1, 2, 3, 4, 5, 6, 10, 15 20 minutes or 1, 2, 4, 8 hours, Daily etc…, if your default timeframe is, say, 7 minutes you will hardly find a multiple timeframe as it should be 14 or 28 or 56 or 112 minutes, etc…
The bigger timeframes can be written in two ways, in Indicators and automated Strategies (mode 2 and 3 being equivalent):
// 1
Timeframe(Weekly,UpdateOnClose)
// 2
Timeframe(Weekly,default)
// 3
Timeframe(Weekly)
while Screeners only support mode 3 .
UpdateOnClose means that indicators and variables are to be updated when the bar closes (so in a 1-hour timeframe, once per hour).
Default means that indicators and variables are to be updated when the bar of the default timeframe closes (so in a 1-hour timeframe, but using a 1-minute default timeframe, data are updated every minute).