v3
Updated to include 2 more LTF options including a 2min LTF, and another for approximately 250 intrabars.
Updated Function:
ltf(userSelection, choice1, choice2, choice3, choice4, choice5, choice6, choice7, choice8, choice9, choice10)
Selects a LTF from the chart's TF, depending on the `userSelection` input string.
Parameters:
userSelection: (simple string) User-selected input string which must be one of the `choicex` arguments.
choice1: (simple string) Input selection corresponding to "Covering most chart bars (least precise)".
choice2: (simple string) Input selection corresponding to "Covering some chart bars (less precise)".
choice3: (simple string) Input selection corresponding to "Covering less chart bars (more precise)".
choice4: (simple string) Input selection corresponding to "Very precise (2min intrabars)".
choice5: (simple string) Input selection corresponding to "Most precise (1min intrabars)".
choice6: (simple string) Input selection corresponding to "~12 intrabars per chart bar".
choice7: (simple string) Input selection corresponding to "~24 intrabars per chart bar".
choice8: (simple string) Input selection corresponding to "~50 intrabars per chart bar".
choice9: (simple string) Input selection corresponding to "~100 intrabars per chart bar".
choice10: (simple string) Input selection corresponding to "~250 intrabars per chart bar".
Returns: (simple string) A timeframe string to be used with `request.security_lower_tf()`.