Optimization, Trading Strategy, Fmz Quant, Cryptocurrency, Trends.
if selected. closeSeriesAlt = reso(closeSeries, useRes, stratRes) openSeriesAlt = reso(openSeries, useRes, stratRes) // trendColour = closeSeriesAlt > openSeriesAlt ? color.rgb(148, 106, 226) : color.rgb(146, 80, 80, 62) bcolour = closeSeries > openSeriesAlt ? lime100 : red100 barcolor(scolor ?