Convert your strategy into a function which returns boolean customFunc() => boolVal = close > open [close, boolVal] [vl01, ln01] = security("TATASTEEL", timeframe.period, customFunc ()) ...... // few more such scripts [vl20, ln20] = security("ACC", timeframe.period, customFunc ()) //create label to ...