study("[blackcat] L3 Banker Fund Swing","[blackcat] L3 Banker Fund Swing", overlay=true, max_bars_back=5000, max_labels_count =500)
xrf(values, length) => r_val = float(na) if length >= 1 for i = 0 to length by 1 if na(r_val) or not na(values) r_val := values r_val r_val
bton(b) => b ? 1 : 0
xsa(src, len, wei) => sum = 0.0 ma = 0.0 out = 0.0 sum := nz(sum[1]) - nz(src[len]) + src ma := na(src[len]) ? na : sum / len //return xsa in tdx out := na(out[1]) ? ma : (src * wei + out[1] * (len - wei)) / len out
xsl(src, len) => out = 0.0 lrc = linreg(src, len, 0) lrprev = linreg(src[1], len, 0) out := (lrc - lrprev) / timeframe.multiplier out
Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
Also on:
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.