isPeriodOK = not i_showHelp and timeframe.isminutes == true and _timeframe_multiplier <= 720 and i_period % 2 == 0 and i_period % _timeframe_multiplier == 0
if not isPeriodOK
f_printHelp(
...
"\nWaindrops [Makit0] v0.65beta"+
"\n"+
"\nParameters not allowed!"+
...
if isPeriodOK
halfPeriod = int(.5*i_period)
...
isIndex = syminfo.type == 'index'
isPeriodOK = timeframe.isminutes == true and _timeframe_multiplier <= 720 and i_period % 2 == 0 and i_period % _timeframe_multiplier == 0
customHelpHeader = isIndex ? 'Ticker not allowed! It is an index, select a ticker with volume data.' : not isPeriodOK ? 'Parameters not allowed! Select a new period size and/or chart timeframe.' : 'HELP INFO'
isGoodToGo = not isIndex and not i_showHelp and isPeriodOK
if not isGoodToGo
f_printHelp(
...
"\nWaindrops [Makit0] v0.66beta"+
"\n"+
"\n"+customHelpHeader+
...
if isGoodToGo
halfPeriod = int(.5*i_period)
...