Optimization, Trading Strategy, Fmz Quant, Cryptocurrency, Trends.
shortStop2Prev ? 1 : dir2 == 1 and mav2g < longStop2Prev ? -1 : dir2 MT2 = dir2 == 1 ? longStop2 : shortStop2 OTT2 = mav2g > MT2 ? MT2 * (200 + percent2) / 200 : MT * (200 - percent) / 200 OTT2up = OTT2 * (1 + coeff2) OTT2dn = OTT2 * (1 - coeff2) PPLOT2 = plot(showsupport2 ? mav2g : na,