Please help with bool and user input values
Posted: Sat Dec 10, 2022 8:36 pm
Need help with conditional operator for changing operator settings.
If the below bool is marked true, I want to change the defval / step for the following user input from 0.00010 / 0.000005 to 0.001 / 0.00005.
Everything I tried throws some kind of error.
JPYpairs = input.bool(title="Will this indicator be for JPY pairs?", defval=false, tooltip="If trading JPY pairs the decimal \n for consolidation moves.", group="STEP 1: GENERAL SETTINGS")
i_conlevelHighLMACD = input.float(0.00010, title="Consolidation Channel", minval=0,step=0.000005, group="STEP 3: CONSOLIDATE HIGH", tooltip="These levels define consolidation on Long-MACD.")
If the below bool is marked true, I want to change the defval / step for the following user input from 0.00010 / 0.000005 to 0.001 / 0.00005.
Everything I tried throws some kind of error.
JPYpairs = input.bool(title="Will this indicator be for JPY pairs?", defval=false, tooltip="If trading JPY pairs the decimal \n for consolidation moves.", group="STEP 1: GENERAL SETTINGS")
i_conlevelHighLMACD = input.float(0.00010, title="Consolidation Channel", minval=0,step=0.000005, group="STEP 3: CONSOLIDATE HIGH", tooltip="These levels define consolidation on Long-MACD.")