input parameter default value based on chart timeframe

 
How can I set the default value of an integer input parameter based on chart timeframe? For example if loaded in 1min, the default value becomes 123 and for 5min chart it becomes 456.
 
Nabeel Bashir:
How can I set the default value of an integer input parameter based on chart timeframe? For example if loaded in 1min, the default value becomes 123 and for 5min chart it becomes 456.
Use ENUM_TIMEFRAMES and if else.  Or Chart period() function