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
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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register