From a5149d57b8ab29e8b96f3fa26470792f1458ab20 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Thu, 8 Feb 2024 16:28:58 +0300 Subject: [PATCH 01/25] HBS-0: input pine optimization to nyc copy --- BEST_PRACTICES.md | 133 +++++++++++++ README.md | 5 +- links/24h_volume.pine.link | 33 ++-- links/common.pine.link | 259 ++++++++++++------------- links/etf.pine.link | 76 +++----- links/high_and_low.pine.link | 60 +++--- links/performance_market_cap.pine.link | 26 +-- links/pivot_points.pine.link | 39 ++-- links/pivot_points_2.pine.link | 45 ++--- links/pivot_points_plots.pine.link | 3 + links/volume_v5.pine.link | 28 ++- scanner.data.bonds.json | 196 +++++++++---------- scanner.data.bonds.pine | 2 +- scanner.data.coin.json | 196 +++++++++---------- scanner.data.crypto.json | 196 +++++++++---------- scanner.data.futures.json | 196 +++++++++---------- scanner.data.json | 234 +++++++++++----------- scanner.data.simple.5.json | 196 +++++++++---------- scanner.data.simple.bonds.json | 196 +++++++++---------- scanner.data.simple.coin.5.json | 196 +++++++++---------- scanner.data.simple.coin.json | 196 +++++++++---------- scanner.data.simple.crypto.5.json | 196 +++++++++---------- scanner.data.simple.crypto.json | 196 +++++++++---------- scanner.data.simple.json | 196 +++++++++---------- 24 files changed, 1576 insertions(+), 1523 deletions(-) create mode 100644 BEST_PRACTICES.md diff --git a/BEST_PRACTICES.md b/BEST_PRACTICES.md new file mode 100644 index 000000000..0b987ed0a --- /dev/null +++ b/BEST_PRACTICES.md @@ -0,0 +1,133 @@ +# Рекомендации по написанию эффективного кода на пайне + +### По-возможности обращаться непосредственно к истории серий (`time`/`open`/`high`/`close`) вместо обращения к истории переменных или аргументов, в противном случае на каждый вызов функции будет выделен буфер в размере глубины обращения. В частности, если функция всегда вызывается с некоторыми одинаковыми параметрами, их следует инлайнить +``` +fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending + xs = _xs + if bar_index == 0 + xs += xs[maxbarsback] * 0 // max_bars_back + left = 0 + right = math.min(bar_index, maxbarsback) + mid = 0 + if xs < x + 0 + else + for i = 0 to 9 by 1 + mid := math.ceil((left + right) / 2) + if left == right + break + else if xs[mid] < x + right := mid + continue + else if xs[mid] > x + left := mid + continue + else + break + mid + +countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) +countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) +countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) +``` +можно улучшить так +``` +fastSearchTimeIndex(x, maxbarsback) => + max_bars_back(time, maxbarsback) + left = 0 + right = math.min(bar_index, maxbarsback) + mid = 0 + if time < x + 0 + else + for i = 0 to 9 by 1 + mid := math.ceil((left + right) / 2) + if left == right + break + else if time[mid] < x + right := mid + continue + else if time[mid] > x + left := mid + continue + else + break + mid + +countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) +countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) +countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) +``` +### Рекомендуется схлопывать одинаковые секюрити в одну при помощи тюплов +``` +fund_flows1M = request.security(makeFundFlowsTicker(), getFundTF(), sum(oneMonth), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fund_flows3M = request.security(makeFundFlowsTicker(), getFundTF(), sum(threeMonths), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fund_flows1Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(oneYear), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fund_flows3Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(threeYears), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fund_flows5Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(fiveYears), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fund_flowsYTD = request.security(makeFundFlowsTicker(), getFundTF(), sumYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +``` +стоит зарефакторить так +``` +[fund_flows1M, fund_flows3M, fund_flows1Y, fund_flows3Y, fund_flows5Y, fund_flowsYTD] = request.security(fundFlowsTicker, fundTF, [sum(oneMonth), sum(threeMonths), sum(oneYear), sum(threeYears), sum(fiveYears), sumYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +``` +### Следует переиспользовать вычиcления +``` +plot(ta.rsi(close, 2), title='RSI2') +plot(ta.rsi(close, 2)[1], title='RSI2[1]') +``` +нужно переписать так +``` +RSI2 = ta.rsi(close, 2) +plot(RSI2, title='RSI2') +plot(RSI2[1], title='RSI2[1]') +``` +### Стоит использовать `var` по назначению +``` +pivotX_open = float(na) +pivotX_open := nz(pivotX_open[1], open) +``` +можно упростить +``` +var pivotX_open = open +``` +### Если что-то можно посчитать 1 раз, то стоит это сделать и записать результат в var переменную. NB: если инициализируемое значение константа, то var не нужен +``` +getFundTF() => timeframe.isintraday ? "1D" : timeframe.period +``` +превратить в +``` +var fundTF = timeframe.isintraday ? "D" : timeframe.period +``` +### Эффективнее применять подход "вычислений по скользящему окну" вместо постоянного обхода в цикле +``` +sumYTD()=> + max_bars_back(time, 2*oneYear) + max_bars_back(close, 2*oneYear) + var firstBar = time + + if year(timenow, syminfo.timezone) == year(firstBar, syminfo.timezone) + na + else + sum = 0. + for i = 0 to bar_index + if year(time[i], syminfo.timezone) < year + break + sum += close[i] + sum +``` +можно соптимизировать +``` +sumYTD()=> + var startYear = year(time, syminfo.timezone) + + if year(timenow, syminfo.timezone) == startYear + na + else + var sum = 0. + if year(time[1], syminfo.timezone) < year(time, syminfo.timezone) + sum := 0 + sum += close + sum +``` +### Инпуты в сканерных скриптах не нужны \ No newline at end of file diff --git a/README.md b/README.md index 2324a0d8c..040d9c2d7 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,9 @@ ## Как обновлять код индикаторов -Для обновления скрипта индикатора, отредактируйте соответствующий .pine файл -Для добавления скрипта индикатора, добавьте соответствующий .pine файл +Для начала прочитать [рекомендации](BEST_PRACTICES.md) +Для обновления скрипта индикатора, отредактируйте соответствующий .pine файл +Для добавления скрипта индикатора, добавьте соответствующий .pine файл После внесенных изменений, запустите утилиту pine_compiler (https://git.xtools.tv/tv/scanner/tree/master/pine_compiler): ```shell diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 8202ca371..72a0d3a23 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -1,14 +1,23 @@ // 24h volume -price = close currency = "USD" msIn24h = 24*60*60*1000 countOfFiveMinsInDay = 24*60/5 maxBufferSize = 2*countOfFiveMinsInDay cumVolTF = "5" -cum24hVol(s) => - src = s - if bar_index==0 - src := src[maxBufferSize] * time[maxBufferSize] * 0 +expr(offset, maxBufferSize) => + if (syminfo.volumetype == "quote") + max_bars_back(volume, maxBufferSize) + volume[offset] + else + if syminfo.volumetype == "base" + max_bars_back(close, maxBufferSize) + max_bars_back(volume, maxBufferSize) + close[offset] * volume[offset] + else + na + +cum24hVol() => + max_bars_back(time, maxBufferSize) var cumSum = 0. var int firstBarTimeIndex = na if na(firstBarTimeIndex) // 24 H have not elapsed yet @@ -17,20 +26,20 @@ cum24hVol(s) => if (time - time[i]) >= msIn24h firstBarTimeIndex := bar_index - i + 1 break - sum += src[i] + sum += expr(i, maxBufferSize) cumSum := sum else - cumSum += nz(src) + cumSum += nz(expr(0, maxBufferSize)) for i = firstBarTimeIndex to bar_index if (time - time[bar_index - i]) < msIn24h firstBarTimeIndex := i break - cumSum -= nz(src[bar_index - i]) + cumSum -= nz(expr(bar_index - i, maxBufferSize)) if cumSum <= 0 cumSum := 0 cumSum -expr = syminfo.volumetype == "quote" ? volume : ( syminfo.volumetype == "base" ? price*volume : na ) -vol24h = request.security(syminfo.tickerid, cumVolTF, cum24hVol(expr), lookahead = barmerge.lookahead_off, currency = currency, ignore_invalid_symbol=true) + +vol24h = request.security(syminfo.tickerid, cumVolTF, cum24hVol(), lookahead = barmerge.lookahead_off, currency = currency, ignore_invalid_symbol=true) plot(vol24h, title = "24h_vol", style = plot.style_columns) // volume in base and quote currencies @@ -42,8 +51,8 @@ plot(volQuote, title = "volume_quote", style = plot.style_columns) // 24h prev value (generic) prev24hVal(source) => src = source - if bar_index == 0 - src := src[maxBufferSize] * time[maxBufferSize] * 0 + max_bars_back(src, maxBufferSize) + max_bars_back(time, maxBufferSize) int BB24h = na for i = 0 to countOfFiveMinsInDay if (time - time[i]) >= msIn24h diff --git a/links/common.pine.link b/links/common.pine.link index 7c5d9006b..f23c5170d 100644 --- a/links/common.pine.link +++ b/links/common.pine.link @@ -1,112 +1,6 @@ //@version=5 indicator(title='ScannerData', shorttitle='_SD_') -// study(title="Average True Range", shorttitle="ATR", overlay=false) -plot(ta.rma(ta.tr(true), 14), title='ATR') - -// study("Average Directional Index", shorttitle="ADX") -dirmov(len) => - up = ta.change(high) - down = -ta.change(low) - truerange = ta.rma(ta.tr, len) - plus = fixnan(100 * ta.rma(up > down and up > 0 ? up : 0, len) / truerange) - minus = fixnan(100 * ta.rma(down > up and down > 0 ? down : 0, len) / truerange) - [plus, minus] -adx(dilen, adxlen) => - [plus, minus] = dirmov(dilen) - sum = plus + minus - adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen) - [adx, plus, minus] -[adxValue, adxPlus, adxMinus] = adx(14, 14) -plot(adxValue, title='ADX') -plot(adxPlus, title='ADX+DI') -plot(adxMinus, title='ADX-DI') -plot(adxPlus[1], title='ADX+DI[1]') -plot(adxMinus[1], title='ADX-DI[1]') -[adxValue9, adxPlus9, adxMinus9] = adx(9, 9) -plot(adxValue9, title='ADX_9') -plot(adxPlus9, title='ADX+DI_9') -plot(adxMinus9, title='ADX-DI_9') -plot(adxPlus9[1], title='ADX+DI_9[1]') -plot(adxMinus9[1], title='ADX-DI_9[1]') -[adxValue20, adxPlus20, adxMinus20] = adx(20, 20) -plot(adxValue20, title='ADX_20') -plot(adxPlus20, title='ADX+DI_20') -plot(adxMinus20, title='ADX-DI_20') -plot(adxPlus20[1], title='ADX+DI_20[1]') -plot(adxMinus20[1], title='ADX-DI_20[1]') -[adxValue50, adxPlus50, adxMinus50] = adx(50, 50) -plot(adxValue50, title='ADX_50') -plot(adxPlus50, title='ADX+DI_50') -plot(adxMinus50, title='ADX-DI_50') -plot(adxPlus50[1], title='ADX+DI_50[1]') -plot(adxMinus50[1], title='ADX-DI_50[1]') -[adxValue100, adxPlus100, adxMinus100] = adx(100, 100) -plot(adxValue100, title='ADX_100') -plot(adxPlus100, title='ADX+DI_100') -plot(adxMinus100, title='ADX-DI_100') -plot(adxPlus100[1], title='ADX+DI_100[1]') -plot(adxMinus100[1], title='ADX-DI_100[1]') - -// study(shorttitle="BB", title="Bollinger Bands", overlay=true) -lengthBB20 = 20 -lengthBB50 = 50 -srcBB = close -multBB = 2 -basisBB20 = ta.sma(srcBB, lengthBB20) -devBB20 = multBB * ta.stdev(srcBB, lengthBB20) -upperBB20 = basisBB20 + devBB20 -lowerBB20 = basisBB20 - devBB20 -plot(basisBB20, title='BB.basis') -plot(upperBB20, title='BB.upper') -plot(lowerBB20, title='BB.lower') -basisBB50 = ta.sma(srcBB, lengthBB50) -devBB50 = multBB * ta.stdev(srcBB, lengthBB50) -upperBB50 = basisBB50 + devBB50 -lowerBB50 = basisBB50 - devBB50 -plot(basisBB50, title='BB.basis_50') -plot(upperBB50, title='BB.upper_50') -plot(lowerBB50, title='BB.lower_50') - -// study(title="Moving Average Convergence/Divergence", shorttitle="MACD") -sourceMACD = close -fastLengthMACD = 12 -slowLengthMACD = 26 -signalLengthMACD = 9 -fastMAMACD = ta.ema(sourceMACD, fastLengthMACD) -slowMAMACD = ta.ema(sourceMACD, slowLengthMACD) -macdMACD = fastMAMACD - slowMAMACD -signalMACD = ta.ema(macdMACD, signalLengthMACD) -histMACD = macdMACD - signalMACD -plot(histMACD, title='MACD.hist') -plot(macdMACD, title='MACD.macd') -plot(signalMACD, title='MACD.signal') - -//study(title="Momentum", shorttitle="Mom") -Mom = close - close[10] -plot(Mom, title='Mom') -plot(Mom[1], title='Mom[1]') -Mom14 = close - close[14] -plot(Mom14, title='Mom_14') -plot(Mom14[1], title='Mom_14[1]') - -//study(title="Relative Strength Index", shorttitle="RSI") -RSI = ta.rsi(close, 14) -plot(RSI, title='RSI') -plot(RSI[1], title='RSI[1]') -plot(ta.rsi(close, 2), title='RSI2') -plot(ta.rsi(close, 2)[1], title='RSI2[1]') -plot(ta.rsi(close, 3), title='RSI3') -plot(ta.rsi(close, 3)[1], title='RSI3[1]') -plot(ta.rsi(close, 5), title='RSI5') -plot(ta.rsi(close, 5)[1], title='RSI5[1]') -plot(ta.rsi(close, 7), title='RSI7') -plot(ta.rsi(close, 7)[1], title='RSI7[1]') -plot(ta.rsi(close, 9), title='RSI9') -plot(ta.rsi(close, 9)[1], title='RSI9[1]') -plot(ta.rsi(close, 21), title='RSI21') -plot(ta.rsi(close, 21)[1], title='RSI21[1]') - // study(title="Moving Average", shorttitle="MA", overlay=true) SMA3 = ta.sma(close, 3) plot(SMA3, title='SMA3') @@ -199,20 +93,119 @@ plot(EMA250, title='EMA250') EMA300 = ta.ema(close, 300) plot(EMA300, title='EMA300') +//study(title="Relative Strength Index", shorttitle="RSI") +RSI = ta.rsi(close, 14) +plot(RSI, title='RSI') +plot(RSI[1], title='RSI[1]') +RSI2 = ta.rsi(close, 2) +plot(RSI2, title='RSI2') +plot(RSI2[1], title='RSI2[1]') +RSI3 = ta.rsi(close, 3) +plot(RSI3, title='RSI3') +plot(RSI3[1], title='RSI3[1]') +RSI5 = ta.rsi(close, 5) +plot(RSI5, title='RSI5') +plot(RSI5[1], title='RSI5[1]') +RSI7 = ta.rsi(close, 7) +plot(RSI7, title='RSI7') +plot(RSI7[1], title='RSI7[1]') +RSI9 = ta.rsi(close, 9) +plot(RSI9, title='RSI9') +plot(RSI9[1], title='RSI9[1]') +RSI21 = ta.rsi(close, 21) +plot(RSI21, title='RSI21') +plot(RSI21[1], title='RSI21[1]') + +// study(title="Average True Range", shorttitle="ATR", overlay=false) +plot(ta.rma(ta.tr(true), 14), title='ATR') + +// study("Average Directional Index", shorttitle="ADX") +dirmov(len) => + up = ta.change(high) + down = -ta.change(low) + truerange = ta.rma(ta.tr, len) + plus = fixnan(100 * ta.rma(up > down and up > 0 ? up : 0, len) / truerange) + minus = fixnan(100 * ta.rma(down > up and down > 0 ? down : 0, len) / truerange) + [plus, minus] +adx(dilen, adxlen) => + [plus, minus] = dirmov(dilen) + sum = plus + minus + adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen) + [adx, plus, minus] +[adxValue, adxPlus, adxMinus] = adx(14, 14) +plot(adxValue, title='ADX') +plot(adxPlus, title='ADX+DI') +plot(adxMinus, title='ADX-DI') +plot(adxPlus[1], title='ADX+DI[1]') +plot(adxMinus[1], title='ADX-DI[1]') +[adxValue9, adxPlus9, adxMinus9] = adx(9, 9) +plot(adxValue9, title='ADX_9') +plot(adxPlus9, title='ADX+DI_9') +plot(adxMinus9, title='ADX-DI_9') +plot(adxPlus9[1], title='ADX+DI_9[1]') +plot(adxMinus9[1], title='ADX-DI_9[1]') +[adxValue20, adxPlus20, adxMinus20] = adx(20, 20) +plot(adxValue20, title='ADX_20') +plot(adxPlus20, title='ADX+DI_20') +plot(adxMinus20, title='ADX-DI_20') +plot(adxPlus20[1], title='ADX+DI_20[1]') +plot(adxMinus20[1], title='ADX-DI_20[1]') +[adxValue50, adxPlus50, adxMinus50] = adx(50, 50) +plot(adxValue50, title='ADX_50') +plot(adxPlus50, title='ADX+DI_50') +plot(adxMinus50, title='ADX-DI_50') +plot(adxPlus50[1], title='ADX+DI_50[1]') +plot(adxMinus50[1], title='ADX-DI_50[1]') +[adxValue100, adxPlus100, adxMinus100] = adx(100, 100) +plot(adxValue100, title='ADX_100') +plot(adxPlus100, title='ADX+DI_100') +plot(adxMinus100, title='ADX-DI_100') +plot(adxPlus100[1], title='ADX+DI_100[1]') +plot(adxMinus100[1], title='ADX-DI_100[1]') + +// study(shorttitle="BB", title="Bollinger Bands", overlay=true) +devBB20 = 2 * ta.stdev(close, 20) +upperBB20 = SMA20 + devBB20 +lowerBB20 = SMA20 - devBB20 +plot(SMA20, title='BB.basis') +plot(upperBB20, title='BB.upper') +plot(lowerBB20, title='BB.lower') +devBB50 = 2 * ta.stdev(close, 50) +upperBB50 = SMA50 + devBB50 +lowerBB50 = SMA50 - devBB50 +plot(SMA50, title='BB.basis_50') +plot(upperBB50, title='BB.upper_50') +plot(lowerBB50, title='BB.lower_50') + +// study(title="Moving Average Convergence/Divergence", shorttitle="MACD") +fastMAMACD = EMA12 +slowMAMACD = ta.ema(close, 26) +macdMACD = fastMAMACD - slowMAMACD +signalMACD = ta.ema(macdMACD, 9) +histMACD = macdMACD - signalMACD +plot(histMACD, title='MACD.hist') +plot(macdMACD, title='MACD.macd') +plot(signalMACD, title='MACD.signal') + +//study(title="Momentum", shorttitle="Mom") +Mom = close - close[10] +plot(Mom, title='Mom') +plot(Mom[1], title='Mom[1]') +Mom14 = close - close[14] +plot(Mom14, title='Mom_14') +plot(Mom14[1], title='Mom_14[1]') + // study(title="Stochastic", shorttitle="Stoch") lengthStoch = 14 smoothKStoch = 3 smoothDStoch = 3 -kStoch = ta.sma(ta.stoch(close, high, low, lengthStoch), smoothKStoch) +kStoch_14_1_3 = ta.stoch(close, high, low, lengthStoch) +kStoch = ta.sma(kStoch_14_1_3, smoothKStoch) dStoch = ta.sma(kStoch, smoothDStoch) plot(kStoch, title='Stoch.K') plot(dStoch, title='Stoch.D') plot(kStoch[1], title='Stoch.K[1]') plot(dStoch[1], title='Stoch.D[1]') -lengthStoch := 14 -smoothKStoch := 1 -smoothDStoch := 3 -kStoch_14_1_3 = ta.sma(ta.stoch(close, high, low, lengthStoch), smoothKStoch) dStoch_14_1_3 = ta.sma(kStoch_14_1_3, smoothDStoch) plot(kStoch_14_1_3, title='Stoch.K_14_1_3') plot(dStoch_14_1_3, title='Stoch.D_14_1_3') @@ -222,7 +215,7 @@ plot(dStoch_14_1_3[1], title='Stoch.D[1]_14_1_3') // average volume AvgVol = ta.sma(volume, 10) plot(AvgVol, title='average_volume_10d_calc') -plot(volume / ta.sma(volume[1], 10), title='relative_volume_10d_calc') +plot(volume / AvgVol[1], title='relative_volume_10d_calc') plot(ta.sma(volume, 30), title='average_volume_30d_calc') plot(ta.sma(volume, 60), title='average_volume_60d_calc') plot(ta.sma(volume, 90), title='average_volume_90d_calc') @@ -262,11 +255,9 @@ plot(100 * (ta.lowestbars(low, Aroon_length + 1) + Aroon_length) / Aroon_length, plot(volume * close * syminfo.pointvalue, title='Value.Traded') // study("My Keltner Channels", overlay=true) -lengthKltChnl = 20 multKltChnl = 2 -maKltChnl = ta.ema(close, lengthKltChnl) -atrlength = input(10, "ATR Length") -rangemaKltChnl = ta.atr(atrlength) +maKltChnl = EMA20 +rangemaKltChnl = ta.atr(10) plot(maKltChnl + rangemaKltChnl * multKltChnl, title='KltChnl.upper') plot(maKltChnl - rangemaKltChnl * multKltChnl, title='KltChnl.lower') plot(maKltChnl, title='KltChnl.basis') @@ -285,26 +276,23 @@ accdistRaw = not(close == low and close == high or high == low) ? (close - low - plot(math.sum(accdistRaw, lenCMF) / math.sum(volume, lenCMF), title='ChaikinMoneyFlow') // Stochastic RSI -StochRSI() => - rsi1 = ta.rsi(close, 14) - K = ta.sma(ta.stoch(rsi1, rsi1, rsi1, 14), 3) - D = ta.sma(K, 3) - [K, D] -[Stoch_RSI_K, Stoch_RSI_D] = StochRSI() +Stoch_RSI_K = ta.sma(ta.stoch(RSI, RSI, RSI, 14), 3) +Stoch_RSI_D = ta.sma(Stoch_RSI_K, 3) plot(Stoch_RSI_K, title='Stoch.RSI.K') plot(Stoch_RSI_D, title='Stoch.RSI.D') // Williams Percent Range WR_period = 14 -WR = (ta.highest(high, WR_period) - close) / (ta.highest(high, WR_period) - ta.lowest(low, WR_period)) * -100 +highest = ta.highest(high, WR_period) +WR = (highest - close) / (highest - ta.lowest(low, WR_period)) * -100 plot(WR, title='W.R') // Rate Of Change (ROC) plot(ta.roc(close, 9), title='ROC') // Bull / Bear Power -BullPower = high - ta.ema(close, 13) -BearPower = low - ta.ema(close, 13) +BullPower = high - EMA13 +BearPower = low - EMA13 plot(BullPower + BearPower, title='BBPower') // Ultimate Oscillator @@ -314,9 +302,10 @@ uo(ShortLen, MiddlLen, LongLen) => Value1 = math.sum(ta.tr, ShortLen) Value2 = math.sum(ta.tr, MiddlLen) Value3 = math.sum(ta.tr, LongLen) - Value4 = math.sum(close - tl(), ShortLen) - Value5 = math.sum(close - tl(), MiddlLen) - Value6 = math.sum(close - tl(), LongLen) + val = close - tl() + Value4 = math.sum(val, ShortLen) + Value5 = math.sum(val, MiddlLen) + Value6 = math.sum(val, LongLen) UO = float(na) if Value1 != 0 and Value2 != 0 and Value3 != 0 var0 = LongLen / ShortLen @@ -344,24 +333,24 @@ ichimoku_cloud(v1, v2, v3) => IC_displacement = 25 plot(IC_CLine, title='Ichimoku.CLine') plot(IC_BLine, title='Ichimoku.BLine') -plot(IC_Lead1[IC_displacement], offset=IC_displacement, title='Ichimoku.Lead1') -plot(IC_Lead2[IC_displacement], offset=IC_displacement, title='Ichimoku.Lead2') +plot(IC_Lead1[IC_displacement], title='Ichimoku.Lead1') +plot(IC_Lead2[IC_displacement], title='Ichimoku.Lead2') [IC_CLine_20_60_120_30, IC_BLine_20_60_120_30, IC_Lead1_20_60_120_30, IC_Lead2_20_60_120_30] = ichimoku_cloud(20, 60, 120) IC_displacement := 30 plot(IC_CLine_20_60_120_30, title='Ichimoku.CLine_20_60_120_30') plot(IC_BLine_20_60_120_30, title='Ichimoku.BLine_20_60_120_30') -plot(IC_Lead1_20_60_120_30[IC_displacement], offset=IC_displacement, title='Ichimoku.Lead1_20_60_120_30') -plot(IC_Lead2_20_60_120_30[IC_displacement], offset=IC_displacement, title='Ichimoku.Lead2_20_60_120_30') +plot(IC_Lead1_20_60_120_30[IC_displacement], title='Ichimoku.Lead1_20_60_120_30') +plot(IC_Lead2_20_60_120_30[IC_displacement], title='Ichimoku.Lead2_20_60_120_30') // Volume Weighted Moving Average (VWMA) VWMA = ta.vwma(close, 20) plot(VWMA, title='VWMA') // Average Day Range -plot(ta.sma(high, 14) - ta.sma(low, 14), title='ADR') +plot(ta.sma(high - low, 14), title='ADR') //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -PriceAvg = ta.ema(close, 50) +PriceAvg = EMA50 DownTrend = close < PriceAvg UpTrend = close > PriceAvg @@ -497,7 +486,7 @@ recTotal := recTotalC > 0 ? recTotal / recTotalC : na plot(recTotal, title='Recommend.All') //////////////////////////////////// Candle Patterns //////////////////////////////////// -C_PriceAvg = ta.sma(close, 50) +C_PriceAvg = SMA50 C_Len = 14 C_Factor = 2.0 C_ShadowPercent = 5 diff --git a/links/etf.pine.link b/links/etf.pine.link index deb457326..5440f3a34 100644 --- a/links/etf.pine.link +++ b/links/etf.pine.link @@ -1,8 +1,3 @@ -makeFundFlowsTicker() => __financial_tickerid(syminfo.tickerid, "FUND_FLOWS", "D") -makeNavTicker() => __financial_tickerid(syminfo.tickerid, "NAV", "D") -makeNavAllTicker() => __financial_tickerid(syminfo.tickerid, "NAV_ALL", "D") -makeAumTicker() => __financial_tickerid(syminfo.tickerid, "AUM", "D") - //oneYear = 365 sum(daysBack)=> @@ -20,49 +15,19 @@ sum(daysBack)=> sum sumYTD()=> - max_bars_back(time, 2*oneYear) - max_bars_back(close, 2*oneYear) - var firstBar = time + var startYear = year(time, syminfo.timezone) - if year(timenow, syminfo.timezone) == year(firstBar, syminfo.timezone) + if year(timenow, syminfo.timezone) == startYear na else - sum = 0. - for i = 0 to bar_index - if year(time[i], syminfo.timezone) < year - break - sum += close[i] + var sum = 0. + if year(time[1], syminfo.timezone) < year(time, syminfo.timezone) + sum := 0 + sum += close sum - -fund_flows1M = request.security(makeFundFlowsTicker(), getFundTF(), sum(oneMonth), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -fund_flows3M = request.security(makeFundFlowsTicker(), getFundTF(), sum(threeMonths), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -fund_flows1Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(oneYear), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -fund_flows3Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(threeYears), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -fund_flows5Y = request.security(makeFundFlowsTicker(), getFundTF(), sum(fiveYears), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -fund_flowsYTD = request.security(makeFundFlowsTicker(), getFundTF(), sumYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) - -navPerf1M = request.security(makeNavTicker(), getFundTF(), fundPerf(oneMonth, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navPerf3M = request.security(makeNavTicker(), getFundTF(), fundPerf(threeMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navPerf1Y = request.security(makeNavTicker(), getFundTF(), fundPerf(oneYear, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navPerf3Y = request.security(makeNavTicker(), getFundTF(), fundPerf(threeYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navPerf5Y = request.security(makeNavTicker(), getFundTF(), fundPerf(fiveYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navPerfYTD = request.security(makeNavTicker(), getFundTF(), fundPerfYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) - -aumPerf1M = request.security(makeAumTicker(), getFundTF(), fundPerf(oneMonth, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -aumPerf3M = request.security(makeAumTicker(), getFundTF(), fundPerf(threeMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -aumPerf1Y = request.security(makeAumTicker(), getFundTF(), fundPerf(oneYear, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -aumPerf3Y = request.security(makeAumTicker(), getFundTF(), fundPerf(threeYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -aumPerf5Y = request.security(makeAumTicker(), getFundTF(), fundPerf(fiveYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -aumPerfYTD = request.security(makeAumTicker(), getFundTF(), fundPerfYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) - -navTotalReturn1M = request.security(makeNavAllTicker(), getFundTF(), fundPerf(oneMonth, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturn3M = request.security(makeNavAllTicker(), getFundTF(), fundPerf(threeMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturn6M = request.security(makeNavAllTicker(), getFundTF(), fundPerf(sixMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturn1Y = request.security(makeNavAllTicker(), getFundTF(), fundPerf(oneYear, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturn3Y = request.security(makeNavAllTicker(), getFundTF(), fundPerf(threeYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturn5Y = request.security(makeNavAllTicker(), getFundTF(), fundPerf(fiveYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -navTotalReturnYTD = request.security(makeNavAllTicker(), getFundTF(), fundPerfYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +fundFlowsTicker = __financial_tickerid(syminfo.tickerid, "FUND_FLOWS", "D") +[fund_flows1M, fund_flows3M, fund_flows1Y, fund_flows3Y, fund_flows5Y, fund_flowsYTD] = request.security(fundFlowsTicker, fundTF, [sum(oneMonth), sum(threeMonths), sum(oneYear), sum(threeYears), sum(fiveYears), sumYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(fund_flows1M, title="fund_flows.1M") plot(fund_flows3M, title="fund_flows.3M") @@ -71,13 +36,8 @@ plot(fund_flows3Y, title="fund_flows.3Y") plot(fund_flows5Y, title="fund_flows.5Y") plot(fund_flowsYTD, title="fund_flows.YTD") -plot(navTotalReturn1M, title="nav_total_return.1M") -plot(navTotalReturn3M, title="nav_total_return.3M") -plot(navTotalReturn6M, title="nav_total_return.6M") -plot(navTotalReturn1Y, title="nav_total_return.1Y") -plot(navTotalReturn3Y, title="nav_total_return.3Y") -plot(navTotalReturn5Y, title="nav_total_return.5Y") -plot(navTotalReturnYTD, title="nav_total_return.YTD") +navTicker = __financial_tickerid(syminfo.tickerid, "NAV", "D") +[navPerf1M, navPerf3M, navPerf1Y, navPerf3Y, navPerf5Y, navPerfYTD] = request.security(navTicker, fundTF, [fundPerf(oneMonth, 10), fundPerf(threeMonths, 10), fundPerf(oneYear, 10), fundPerf(threeYears, 10), fundPerf(fiveYears, 10), fundPerfYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(navPerf1M, title="nav_perf.1M") plot(navPerf3M, title="nav_perf.3M") @@ -86,9 +46,23 @@ plot(navPerf3Y, title="nav_perf.3Y") plot(navPerf5Y, title="nav_perf.5Y") plot(navPerfYTD, title="nav_perf.YTD") +aumTicker = __financial_tickerid(syminfo.tickerid, "AUM", "D") +[aumPerf1M, aumPerf3M, aumPerf1Y, aumPerf3Y, aumPerf5Y, aumPerfYTD] = request.security(aumTicker, fundTF, [fundPerf(oneMonth, 10), fundPerf(threeMonths, 10), fundPerf(oneYear, 10), fundPerf(threeYears, 10), fundPerf(fiveYears, 10), fundPerfYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) + plot(aumPerf1M, title="aum_perf.1M") plot(aumPerf3M, title="aum_perf.3M") plot(aumPerf1Y, title="aum_perf.1Y") plot(aumPerf3Y, title="aum_perf.3Y") plot(aumPerf5Y, title="aum_perf.5Y") -plot(aumPerfYTD, title="aum_perf.YTD") \ No newline at end of file +plot(aumPerfYTD, title="aum_perf.YTD") + +navAllTicker = __financial_tickerid(syminfo.tickerid, "NAV_ALL", "D") +[navTotalReturn1M, navTotalReturn3M, navTotalReturn6M, navTotalReturn1Y, navTotalReturn3Y, navTotalReturn5Y, navTotalReturnYTD] = request.security(navAllTicker, fundTF, [fundPerf(oneMonth, 10), fundPerf(threeMonths, 10), fundPerf(sixMonths, 10), fundPerf(oneYear, 10), fundPerf(threeYears, 10), fundPerf(fiveYears, 10), fundPerfYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) + +plot(navTotalReturn1M, title="nav_total_return.1M") +plot(navTotalReturn3M, title="nav_total_return.3M") +plot(navTotalReturn6M, title="nav_total_return.6M") +plot(navTotalReturn1Y, title="nav_total_return.1Y") +plot(navTotalReturn3Y, title="nav_total_return.3Y") +plot(navTotalReturn5Y, title="nav_total_return.5Y") +plot(navTotalReturnYTD, title="nav_total_return.YTD") diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index f9de8fa9e..33d59d0e3 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -1,33 +1,29 @@ // high & low +var ath = high +var ath_date = time/1000 +var low_after_ath = low +if high > ath + ath := high + ath_date := time/1000 + low_after_ath := low +if low < low_after_ath + low_after_ath := low -ath_and_date_and_lowest_after_ath(_x, _xt, _y) => - ath = _x - ath_date = _xt/1000 - low_after_ath = _y - if nz(ath[1], ath) > ath - ath := nz(ath[1], ath) - ath_date := ath_date[1] - if low_after_ath[1] < low_after_ath - low_after_ath := low_after_ath[1] - [ath, ath_date, low_after_ath] -[allTimeHigh, allTimeHighDate, lowAfterAllTimeHigh] = ath_and_date_and_lowest_after_ath(high, time, low) -plot(allTimeHigh, title='High.All') -plot(allTimeHighDate, title='High.All.Date') -plot(allTimeHigh, title='High.All.Calc') -plot(allTimeHighDate, title='High.All.Calc.Date') -plot(lowAfterAllTimeHigh, title='Low.After.High.All') -atl_and_date(_x, _xt) => - atl = _x - atl_date = _xt/1000 - if nz(atl[1], atl) < atl - atl := nz(atl[1], atl) - atl_date := atl_date[1] - [atl, atl_date] -[allTimeLow, allTimeLowDate] = atl_and_date(low, time) -plot(allTimeLow, title='Low.All') -plot(allTimeLowDate, title='Low.All.Date') -plot(allTimeLow, title='Low.All.Calc') -plot(allTimeLowDate, title='Low.All.Calc.Date') +plot(ath, title='High.All') +plot(ath_date, title='High.All.Date') +plot(ath, title='High.All.Calc') +plot(ath_date, title='High.All.Calc.Date') +plot(low_after_ath, title='Low.After.High.All') + +var atl = low +var atl_date = time/1000 +if low < atl + atl := low + atl_date := time/1000 +plot(atl, title='Low.All') +plot(atl_date, title='Low.All.Date') +plot(atl, title='Low.All.Calc') +plot(atl_date, title='Low.All.Calc.Date') var firstOpen = open plot(firstOpen, title='Open.All.Calc') custom_lowest_and_date(_x, _xt, len, maxbarsback) => @@ -168,9 +164,5 @@ plot(volatility(countOfBars1MonthAgoThisBar), title='Volatility.M') plot(ta.tr(true) * 100 / math.abs(low), title='Volatility.D') // first bar's timestamp in pine history -first_bar_time(_t) => - var float fb = na - if na(fb) - fb := _t/1000 - fb -plot(first_bar_time(time), title='first_bar_time') \ No newline at end of file +var first_bar_time = time / 1000 +plot(first_bar_time, title='first_bar_time') \ No newline at end of file diff --git a/links/performance_market_cap.pine.link b/links/performance_market_cap.pine.link index cbe5095c5..abd239e9e 100644 --- a/links/performance_market_cap.pine.link +++ b/links/performance_market_cap.pine.link @@ -1,6 +1,5 @@ // Market cap performance for stocks -makeMCTicker() => __financial_tickerid(syminfo.tickerid, "MARKET_CAP_BASIC", "D") -getFundTF() => timeframe.isintraday ? "1D" : timeframe.period +var fundTF = timeframe.isintraday ? "D" : timeframe.period oneWeek = 7 oneMonth = 30 @@ -13,10 +12,9 @@ msInOneDay = 86400000 startFrom(daysBack)=> time_close("D", syminfo.session, syminfo.timezone) - daysBack * msInOneDay -fundPerf(daysBack, perfMaxDaysForValid)=> - +fundPerf(daysBack, perfMaxDaysForValid) => startT = startFrom(daysBack) - if time[0] < startT + if time < startT na else lastI = 0 @@ -33,7 +31,7 @@ fundPerf(daysBack, perfMaxDaysForValid)=> perf -fundPerfYTD()=> +fundPerfYTD() => max_bars_back(time, 2*oneYear) max_bars_back(close, 2*oneYear) @@ -50,24 +48,14 @@ fundPerfYTD()=> perf +MCTicker = __financial_tickerid(syminfo.tickerid, "MARKET_CAP_BASIC", "D") // Perf.<1W | 1M | 3M | 6M | Y | 5Y | YTD> -MCPerf1W = request.security(makeMCTicker(), getFundTF(), fundPerf(oneWeek, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -plot(MCPerf1W, title="Perf.1W.MarketCap") +[MCPerf1W, MCPerf1M, MCPerf3M, MCPerf6M, MCPerf1Y, MCPerf5Y, MCPerfYTD] = request.security(MCTicker, fundTF, [fundPerf(oneWeek, 10), fundPerf(oneMonth, 10), fundPerf(threeMonths, 10), fundPerf(sixMonths, 10), fundPerf(oneYear, 10), fundPerf(fiveYears, 10), fundPerfYTD()], ignore_invalid_symbol=true, gaps=barmerge.gaps_off) -MCPerf1M = request.security(makeMCTicker(), getFundTF(), fundPerf(oneMonth, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) +plot(MCPerf1W, title="Perf.1W.MarketCap") plot(MCPerf1M, title="Perf.1M.MarketCap") - -MCPerf3M = request.security(makeMCTicker(), getFundTF(), fundPerf(threeMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(MCPerf3M, title="Perf.3M.MarketCap") - -MCPerf6M = request.security(makeMCTicker(), getFundTF(), fundPerf(sixMonths, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(MCPerf6M, title="Perf.6M.MarketCap") - -MCPerf1Y = request.security(makeMCTicker(), getFundTF(), fundPerf(oneYear, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(MCPerf1Y, title="Perf.1Y.MarketCap") - -MCPerf5Y = request.security(makeMCTicker(), getFundTF(), fundPerf(fiveYears, 10), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(MCPerf5Y, title="Perf.5Y.MarketCap") - -MCPerfYTD = request.security(makeMCTicker(), getFundTF(), fundPerfYTD(), ignore_invalid_symbol=true, gaps=barmerge.gaps_off) plot(MCPerfYTD, title="Perf.YTD.MarketCap") \ No newline at end of file diff --git a/links/pivot_points.pine.link b/links/pivot_points.pine.link index 0f1d3bcbf..97cd4246f 100644 --- a/links/pivot_points.pine.link +++ b/links/pivot_points.pine.link @@ -1,29 +1,17 @@ // Pivot Points -pivotX_open = float(na) -pivotX_open := nz(pivotX_open[1], open) -pivotX_high = float(na) -pivotX_high := nz(pivotX_high[1], high) -pivotX_low = float(na) -pivotX_low := nz(pivotX_low[1], low) -pivotX_prev_open = float(na) -pivotX_prev_open := nz(pivotX_prev_open[1]) -pivotX_prev_high = float(na) -pivotX_prev_high := nz(pivotX_prev_high[1]) -pivotX_prev_low = float(na) -pivotX_prev_low := nz(pivotX_prev_low[1]) -pivotX_prev_close = float(na) -pivotX_prev_close := nz(pivotX_prev_close[1]) -pivotXGetCurTF() => - result = '1M' - if timeframe.isintraday - result := timeframe.multiplier <= 15 ? '1D' : '1W' - else - if timeframe.isweekly or timeframe.ismonthly - result := '12M' - result -fNeg(value) => - value <= 0 ? na : value -pivotX_Interval = time(pivotXGetCurTF()) +var pivotXCurTF = if timeframe.isintraday + timeframe.multiplier <= 15 ? '1D' : '1W' +else + timeframe.isweekly or timeframe.ismonthly ? '12M' : '1M' + +var pivotX_open = open +var pivotX_high = high +var pivotX_low = low +var pivotX_prev_open = .0 +var pivotX_prev_high = .0 +var pivotX_prev_low = .0 +var pivotX_prev_close = .0 +pivotX_Interval = time(pivotXCurTF) if pivotX_Interval != pivotX_Interval[1] pivotX_prev_open := pivotX_open pivotX_prev_close := close[1] @@ -35,4 +23,3 @@ if pivotX_Interval != pivotX_Interval[1] else pivotX_high := math.max(pivotX_high, high) pivotX_low := math.min(pivotX_low, low) - diff --git a/links/pivot_points_2.pine.link b/links/pivot_points_2.pine.link index 96fb419fe..1ee747e0e 100644 --- a/links/pivot_points_2.pine.link +++ b/links/pivot_points_2.pine.link @@ -1,34 +1,18 @@ // Pivot Points -pivotX_open = float(na) -pivotX_open := nz(pivotX_open[1], open) -pivotX_high = float(na) -pivotX_high := nz(pivotX_high[1], high) -pivotX_low = float(na) -pivotX_low := nz(pivotX_low[1], low) -pivotX_prev_open = float(na) -pivotX_prev_open := nz(pivotX_prev_open[1]) -pivotX_prev_high = float(na) -pivotX_prev_high := nz(pivotX_prev_high[1]) -pivotX_prev_low = float(na) -pivotX_prev_low := nz(pivotX_prev_low[1]) -pivotX_prev_close = float(na) -pivotX_prev_close := nz(pivotX_prev_close[1]) -pivotXGetCurTF() => - result = '1M' - if timeframe.isintraday - result := timeframe.multiplier <= 15 ? '1D' : '1W' - else - if timeframe.isweekly or timeframe.ismonthly - result := '12M' - result -fNeg(value) => - value <= 0 ? na : value -pp_resolution = pivotXGetCurTF() -[sec_open, sec_high, sec_low] = request.security(syminfo.tickerid, pp_resolution, [open, high, low], lookahead=barmerge.lookahead_on) -pivotX_open := sec_open[1] -pivotX_high := sec_high[1] -pivotX_low := sec_low[1] -pivotX_Interval = time(pp_resolution) +var pivotXCurTF = if timeframe.isintraday + timeframe.multiplier <= 15 ? '1D' : '1W' +else + timeframe.isweekly or timeframe.ismonthly ? '12M' : '1M' + +[sec_open, sec_high, sec_low] = request.security(syminfo.tickerid, pivotXCurTF, [open, high, low], lookahead=barmerge.lookahead_on) +pivotX_open = sec_open[1] +pivotX_high = sec_high[1] +pivotX_low = sec_low[1] +var pivotX_prev_open = .0 +var pivotX_prev_high = .0 +var pivotX_prev_low = .0 +var pivotX_prev_close = .0 +pivotX_Interval = time(pivotXCurTF) if pivotX_Interval != pivotX_Interval[1] pivotX_prev_open := pivotX_open pivotX_prev_close := close[1] @@ -40,4 +24,3 @@ if pivotX_Interval != pivotX_Interval[1] else pivotX_high := math.max(pivotX_high, high) pivotX_low := math.min(pivotX_low, low) - diff --git a/links/pivot_points_plots.pine.link b/links/pivot_points_plots.pine.link index 28ce7fb9c..659de935f 100644 --- a/links/pivot_points_plots.pine.link +++ b/links/pivot_points_plots.pine.link @@ -1,3 +1,6 @@ +fNeg(value) => + value <= 0 ? na : value + // Classic pivotX_Median = (pivotX_prev_high + pivotX_prev_low + pivotX_prev_close) / 3 plot(fNeg(pivotX_Median), title='Pivot.M.Classic.Middle') diff --git a/links/volume_v5.pine.link b/links/volume_v5.pine.link index db43f1854..445d6d582 100644 --- a/links/volume_v5.pine.link +++ b/links/volume_v5.pine.link @@ -1,21 +1,15 @@ //////////////////////////////////// study("relative volume v5") /////////////////////////////////////////////////////// rVolAvgDays = 10 -rVolBarDurationMS() => - timeframe.multiplier * 60 * 1000 -rVolDayInBars() => - 24 * 60 / timeframe.multiplier +var rVolBarDurationMS = timeframe.multiplier * 60 * 1000 +var rVolDayInBars = 24 * 60 / timeframe.multiplier +var maxDetailedBars = (rVolAvgDays + 1) * rVolDayInBars rVolCalcSumVol(offset, daysBack, time1d) => - vol = volume - tm = time - result = 0. + result = volume[maxDetailedBars] * time1d[maxDetailedBars] * 0 // expected intraday only! - maxDetailedBars = (rVolAvgDays + 1) * rVolDayInBars() - maxDetailedUnixTime = maxDetailedBars * rVolBarDurationMS() - if bar_index == 0 // force bars back detector for needed depth - result := tm[maxDetailedBars] - time1d[maxDetailedBars] > vol[maxDetailedBars] ? 0 : 0 + maxDetailedUnixTime = maxDetailedBars * rVolBarDurationMS startCalcBound = timenow - maxDetailedUnixTime if time >= startCalcBound // skip unnecessary calculations in deep history - cur1DTime = time1d[0] + cur1DTime = time1d cur1DTimeChanged = 0 curTimeOffset = -1 cumVolume = 0. @@ -33,7 +27,7 @@ rVolCalcSumVol(offset, daysBack, time1d) => curTimeOffset := i - 1 if accumVolume for j = math.max(prevStartDayTime, startDayTime - curTimeOffset) to startDayTime by 1 - cumVolume += vol[j] + cumVolume += volume[j] if daysBack == cur1DTimeChanged break result := cumVolume @@ -42,7 +36,7 @@ calcHolesPerDayPercent(minBarsPerSession) => holes = 0 days = 0 bars = 0 - for i = 0 to 5 * rVolDayInBars() by 1 // try to move back for 5 days + for i = 0 to 5 * rVolDayInBars by 1 // try to move back for 5 days // skip current day, analyse previous days only if dayofmonth[i] != dayofmonth[i + 1] if bars < minBarsPerSession and days > 0 @@ -70,12 +64,12 @@ calcRVolume() => volNow = rVolCalcSumVol(0, 1, time1d) if barstate.isrealtime and timenow - time1d < 24 * 60 * 60 * 1000 // adjustment for RT bar - x_y = (timenow - time1d) / rVolBarDurationMS() - z = 1 - (timenow - time) / rVolBarDurationMS() + x_y = (timenow - time1d) / rVolBarDurationMS + z = 1 - (timenow - time) / rVolBarDurationMS koeff = (x_y + z) / x_y volNow *= koeff volNow / (rVolCalcSumVol(1, rVolAvgDays + 1, time1d) / rVolAvgDays) realtiveVolume10d = calcRVolume() if calcMaxHolesPerDayPercent() > 35 realtiveVolume10d := na -plot(realtiveVolume10d, title='relative_volume_intraday', linewidth=2) \ No newline at end of file +plot(realtiveVolume10d, title='relative_volume_intraday', linewidth=2) diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 6b043bf8c..92bf4ffc0 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~#1/1000~#2~v:if(nz($0@1,$0)\u003e$0){$0=nz($0@1,$0)~$1=$1@1~v:if($2@1\u003c$2){$2=$2@1~}~}~$0!$1!$2;#0~#1/1000~v:if(nz($0@1,$0)\u003c$0){$0=nz($0@1,$0)~$1=$1@1~}~$0!$1;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};v^na():f~v:if(na($0):b){$0=#0/1000~}~$0;if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$18(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$18(#0,$0);close~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#1)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~timeV5($9():t)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($308)~$10($308*2-$304)~$10($308*2-$303)~$10($308+1*($303-$304))~$10($308-1*($303-$304))~$10($308+2*($303-$304))~$10($308-2*($303-$304))~$10($308)~$10($308+0.382*($303-$304))~$10($308-0.382*($303-$304))~$10($308+0.618*($303-$304))~$10($308-0.618*($303-$304))~$10($308+1*($303-$304))~$10($308-1*($303-$304))~($303+$304+$299*2)/4~$10($323)~$10($323*2-$304)~$10($323*2-$303)~$10($323+1*($303-$304))~$10($323-1*($303-$304))~$10($303+2*($323-$304))~$10($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$10($331/4)~$10($331/2-$304)~$10($331/2-$303)~$10($308)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~s3:$11(high,time,low):s3~s2:$12(low,time):s2~v^open~timenow-157766400000~$15(time,$350,i:1826)~timenow-94608000000~$15(time,$352,i:1095)~timenow-31449600000~$15(time,$354,i:364)~s2:$13(low,time,$355,i:364):s2~s2:$14(high,time,$355,i:364):s2~timenow-15552000000~$15(time,$360,i:180)~s2:$13(low,time,$361,i:180):s2~s2:$14(high,time,$361,i:180):s2~timenow-7776000000~$15(time,$366,i:90)~s2:$13(low,time,$367,i:90):s2~s2:$14(high,time,$367,i:90):s2~time-2592000000~timenow-2592000000~$15(time,$373,i:30)~$15(time,$372,i:30)~s2:$13(low,time,$374,i:30):s2~s2:$14(high,time,$374,i:30):s2~timenow-604800000~time-604800000~$15(time,$380,i:7)~$15(time,$381,i:7)~s2:$13(low,time,$382,i:7):s2~s2:$14(high,time,$382,i:7):s2~$16($383)~$16($375)~tr(1.0)*100/abs(low)~$17(time)~timenow-31536000000~$15(time,$392,i:365)~$20(close,open)~((close-open@4)/open@4)*100~$19(close,open,$382,i:7)~$19(close,open,$374,i:30)~$19(close,open,$367,i:90)~$19(close,open,$361,i:180)~$19(close,open,$393,i:365)~$19(close,open,$353,i:1095)~$19(close,open,$351,i:1826)~time_tradingday/1000~#0~$404~$405-$405@1~na():f~v:if(!($405@1\u003c0)\u0026\u0026!($405\u003c0)){$407=($406/$405@1)*100~}~$407~timenow-86400000~$15(time,$410,i:1)~close~v:if(n==0){$412=$412+$412@365*0~}~$412@$411~$412@$374~$412@$393~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$344!$345!$346!$347!$348!$347!$348!$349!$356!$357!$358!$359!$362!$363!$364!$365!$368!$369!$370!$371!$376!$377!$378!$379!$384!$386!$388!$389!$390!$391!$395!$396!$397!$398!$399!$400!$401!$402!$394!$403!$405!$406!$409!$414!$415!$416!$151!$151!$158!$158;i:input('in_0',10)~t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$24):t~i:na():f~sym($25,period,period,0,0,1,'NONE',0,0,$26)|$21()|s265:$22($28,i:$23):s265~$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$154!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166\u003c\u003c$291!$167\u003c\u003c$292!$168!$169!$170\u003c\u003c$293!$171\u003c\u003c$294!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$245!$246!$245!$246!$247!$250!$251!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { @@ -1075,15 +1075,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -1127,7 +1127,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1171,7 +1171,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1215,7 +1215,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1259,7 +1259,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1303,7 +1303,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1347,7 +1347,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1391,7 +1391,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1435,7 +1435,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1479,7 +1479,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1523,11 +1523,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1571,7 +1571,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1615,7 +1615,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1659,7 +1659,7 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_230": { @@ -1703,7 +1703,7 @@ "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_240": { @@ -1747,7 +1747,7 @@ "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_250": { @@ -1791,7 +1791,7 @@ "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_260": { @@ -1799,311 +1799,311 @@ "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.bonds.pine b/scanner.data.bonds.pine index 38138b87d..081da13f1 100644 --- a/scanner.data.bonds.pine +++ b/scanner.data.bonds.pine @@ -6,4 +6,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/scanner.data.coin.json b/scanner.data.coin.json index fb9c27cc5..3e1818a66 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~#1/1000~#2~v:if(nz($0@1,$0)\u003e$0){$0=nz($0@1,$0)~$1=$1@1~v:if($2@1\u003c$2){$2=$2@1~}~}~$0!$1!$2;#0~#1/1000~v:if(nz($0@1,$0)\u003c$0){$0=nz($0@1,$0)~$1=$1@1~}~$0!$1;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};v^na():f~v:if(na($0):b){$0=#0/1000~}~$0;if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$18(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$18(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$15(time,$0,i:7)~$19(close,open,$1,i:7)~$2;timenow-2592000000~$15(time,$0,i:30)~$19(close,open,$1,i:30)~$2;timenow-7776000000~$15(time,$0,i:90)~$19(close,open,$1,i:90)~$2;timenow-15552000000~$15(time,$0,i:180)~$19(close,open,$1,i:180)~$2;timenow-31536000000~$15(time,$0,i:365)~$19(close,open,$1,i:365)~$2;timenow-157766400000~$15(time,$0,i:1826)~$19(close,open,$1,i:1826)~$2;$20(close,open)~$0;open~$0;close~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#10)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~timeV5($9():t)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($308)~$10($308*2-$304)~$10($308*2-$303)~$10($308+1*($303-$304))~$10($308-1*($303-$304))~$10($308+2*($303-$304))~$10($308-2*($303-$304))~$10($308)~$10($308+0.382*($303-$304))~$10($308-0.382*($303-$304))~$10($308+0.618*($303-$304))~$10($308-0.618*($303-$304))~$10($308+1*($303-$304))~$10($308-1*($303-$304))~($303+$304+$299*2)/4~$10($323)~$10($323*2-$304)~$10($323*2-$303)~$10($323+1*($303-$304))~$10($323-1*($303-$304))~$10($303+2*($323-$304))~$10($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$10($331/4)~$10($331/2-$304)~$10($331/2-$303)~$10($308)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~s3:$11(high,time,low):s3~s2:$12(low,time):s2~v^open~timenow-157766400000~$15(time,$350,i:1826)~timenow-31449600000~$15(time,$352,i:364)~s2:$13(low,time,$353,i:364):s2~s2:$14(high,time,$353,i:364):s2~timenow-15552000000~$15(time,$358,i:180)~s2:$13(low,time,$359,i:180):s2~s2:$14(high,time,$359,i:180):s2~timenow-7776000000~$15(time,$364,i:90)~s2:$13(low,time,$365,i:90):s2~s2:$14(high,time,$365,i:90):s2~time-2592000000~timenow-2592000000~$15(time,$371,i:30)~$15(time,$370,i:30)~s2:$13(low,time,$372,i:30):s2~s2:$14(high,time,$372,i:30):s2~timenow-604800000~time-604800000~$15(time,$378,i:7)~$15(time,$379,i:7)~s2:$13(low,time,$380,i:7):s2~s2:$14(high,time,$380,i:7):s2~$16($381)~$16($373)~tr(1.0)*100/abs(low)~$17(time)~((close-open@4)/open@4)*100~#0~$19(close,open,$380,i:7)~#1~$19(close,open,$372,i:30)~#2~$19(close,open,$365,i:90)~#3~$19(close,open,$359,i:180)~#4~timenow-31536000000~$15(time,$400,i:365)~$19(close,open,$401,i:365)~#5~$19(close,open,$351,i:1826)~#6~$20(close,open)~#7~#8~v^$408~#9~na():f~v:if(barstate.islast\u0026\u0026!na($409)\u0026\u0026!na($410)\u0026\u0026$409\u003e0){$411=($410-$409)*100/abs($409)~}~$411~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$344!$345!$346!$347!$348!$347!$348!$349!$354!$355!$356!$357!$360!$361!$362!$363!$366!$367!$368!$369!$374!$375!$376!$377!$382!$384!$386!$387!$388!$389!$390!$391!$392!$393!$394!$395!$396!$397!$398!$399!$402!$403!$404!$405!$406!$407!$409!$410!$413!$414!$151!$151!$158!$158;i:input('in_0',10)~i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$23()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$25()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$26()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$27()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$28()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$33)|$29()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$30()|s269:$31($35,$38,$41,$44,$47,$50,$53,$56,$59,$62,i:$32):s269~$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$188!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200\u003c\u003c$329!$201\u003c\u003c$330!$202!$203!$204\u003c\u003c$331!$205\u003c\u003c$332!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$279!$280!$279!$280!$281!$284!$285!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14(close,open,$1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14(close,open,$1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14(close,open,$1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14(close,open,$1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14(close,open,$1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14(close,open,$1,i:1826)~$2;$15(close,open)~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14(close,open,$392,i:7)~#1~$14(close,open,$384,i:30)~#2~$14(close,open,$377,i:90)~#3~$14(close,open,$371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14(close,open,$413,i:365)~#5~$14(close,open,$363,i:1826)~#6~$15(close,open)~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", "isFake": false }, { @@ -1091,15 +1091,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -1143,7 +1143,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1187,7 +1187,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1231,7 +1231,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1275,7 +1275,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1319,7 +1319,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1363,7 +1363,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1407,7 +1407,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1451,7 +1451,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1495,7 +1495,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1539,11 +1539,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1587,7 +1587,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1631,7 +1631,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1675,7 +1675,7 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_230": { @@ -1719,7 +1719,7 @@ "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_240": { @@ -1763,7 +1763,7 @@ "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_250": { @@ -1807,7 +1807,7 @@ "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_260": { @@ -1831,311 +1831,311 @@ "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 59490f7be..e18cd7987 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~#1/1000~#2~v:if(nz($0@1,$0)\u003e$0){$0=nz($0@1,$0)~$1=$1@1~v:if($2@1\u003c$2){$2=$2@1~}~}~$0!$1!$2;#0~#1/1000~v:if(nz($0@1,$0)\u003c$0){$0=nz($0@1,$0)~$1=$1@1~}~$0!$1;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};v^na():f~v:if(na($0):b){$0=#0/1000~}~$0;if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$18(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$18(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$15(time,$0,i:7)~$19(close,open,$1,i:7)~$2;timenow-2592000000~$15(time,$0,i:30)~$19(close,open,$1,i:30)~$2;timenow-7776000000~$15(time,$0,i:90)~$19(close,open,$1,i:90)~$2;timenow-15552000000~$15(time,$0,i:180)~$19(close,open,$1,i:180)~$2;timenow-31536000000~$15(time,$0,i:365)~$19(close,open,$1,i:365)~$2;timenow-157766400000~$15(time,$0,i:1826)~$19(close,open,$1,i:1826)~$2;$20(close,open)~$0;open~$0;close~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#10)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~timeV5($9():t)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($308)~$10($308*2-$304)~$10($308*2-$303)~$10($308+1*($303-$304))~$10($308-1*($303-$304))~$10($308+2*($303-$304))~$10($308-2*($303-$304))~$10($308)~$10($308+0.382*($303-$304))~$10($308-0.382*($303-$304))~$10($308+0.618*($303-$304))~$10($308-0.618*($303-$304))~$10($308+1*($303-$304))~$10($308-1*($303-$304))~($303+$304+$299*2)/4~$10($323)~$10($323*2-$304)~$10($323*2-$303)~$10($323+1*($303-$304))~$10($323-1*($303-$304))~$10($303+2*($323-$304))~$10($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$10($331/4)~$10($331/2-$304)~$10($331/2-$303)~$10($308)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~s3:$11(high,time,low):s3~s2:$12(low,time):s2~v^open~timenow-157766400000~$15(time,$350,i:1826)~timenow-31449600000~$15(time,$352,i:364)~s2:$13(low,time,$353,i:364):s2~s2:$14(high,time,$353,i:364):s2~timenow-15552000000~$15(time,$358,i:180)~s2:$13(low,time,$359,i:180):s2~s2:$14(high,time,$359,i:180):s2~timenow-7776000000~$15(time,$364,i:90)~s2:$13(low,time,$365,i:90):s2~s2:$14(high,time,$365,i:90):s2~time-2592000000~timenow-2592000000~$15(time,$371,i:30)~$15(time,$370,i:30)~s2:$13(low,time,$372,i:30):s2~s2:$14(high,time,$372,i:30):s2~timenow-604800000~time-604800000~$15(time,$378,i:7)~$15(time,$379,i:7)~s2:$13(low,time,$380,i:7):s2~s2:$14(high,time,$380,i:7):s2~$16($381)~$16($373)~tr(1.0)*100/abs(low)~$17(time)~((close-open@4)/open@4)*100~#0~$19(close,open,$380,i:7)~#1~$19(close,open,$372,i:30)~#2~$19(close,open,$365,i:90)~#3~$19(close,open,$359,i:180)~#4~timenow-31536000000~$15(time,$400,i:365)~$19(close,open,$401,i:365)~#5~$19(close,open,$351,i:1826)~#6~$20(close,open)~#7~#8~v^$408~#9~na():f~v:if(barstate.islast\u0026\u0026!na($409)\u0026\u0026!na($410)\u0026\u0026$409\u003e0){$411=($410-$409)*100/abs($409)~}~$411~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$344!$345!$346!$347!$348!$347!$348!$349!$354!$355!$356!$357!$360!$361!$362!$363!$366!$367!$368!$369!$374!$375!$376!$377!$382!$384!$386!$387!$388!$389!$390!$391!$392!$393!$394!$395!$396!$397!$398!$399!$402!$403!$404!$405!$406!$407!$409!$410!$413!$414!$415!$416!$151!$151!$158!$158;i:input('in_0',10)~i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$23()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$25()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$26()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$27()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$28()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$33)|$29()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$33)|$30()|s271:$31($35,$38,$41,$44,$47,$50,$53,$56,$59,$62,i:$32):s271~$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$188!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200\u003c\u003c$331!$201\u003c\u003c$332!$202!$203!$204\u003c\u003c$333!$205\u003c\u003c$334!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$279!$280!$279!$280!$281!$284!$285!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14(close,open,$1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14(close,open,$1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14(close,open,$1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14(close,open,$1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14(close,open,$1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14(close,open,$1,i:1826)~$2;$15(close,open)~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14(close,open,$392,i:7)~#1~$14(close,open,$384,i:30)~#2~$14(close,open,$377,i:90)~#3~$14(close,open,$371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14(close,open,$413,i:365)~#5~$14(close,open,$363,i:1826)~#6~$15(close,open)~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", "isFake": false }, { @@ -1099,15 +1099,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -1151,7 +1151,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1195,7 +1195,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1239,7 +1239,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1283,7 +1283,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1327,7 +1327,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1371,7 +1371,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1415,7 +1415,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1459,7 +1459,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1503,7 +1503,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1547,11 +1547,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1595,7 +1595,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1639,7 +1639,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1683,7 +1683,7 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_230": { @@ -1727,7 +1727,7 @@ "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_240": { @@ -1771,7 +1771,7 @@ "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_250": { @@ -1815,7 +1815,7 @@ "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_260": { @@ -1847,311 +1847,311 @@ "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 2bbb98c71..c9dd8492f 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~#1/1000~#2~v:if(nz($0@1,$0)\u003e$0){$0=nz($0@1,$0)~$1=$1@1~v:if($2@1\u003c$2){$2=$2@1~}~}~$0!$1!$2;#0~#1/1000~v:if(nz($0@1,$0)\u003c$0){$0=nz($0@1,$0)~$1=$1@1~}~$0!$1;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};v^na():f~v:if(na($0):b){$0=#0/1000~}~$0;if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$18(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$18(#0,$0);close~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#1)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~timeV5($9():t)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($308)~$10($308*2-$304)~$10($308*2-$303)~$10($308+1*($303-$304))~$10($308-1*($303-$304))~$10($308+2*($303-$304))~$10($308-2*($303-$304))~$10($308)~$10($308+0.382*($303-$304))~$10($308-0.382*($303-$304))~$10($308+0.618*($303-$304))~$10($308-0.618*($303-$304))~$10($308+1*($303-$304))~$10($308-1*($303-$304))~($303+$304+$299*2)/4~$10($323)~$10($323*2-$304)~$10($323*2-$303)~$10($323+1*($303-$304))~$10($323-1*($303-$304))~$10($303+2*($323-$304))~$10($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$10($331/4)~$10($331/2-$304)~$10($331/2-$303)~$10($308)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~s3:$11(high,time,low):s3~s2:$12(low,time):s2~v^open~timenow-157766400000~$15(time,$350,i:1826)~timenow-94608000000~$15(time,$352,i:1095)~timenow-31449600000~$15(time,$354,i:364)~s2:$13(low,time,$355,i:364):s2~s2:$14(high,time,$355,i:364):s2~timenow-15552000000~$15(time,$360,i:180)~s2:$13(low,time,$361,i:180):s2~s2:$14(high,time,$361,i:180):s2~timenow-7776000000~$15(time,$366,i:90)~s2:$13(low,time,$367,i:90):s2~s2:$14(high,time,$367,i:90):s2~time-2592000000~timenow-2592000000~$15(time,$373,i:30)~$15(time,$372,i:30)~s2:$13(low,time,$374,i:30):s2~s2:$14(high,time,$374,i:30):s2~timenow-604800000~time-604800000~$15(time,$380,i:7)~$15(time,$381,i:7)~s2:$13(low,time,$382,i:7):s2~s2:$14(high,time,$382,i:7):s2~$16($383)~$16($375)~tr(1.0)*100/abs(low)~$17(time)~timenow-31536000000~$15(time,$392,i:365)~$20(close,open)~((close-open@4)/open@4)*100~$19(close,open,$382,i:7)~$19(close,open,$374,i:30)~$19(close,open,$367,i:90)~$19(close,open,$361,i:180)~$19(close,open,$393,i:365)~$19(close,open,$353,i:1095)~$19(close,open,$351,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$344!$345!$346!$347!$348!$347!$348!$349!$356!$357!$358!$359!$362!$363!$364!$365!$368!$369!$370!$371!$376!$377!$378!$379!$384!$386!$388!$389!$390!$391!$395!$396!$397!$398!$399!$400!$401!$402!$394!$403!$404!$151!$151!$158!$158;i:input('in_0',10)~t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($24,'D','D',0,0,1,'NONE',0,0,$25)|$21()|s260:$22($27,i:$23):s260~$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$153!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165\u003c\u003c$285!$166\u003c\u003c$286!$167!$168!$169\u003c\u003c$287!$170\u003c\u003c$288!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$244!$245!$244!$245!$246!$249!$250!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { @@ -1055,15 +1055,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -1107,7 +1107,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1151,7 +1151,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1195,7 +1195,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1239,7 +1239,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1283,7 +1283,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1327,7 +1327,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1371,7 +1371,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1415,7 +1415,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1459,7 +1459,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1503,11 +1503,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1551,7 +1551,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1595,7 +1595,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1639,7 +1639,7 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_230": { @@ -1683,7 +1683,7 @@ "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_240": { @@ -1727,7 +1727,7 @@ "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_250": { @@ -1755,315 +1755,315 @@ "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.json b/scanner.data.json index 49aef3e83..5f58fd41a 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~#1/1000~#2~v:if(nz($0@1,$0)\u003e$0){$0=nz($0@1,$0)~$1=$1@1~v:if($2@1\u003c$2){$2=$2@1~}~}~$0!$1!$2;#0~#1/1000~v:if(nz($0@1,$0)\u003c$0){$0=nz($0@1,$0)~$1=$1@1~}~$0!$1;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};v^na():f~v:if(na($0):b){$0=#0/1000~}~$0;if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$18(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$18(#0,$0);t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t;t:isintraday?'1D':period;time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$23(i:#0)~if_(time@0\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t;t:__financial_tickerid(tickerid,'NAV','D'):t;t:__financial_tickerid(tickerid,'NAV_ALL','D'):t;t:__financial_tickerid(tickerid,'AUM','D'):t;v^time~$23(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~v^time~if_(year(timenow,syminfo.timezone)==year($2,syminfo.timezone)){na():f}_{0.0~v:for(0;n;1){v:if(year(time@$5,syminfo.timezone)\u003cyear){break~}~$4=$4+close@$5~}~$4};close~$0;$24(i:7,i:10)~$0;$24(i:30,i:10)~$0;$24(i:90,i:10)~$0;$24(i:180,i:10)~$0;$24(i:365,i:10)~$0;$24(i:1825,i:10)~$0;$25()~$0;$30(i:30)~$0;$30(i:90)~$0;$30(i:365)~$0;$30(i:1095)~$0;$30(i:1825)~$0;$31()~$0;$24(i:1095,i:10)~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#33)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~timeV5($9():t)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($308)~$10($308*2-$304)~$10($308*2-$303)~$10($308+1*($303-$304))~$10($308-1*($303-$304))~$10($308+2*($303-$304))~$10($308-2*($303-$304))~$10($308)~$10($308+0.382*($303-$304))~$10($308-0.382*($303-$304))~$10($308+0.618*($303-$304))~$10($308-0.618*($303-$304))~$10($308+1*($303-$304))~$10($308-1*($303-$304))~($303+$304+$299*2)/4~$10($323)~$10($323*2-$304)~$10($323*2-$303)~$10($323+1*($303-$304))~$10($323-1*($303-$304))~$10($303+2*($323-$304))~$10($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$10($331/4)~$10($331/2-$304)~$10($331/2-$303)~$10($308)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~s3:$11(high,time,low):s3~s2:$12(low,time):s2~v^open~timenow-157766400000~$15(time,$350,i:1826)~timenow-94608000000~$15(time,$352,i:1095)~timenow-31449600000~$15(time,$354,i:364)~s2:$13(low,time,$355,i:364):s2~s2:$14(high,time,$355,i:364):s2~timenow-15552000000~$15(time,$360,i:180)~s2:$13(low,time,$361,i:180):s2~s2:$14(high,time,$361,i:180):s2~timenow-7776000000~$15(time,$366,i:90)~s2:$13(low,time,$367,i:90):s2~s2:$14(high,time,$367,i:90):s2~time-2592000000~timenow-2592000000~$15(time,$373,i:30)~$15(time,$372,i:30)~s2:$13(low,time,$374,i:30):s2~s2:$14(high,time,$374,i:30):s2~timenow-604800000~time-604800000~$15(time,$380,i:7)~$15(time,$381,i:7)~s2:$13(low,time,$382,i:7):s2~s2:$14(high,time,$382,i:7):s2~$16($383)~$16($375)~tr(1.0)*100/abs(low)~$17(time)~timenow-31536000000~$15(time,$392,i:365)~$20(close,open)~((close-open@4)/open@4)*100~$19(close,open,$382,i:7)~$19(close,open,$374,i:30)~$19(close,open,$367,i:90)~$19(close,open,$361,i:180)~$19(close,open,$393,i:365)~$19(close,open,$353,i:1095)~$19(close,open,$351,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$344!$345!$346!$347!$348!$347!$348!$349!$356!$357!$358!$359!$362!$363!$364!$365!$368!$369!$370!$371!$376!$377!$378!$379!$384!$386!$388!$389!$390!$391!$395!$396!$397!$398!$399!$400!$401!$402!$394!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$414!$415!$416!$417!$430!$431!$432!$433!$434!$435!$436!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$151!$151!$158!$158;i:input('in_0',10)~t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($49,'D','D',0,0,1,'NONE',0,0,$50)|$32()|t:$21():t~t:$22():t~sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$33()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$34()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$35()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$36()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$37()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$38()|sym($54,$55,$55,0,0,1,'NONE',0,0,$50)|$39()|t:$26():t~sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$40()|sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$41()|sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$42()|sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$43()|sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$44()|sym($77,$55,$55,0,0,1,'NONE',0,0,$50)|$45()|t:$27():t~sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$34()|sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$35()|sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$37()|sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$46()|sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$38()|sym($96,$55,$55,0,0,1,'NONE',0,0,$50)|$39()|t:$29():t~sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$34()|sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$35()|sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$37()|sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$46()|sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$38()|sym($115,$55,$55,0,0,1,'NONE',0,0,$50)|$39()|t:$28():t~sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$34()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$35()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$36()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$37()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$46()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$38()|sym($134,$55,$55,0,0,1,'NONE',0,0,$50)|$39()|s292:$47($52,$57,$60,$63,$66,$69,$72,$75,$79,$82,$85,$88,$91,$94,$98,$101,$104,$107,$110,$113,$117,$120,$123,$126,$129,$132,$136,$139,$142,$145,$148,$151,$154,i:$48):s292~$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$280!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292\u003c\u003c$444!$293\u003c\u003c$445!$294!$295!$296\u003c\u003c$446!$297\u003c\u003c$447!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$371!$372!$371!$372!$373!$376!$377!$376!$377!$378!$379!$380!$381!$382!$383!$384!$385!$386!$387!$388!$389!$390!$391!$392!$393!$394!$395!$396!$397!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { @@ -1183,15 +1183,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -1235,7 +1235,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1279,7 +1279,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1323,7 +1323,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1367,7 +1367,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1411,7 +1411,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1455,7 +1455,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1499,7 +1499,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1543,7 +1543,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1587,7 +1587,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1631,11 +1631,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1679,7 +1679,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1723,7 +1723,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1767,7 +1767,7 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_230": { @@ -1811,7 +1811,7 @@ "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_240": { @@ -1855,7 +1855,7 @@ "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_250": { @@ -1899,7 +1899,7 @@ "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_260": { @@ -1939,387 +1939,387 @@ "isHidden": false }, "plot_269": { - "title": "nav_total_return.1M", + "title": "nav_perf.1M", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_270": { - "title": "nav_total_return.3M", + "title": "nav_perf.3M", "isHidden": false }, "plot_271": { - "title": "nav_total_return.6M", + "title": "nav_perf.1Y", "isHidden": false }, "plot_272": { - "title": "nav_total_return.1Y", + "title": "nav_perf.3Y", "isHidden": false }, "plot_273": { - "title": "nav_total_return.3Y", + "title": "nav_perf.5Y", "isHidden": false }, "plot_274": { - "title": "nav_total_return.5Y", + "title": "nav_perf.YTD", "isHidden": false }, "plot_275": { - "title": "nav_total_return.YTD", + "title": "aum_perf.1M", "isHidden": false }, "plot_276": { - "title": "nav_perf.1M", + "title": "aum_perf.3M", "isHidden": false }, "plot_277": { - "title": "nav_perf.3M", + "title": "aum_perf.1Y", "isHidden": false }, "plot_278": { - "title": "nav_perf.1Y", + "title": "aum_perf.3Y", "isHidden": false }, "plot_279": { - "title": "nav_perf.3Y", + "title": "aum_perf.5Y", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_280": { - "title": "nav_perf.5Y", + "title": "aum_perf.YTD", "isHidden": false }, "plot_281": { - "title": "nav_perf.YTD", + "title": "nav_total_return.1M", "isHidden": false }, "plot_282": { - "title": "aum_perf.1M", + "title": "nav_total_return.3M", "isHidden": false }, "plot_283": { - "title": "aum_perf.3M", + "title": "nav_total_return.6M", "isHidden": false }, "plot_284": { - "title": "aum_perf.1Y", + "title": "nav_total_return.1Y", "isHidden": false }, "plot_285": { - "title": "aum_perf.3Y", + "title": "nav_total_return.3Y", "isHidden": false }, "plot_286": { - "title": "aum_perf.5Y", + "title": "nav_total_return.5Y", "isHidden": false }, "plot_287": { - "title": "aum_perf.YTD", + "title": "nav_total_return.YTD", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 636968ba8..2b639d6ee 100644 --- a/scanner.data.simple.5.json +++ b/scanner.data.simple.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;i:(interval*60)*1000;i:1440/interval;volume~time~0.0~i:11*$12():i~i:$3*$11():i~v:if(n==0){$2=$1@$3-#2@$3\u003e$0@$3?0:0~}~timenow-$4~v:if(time\u003e=$6){#2@0~0~(-1)~0.0~0~0~v:for(1;$3;1){0.0~v:if(#2@$13!=$7){$8=$8+1~$7=#2@$13~$14=$8\u003e#0~$12=$11~$11=$13-1~}~v:if(1==$8\u0026\u0026($9\u003c0)){$9=$13-1~}~v:if($14){v:for(max($12,$11-$9);$11;1){$10=$10+$0@$17~}~}~v:if(#1==$8){break~}~}~$2=$10~}~$2;0~0~0~dayofmonth~v:for(0;5*$12():i;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($14(i:300/interval),$0)~$0;#0~$13(i:0,i:1,$0)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/$11():i~1-(timenow-time)/$11():i~($2+$3)/$2~$1=$1*$4~}~$1/($13(i:1,i:11,$0)/10);open~high~low~$0!$1!$2;time~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#4)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~$16(#3)~v:if($15()\u003e35){$348=na():f~}~$348~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$350!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$21,$21,0,1,0,'NONE',0,0,$22)|$17():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$22)|$18()|s218:$19($24,$25,$26,$29,i:$20):s218~$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$155!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167\u003c\u003c$245!$168\u003c\u003c$246!$169!$170!$171\u003c\u003c$247!$172\u003c\u003c$248!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$348~$12(i:$349,i:$347,#3)~v:if($11(i:$348)\u003e35){$350=na():f~}~$350~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s214:$15($21,$22,$23,$26):s214~$28!$29!$30!$31!$32!$33!$34!$35!$36!$112!$38!$39!$40!$41!$115!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241", "isFake": false }, { @@ -887,15 +887,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -939,7 +939,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -983,7 +983,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1027,7 +1027,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1071,7 +1071,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1115,7 +1115,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1159,7 +1159,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1203,7 +1203,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1247,7 +1247,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1291,7 +1291,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1335,11 +1335,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1383,7 +1383,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1403,331 +1403,331 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.bonds.json b/scanner.data.simple.bonds.json index dff486d67..4b8d6d597 100644 --- a/scanner.data.simple.bonds.json +++ b/scanner.data.simple.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#4)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~#3~$348~$349-$349@1~na():f~v:if(!($349@1\u003c0)\u0026\u0026!($349\u003c0)){$351=($350/$349@1)*100~}~$351~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$349!$350!$353!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$15,$15,0,1,0,'NONE',0,0,$16)|$11():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$22):t~sym($23,period,period,0,0,1,'NONE',0,0,$16)|$12()|s220:$13($18,$19,$20,$25,i:$14):s220~$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$151!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163\u003c\u003c$243!$164\u003c\u003c$244!$165!$166!$167\u003c\u003c$245!$168\u003c\u003c$246!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~#3~$347~$348-$348@1~na():f~v:if(!($348@1\u003c0)\u0026\u0026!($348\u003c0)){$350=($349/$348@1)*100~}~$350~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$348!$349!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$9():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$21):t~sym($22,period,period,0,0,1,'NONE',0,0,$15)|$10()|s216:$11($17,$18,$19,$24):s216~$26!$27!$28!$29!$30!$31!$32!$33!$34!$110!$36!$37!$38!$39!$113!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$128!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241", "isFake": false }, { @@ -895,15 +895,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -947,7 +947,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -991,7 +991,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1035,7 +1035,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1079,7 +1079,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1123,7 +1123,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1167,7 +1167,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1211,7 +1211,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1255,7 +1255,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1299,7 +1299,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1343,11 +1343,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1391,7 +1391,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1419,331 +1419,331 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index 8004f8f72..80800be25 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;#0~v:if(n==0){$0=($0@576*time@576)*0~}~v^0.0~v^na():f~v:if_(na($3):b){0.0~v:for(0;288;1){v:if(time-time@$5\u003e=86400000){$3=n-$5+1~break~}~$4=$4+$0@$5~}~$2=$4~}_{$2=$2+nz($0)~v:for($3;n;1){n-$8~v:if(time-time@$9\u003c86400000){$3=$8~break~}~$2=$2-nz($0@$9)~v:if($2\u003c=0){$2=0~}~}~}~$2;#0~v:if(n==0){$0=($0@576*time@576)*0~}~na():f~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){v:if(time-time@$3==86400000){$2=$3~}~break~}~$2=$3~}~$0@$2;open~high~low~$0!$1!$2;close~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?$0*volume:na():f~$11($1)~$2;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#4)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$12($348)~na():f~v:if(!na($348)\u0026\u0026!na($351)){$352=$348-$351~}~$352~na():f~v:if(!na($352)\u0026\u0026$351!=0){$355=($352/abs($351))*100~}~$355~$12(close)~na():f~v:if(!na(close)\u0026\u0026!na($358)){$359=close-$358~}~$359~na():f~v:if_(na($359)||$358==0||$358\u003c0\u0026\u0026close\u003e0){}_{$362=($359/abs($358))*100~}~$362~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$354!$357!$358!$361!$364!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$13():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$14()|s226:$15($20,$21,$22,$25,i:$16):s226~$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$151!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163\u003c\u003c$249!$164\u003c\u003c$250!$165!$166!$167\u003c\u003c$251!$168\u003c\u003c$252!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($347)~na():f~v:if(!na($347)\u0026\u0026!na($350)){$351=$347-$350~}~$351~na():f~v:if(!na($351)\u0026\u0026$350!=0){$354=($351/abs($350))*100~}~$354~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($357)){$358=close-$357~}~$358~na():f~v:if_(na($358)||$357==0||$357\u003c0\u0026\u0026close\u003e0){}_{$361=($358/abs($357))*100~}~$361~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$353!$356!$357!$360!$363;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s222:$14($20,$21,$22,$25):s222~$27!$28!$29!$30!$31!$32!$33!$34!$35!$111!$37!$38!$39!$40!$114!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$129!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248", "isFake": false }, { @@ -919,15 +919,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -971,7 +971,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1015,7 +1015,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1059,7 +1059,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1103,7 +1103,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1147,7 +1147,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1191,7 +1191,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1235,7 +1235,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1279,7 +1279,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1323,7 +1323,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1367,11 +1367,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1415,7 +1415,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1459,7 +1459,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1471,327 +1471,327 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.coin.json b/scanner.data.simple.coin.json index d7953bdc8..0e009865c 100644 --- a/scanner.data.simple.coin.json +++ b/scanner.data.simple.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#3)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$11():s3|s217:$12($17,$18,$19,i:$13):s217~$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$145!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157\u003c\u003c$234!$158\u003c\u003c$235!$159!$160!$161\u003c\u003c$236!$162\u003c\u003c$237!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s213:$10($16,$17,$18):s213~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232", "isFake": false }, { @@ -883,15 +883,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -935,7 +935,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -979,7 +979,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1023,7 +1023,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1067,7 +1067,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1111,7 +1111,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1155,7 +1155,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1199,7 +1199,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1243,7 +1243,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1287,7 +1287,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1331,11 +1331,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1379,7 +1379,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1395,331 +1395,331 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index 5f37285cd..85bd14034 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;i:(interval*60)*1000;i:1440/interval;volume~time~0.0~i:11*$12():i~i:$3*$11():i~v:if(n==0){$2=$1@$3-#2@$3\u003e$0@$3?0:0~}~timenow-$4~v:if(time\u003e=$6){#2@0~0~(-1)~0.0~0~0~v:for(1;$3;1){0.0~v:if(#2@$13!=$7){$8=$8+1~$7=#2@$13~$14=$8\u003e#0~$12=$11~$11=$13-1~}~v:if(1==$8\u0026\u0026($9\u003c0)){$9=$13-1~}~v:if($14){v:for(max($12,$11-$9);$11;1){$10=$10+$0@$17~}~}~v:if(#1==$8){break~}~}~$2=$10~}~$2;0~0~0~dayofmonth~v:for(0;5*$12():i;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($14(i:300/interval),$0)~$0;#0~$13(i:0,i:1,$0)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/$11():i~1-(timenow-time)/$11():i~($2+$3)/$2~$1=$1*$4~}~$1/($13(i:1,i:11,$0)/10);#0~v:if(n==0){$0=($0@576*time@576)*0~}~v^0.0~v^na():f~v:if_(na($3):b){0.0~v:for(0;288;1){v:if(time-time@$5\u003e=86400000){$3=n-$5+1~break~}~$4=$4+$0@$5~}~$2=$4~}_{$2=$2+nz($0)~v:for($3;n;1){n-$8~v:if(time-time@$9\u003c86400000){$3=$8~break~}~$2=$2-nz($0@$9)~v:if($2\u003c=0){$2=0~}~}~}~$2;#0~v:if(n==0){$0=($0@576*time@576)*0~}~na():f~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){v:if(time-time@$3==86400000){$2=$3~}~break~}~$2=$3~}~$0@$2;open~high~low~$0!$1!$2;time~$0;close~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?$0*volume:na():f~$17($1)~$2;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#5)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~$16(#3)~v:if($15()\u003e35){$348=na():f~}~$348~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$18($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$18(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$24,$24,0,1,0,'NONE',0,0,$25)|$19():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$25)|$20()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$25)|$21()|s227:$22($27,$28,$29,$32,$35,i:$23):s227~$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$161!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173\u003c\u003c$260!$174\u003c\u003c$261!$175!$176!$177\u003c\u003c$262!$178\u003c\u003c$263!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$348~$12(i:$349,i:$347,#3)~v:if($11(i:$348)\u003e35){$350=na():f~}~$350~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($353)~na():f~v:if(!na($353)\u0026\u0026!na($356)){$357=$353-$356~}~$357~na():f~v:if(!na($357)\u0026\u0026$356!=0){$360=($357/abs($356))*100~}~$360~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($363)){$364=close-$363~}~$364~na():f~v:if_(na($364)||$363==0||$363\u003c0\u0026\u0026close\u003e0){}_{$367=($364/abs($363))*100~}~$367~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$352!$353!$354!$355!$356!$359!$362!$363!$366!$369;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s223:$19($25,$26,$27,$30,$33):s223~$35!$36!$37!$38!$39!$40!$41!$42!$43!$119!$45!$46!$47!$48!$122!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257", "isFake": false }, { @@ -923,15 +923,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -975,7 +975,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -1019,7 +1019,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1063,7 +1063,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1107,7 +1107,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1151,7 +1151,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1195,7 +1195,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1239,7 +1239,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1283,7 +1283,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1327,7 +1327,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1371,11 +1371,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1419,7 +1419,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1463,7 +1463,7 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_220": { @@ -1479,327 +1479,327 @@ "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.crypto.json b/scanner.data.simple.crypto.json index 003cf2ea0..ed90c1f1b 100644 --- a/scanner.data.simple.crypto.json +++ b/scanner.data.simple.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#3)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$11():s3|s219:$12($17,$18,$19,i:$13):s219~$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$145!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157\u003c\u003c$236!$158\u003c\u003c$237!$159!$160!$161\u003c\u003c$238!$162\u003c\u003c$239!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", "isFake": false }, { @@ -891,15 +891,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -943,7 +943,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -987,7 +987,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1031,7 +1031,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1075,7 +1075,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1119,7 +1119,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1163,7 +1163,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1207,7 +1207,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1251,7 +1251,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1295,7 +1295,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1339,11 +1339,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1387,7 +1387,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1411,331 +1411,331 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { diff --git a/scanner.data.simple.json b/scanner.data.simple.json index d7953bdc8..0e009865c 100644 --- a/scanner.data.simple.json +++ b/scanner.data.simple.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;rsi(close,14)~sma(stoch($0,$0,$0,14),3)~sma($1,3)~$1!$2;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~sum(close-$3(),#0)~sum(close-$3(),#1)~sum(close-$3(),#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($3/$0)*$7~($4/$1)*$8~$5/$2~$6=($9+$10+$11)/($7+$8+1)~}~$6;avg(lowest(#0),highest(#0));$5(i:#0)~$5(i:#1)~avg($0,$1)~$5(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;t:'1M'~v:if_(isintraday){$0=t:interval\u003c=15?'1D':'1W'~}_{v:if(isweekly||ismonthly){$0=t:'12M'~}~}~t:$0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$2@1~$3@1~s3:$1(i:9,i:9):s3~$7@1~$8@1~s3:$1(i:20,i:20):s3~$12@1~$13@1~s3:$1(i:50,i:50):s3~$17@1~$18@1~s3:$1(i:100,i:100):s3~$22@1~$23@1~close~sma($26,20)~2*stdev($26,20,1.0)~$27+$28~$27-$28~sma($26,50)~2*stdev($26,50,1.0)~$31+$32~$31-$32~ema($26,12)~ema($26,26)~$35-$36~ema($37,9)~$37-$38~close-close@10~$40@1~close-close@14~$42@1~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~sma(stoch(close,high,low,14),3)~sma($102,3)~$102@1~$103@1~sma(stoch(close,high,low,14),1)~sma($106,3)~$106@1~$107@1~sma(volume,10)~volume/sma(volume@1,10)~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$115@1~highest(20)~lowest(20)~avg($117,$118)~2*wma(close,4)~wma(close,9)~wma($120-$121,3)~sma(hl2,5)-sma(hl2,34)~$123@1~$123@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~atr(#3)~$89+$129*2~$89-$129*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($134,20)/sum(volume,20)~s2:$2():s2~((highest(high,14)-close)/(highest(high,14)-lowest(low,14)))*(-100)~roc(close,9)~high-ema(close,13)~low-ema(close,13)~$140+$141~$4(i:7,i:14,i:28)~v:if(!na($143)){$143=$143*100~}~$143~s4:$6(i:9,i:26,i:52):s4~$148@25~25~$149@25~s4:$6(i:20,i:60,i:120):s4~$155@30~30~$156@30~vwma(close,20)~sma(high,14)-sma(low,14)~close\u003c$94~close\u003e$94~0.0~0.0~v:if(!na(close)){v:if(!na($64)){$164=$164+$7($64,close)~$165=$165+1~}~v:if(!na($67)){$164=$164+$7($67,close)~$165=$165+1~}~v:if(!na($70)){$164=$164+$7($70,close)~$165=$165+1~}~v:if(!na($72)){$164=$164+$7($72,close)~$165=$165+1~}~v:if(!na($74)){$164=$164+$7($74,close)~$165=$165+1~}~v:if(!na($77)){$164=$164+$7($77,close)~$165=$165+1~}~v:if(!na($86)){$164=$164+$7($86,close)~$165=$165+1~}~v:if(!na($89)){$164=$164+$7($89,close)~$165=$165+1~}~v:if(!na($92)){$164=$164+$7($92,close)~$165=$165+1~}~v:if(!na($94)){$164=$164+$7($94,close)~$165=$165+1~}~v:if(!na($96)){$164=$164+$7($96,close)~$165=$165+1~}~v:if(!na($99)){$164=$164+$7($99,close)~$165=$165+1~}~}~$7($122,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$7($160,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($148)||na($149)||na(close)||na(close@1)||na($147)||na($146))){$183=$8($148\u003e$149\u0026\u0026close\u003e$148\u0026\u0026close\u003c$147\u0026\u0026close@1\u003c$146\u0026\u0026close\u003e$146,$149\u003e$148\u0026\u0026close\u003c$149\u0026\u0026close\u003e$147\u0026\u0026close@1\u003e$146\u0026\u0026close\u003c$146)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$8($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($102)||na($103)||na($102@1)||na($103@1))){$189=$189+1~$188=$188+$8($102\u003c20\u0026\u0026$103\u003c20\u0026\u0026$102\u003e$103\u0026\u0026$102@1\u003c$103@1,$102\u003e80\u0026\u0026$103\u003e80\u0026\u0026$102\u003c$103\u0026\u0026$102@1\u003e$103@1)~}~$115~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$8($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($1)||na($2@1)||na($3@1)||na($2)||na($3))){$189=$189+1~$188=$188+$8($1\u003e20\u0026\u0026$2@1\u003c$3@1\u0026\u0026$2\u003e$3,$1\u003e20\u0026\u0026$2@1\u003e$3@1\u0026\u0026$2\u003c$3)~}~v:if(!(na($123)||na($123@1))){$189=$189+1~$188=$188+$8(crossover($123,0)||$123\u003e0\u0026\u0026$123@1\u003e0\u0026\u0026$123\u003e$123@1\u0026\u0026$123@2\u003e$123@1,crossunder($123,0)||$123\u003c0\u0026\u0026$123@1\u003c0\u0026\u0026$123\u003c$123@1\u0026\u0026$123@2\u003c$123@1)~}~v:if(!(na($40)||na($40@1))){$189=$189+1~$188=$188+$8($40\u003e$40@1,$40\u003c$40@1)~}~v:if(!(na($37)||na($38))){$189=$189+1~$188=$188+$8($37\u003e$38,$37\u003c$38)~}~na():f~v:if(!(na($162)||na($163)||na($136)||na($137)||na($136@1)||na($137@1))){$199=$8($162\u0026\u0026$136\u003c20\u0026\u0026$137\u003c20\u0026\u0026$136\u003e$137\u0026\u0026$136@1\u003c$137@1,$163\u0026\u0026$136\u003e80\u0026\u0026$137\u003e80\u0026\u0026$136\u003c$137\u0026\u0026$136@1\u003e$137@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($138)||na($138@1))){$203=$8($138\u003c(-80)\u0026\u0026$138\u003e$138@1,$138\u003e(-20)\u0026\u0026$138\u003c$138@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($141)||na($141@1)||na($140)||na($140@1))){$207=$8($163\u0026\u0026$141\u003c0\u0026\u0026$141\u003e$141@1,$162\u0026\u0026$140\u003e0\u0026\u0026$140\u003c$140@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($143)){$211=$8($143\u003e70,$143\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~max(close,open)~min(close,open)~$221-$222~sma($223,14)~$223\u003c$224~$223\u003e$224~high-$221~$222-low~close\u003c$72~close\u003e$72~$227\u003e0*$223~$228\u003e0*$223~open\u003cclose~open\u003eclose~high-low~$223/2+$222~$227==$228||(abs($227-$228)/$228)*100\u003c100\u0026\u0026(abs($228-$227)/$227)*100\u003c100~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$222\u003ehl2\u0026\u0026$228\u003e=2.0*$223\u0026\u0026!$231){v:if_($229){$238=1.0~}_{v:if($230){$239=1.0~}~}~}~$238?1:0~$239?1:0~0.0~0.0~v:if($225\u0026\u0026$223\u003e0\u0026\u0026$221\u003chl2\u0026\u0026$227\u003e=2.0*$223\u0026\u0026!$232){v:if_($229){$245=1.0~}_{v:if($230){$246=1.0~}~}~}~$245?1:0~$246?1:0~0.0~0.0~v:if($226@2\u0026\u0026$225@1\u0026\u0026$226){v:if_($229\u0026\u0026$234@2\u0026\u0026$221@1\u003c$222@2\u0026\u0026$233\u0026\u0026$221\u003e=$236@2\u0026\u0026$221\u003c$221@2\u0026\u0026$221@1\u003c$222){$252=1.0~}_{v:if($230\u0026\u0026$233@2\u0026\u0026$222@1\u003e$221@2\u0026\u0026$234\u0026\u0026$222\u003c=$236@2\u0026\u0026$222\u003e$222@2\u0026\u0026$222@1\u003e$221){$253=1.0~}~}~}~$252?1:0~$253?1:0~$226\u0026\u0026$227\u003c=0*$223\u0026\u0026$228\u003c=0*$223~$259\u0026\u0026$233~$259\u0026\u0026$234~$261?1:0~$260?1:0~$235\u003e0\u0026\u0026$223\u003c=$235*5/100~$264\u0026\u0026$237~$264\u0026\u0026$227\u003c=$223~$264\u0026\u0026$228\u003c=$223~$265\u0026\u0026!$266\u0026\u0026!$267?1:0~$266?1:0~$267?1:0~$226@1\u0026\u0026$234@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$226@1\u0026\u0026$233@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$225\u0026\u0026high\u003c=$221@1\u0026\u0026low\u003e=$222@1?1:0~$228\u003e($235/100)*75?1:0~$227\u003e($235/100)*75?1:0~$228\u003e=($235/100)*34\u0026\u0026$227\u003e=($235/100)*34\u0026\u0026!$264~$275\u0026\u0026$233?1:0~$275\u0026\u0026$234?1:0~$235*5/100\u003e$227~$235*5/100\u003e$228~0.0~0.0~v:if($226\u0026\u0026$226@1\u0026\u0026$226@2){v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$278\u0026\u0026$278@1\u0026\u0026$278@2~}~v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~}~$280?1:0~$281?1:0~$229\u0026\u0026$233\u0026\u0026$226\u0026\u0026$234@1\u0026\u0026$225@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$230\u0026\u0026$234\u0026\u0026$226\u0026\u0026$233@1\u0026\u0026$225@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$229@2\u0026\u0026$234@2\u0026\u0026$264@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$233\u0026\u0026high@1\u003clow?1:0~$230@2\u0026\u0026$233@2\u0026\u0026$264@1\u0026\u0026high@2\u003clow@1\u0026\u0026$234\u0026\u0026low@1\u003ehigh?1:0~$265@2\u0026\u0026$265@1\u0026\u0026$265~$221@1\u003c$222~$222@1\u003e$221~$291\u0026\u0026$229@2\u0026\u0026$293@1\u0026\u0026$292?1:0~$291\u0026\u0026$230@2\u0026\u0026$292@1\u0026\u0026$293?1:0~$261@1\u0026\u0026$260\u0026\u0026high@1\u003clow?1:0~$260@1\u0026\u0026$261\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~na():f~$299=nz($299@1,open)~na():f~$300=nz($300@1,high)~na():f~$301=nz($301@1,low)~na():f~$302=nz($302@1)~na():f~$303=nz($303@1)~na():f~$304=nz($304@1)~na():f~$305=nz($305@1)~t:$9():t~#0~#1~#2~$299=$307@1~$300=$308@1~$301=$309@1~timeV5($306)~v:if_($310!=$310@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$10($312)~$10($312*2-$304)~$10($312*2-$303)~$10($312+1*($303-$304))~$10($312-1*($303-$304))~$10($312+2*($303-$304))~$10($312-2*($303-$304))~$10($312)~$10($312+0.382*($303-$304))~$10($312-0.382*($303-$304))~$10($312+0.618*($303-$304))~$10($312-0.618*($303-$304))~$10($312+1*($303-$304))~$10($312-1*($303-$304))~($303+$304+$299*2)/4~$10($327)~$10($327*2-$304)~$10($327*2-$303)~$10($327+1*($303-$304))~$10($327-1*($303-$304))~$10($303+2*($327-$304))~$10($304-2*($303-$327))~$303+$304*2+$305~v:if($305==$302){$335=$303+$304+$305*2~}~v:if($305\u003e$302){$335=$303*2+$304+$305~}~$10($335/4)~$10($335/2-$304)~$10($335/2-$303)~$10($312)~$10($305+0.09166666666666667*($303-$304))~$10($305-0.09166666666666667*($303-$304))~$10($305+0.18333333333333335*($303-$304))~$10($305-0.18333333333333335*($303-$304))~$10($305+0.275*($303-$304))~$10($305-0.275*($303-$304))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$27!$29!$30!$31!$33!$34!$39!$37!$38!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$118!$117!$119!$122!$123!$124!$125!$126!$127!$128!$130!$131!$89!$132!$133!$135!$136!$137!$138!$139!$142!$145!$146!$147!$150!$152!$153!$154!$157!$159!$160!$161!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$243!$244!$250!$251!$257!$258!$262!$263!$268!$269!$270!$271!$272!$273!$274!$276!$277!$285!$286!$287!$288!$289!$290!$294!$295!$296!$297!$298!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$151!$151!$158!$158;i:input('in_0',10)~t:$9():t~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$11():s3|s217:$12($17,$18,$19,i:$13):s217~$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$145!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157\u003c\u003c$234!$158\u003c\u003c$235!$159!$160!$161\u003c\u003c$236!$162\u003c\u003c$237!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s213:$10($16,$17,$18):s213~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232", "isFake": false }, { @@ -883,15 +883,15 @@ "fullId": "", "styles": { "plot_0": { - "title": "ATR", + "title": "SMA3", "isHidden": false }, "plot_1": { - "title": "ADX", + "title": "SMA5", "isHidden": false }, "plot_10": { - "title": "ADX-DI_9[1]", + "title": "SMA21", "isHidden": false }, "plot_100": { @@ -935,7 +935,7 @@ "isHidden": false }, "plot_11": { - "title": "ADX_20", + "title": "SMA25", "isHidden": false }, "plot_110": { @@ -979,7 +979,7 @@ "isHidden": false }, "plot_12": { - "title": "ADX+DI_20", + "title": "SMA30", "isHidden": false }, "plot_120": { @@ -1023,7 +1023,7 @@ "isHidden": false }, "plot_13": { - "title": "ADX-DI_20", + "title": "SMA40", "isHidden": false }, "plot_130": { @@ -1067,7 +1067,7 @@ "isHidden": false }, "plot_14": { - "title": "ADX+DI_20[1]", + "title": "SMA50", "isHidden": false }, "plot_140": { @@ -1111,7 +1111,7 @@ "isHidden": false }, "plot_15": { - "title": "ADX-DI_20[1]", + "title": "SMA75", "isHidden": false }, "plot_150": { @@ -1155,7 +1155,7 @@ "isHidden": false }, "plot_16": { - "title": "ADX_50", + "title": "SMA100", "isHidden": false }, "plot_160": { @@ -1199,7 +1199,7 @@ "isHidden": false }, "plot_17": { - "title": "ADX+DI_50", + "title": "SMA120", "isHidden": false }, "plot_170": { @@ -1243,7 +1243,7 @@ "isHidden": false }, "plot_18": { - "title": "ADX-DI_50", + "title": "SMA150", "isHidden": false }, "plot_180": { @@ -1287,7 +1287,7 @@ "isHidden": false }, "plot_19": { - "title": "ADX+DI_50[1]", + "title": "SMA200", "isHidden": false }, "plot_190": { @@ -1331,11 +1331,11 @@ "isHidden": false }, "plot_2": { - "title": "ADX+DI", + "title": "SMA6", "isHidden": false }, "plot_20": { - "title": "ADX-DI_50[1]", + "title": "SMA250", "isHidden": false }, "plot_200": { @@ -1379,7 +1379,7 @@ "isHidden": false }, "plot_21": { - "title": "ADX_100", + "title": "SMA300", "isHidden": false }, "plot_210": { @@ -1395,331 +1395,331 @@ "isHidden": false }, "plot_22": { - "title": "ADX+DI_100", + "title": "EMA3", "isHidden": false }, "plot_23": { - "title": "ADX-DI_100", + "title": "EMA5", "isHidden": false }, "plot_24": { - "title": "ADX+DI_100[1]", + "title": "EMA6", "isHidden": false }, "plot_25": { - "title": "ADX-DI_100[1]", + "title": "EMA7", "isHidden": false }, "plot_26": { - "title": "BB.basis", + "title": "EMA8", "isHidden": false }, "plot_27": { - "title": "BB.upper", + "title": "EMA9", "isHidden": false }, "plot_28": { - "title": "BB.lower", + "title": "EMA10", "isHidden": false }, "plot_29": { - "title": "BB.basis_50", + "title": "EMA12", "isHidden": false }, "plot_3": { - "title": "ADX-DI", + "title": "SMA7", "isHidden": false }, "plot_30": { - "title": "BB.upper_50", + "title": "EMA13", "isHidden": false }, "plot_31": { - "title": "BB.lower_50", + "title": "EMA20", "isHidden": false }, "plot_32": { - "title": "MACD.hist", + "title": "EMA21", "isHidden": false }, "plot_33": { - "title": "MACD.macd", + "title": "EMA25", "isHidden": false }, "plot_34": { - "title": "MACD.signal", + "title": "EMA30", "isHidden": false }, "plot_35": { - "title": "Mom", + "title": "EMA40", "isHidden": false }, "plot_36": { - "title": "Mom[1]", + "title": "EMA50", "isHidden": false }, "plot_37": { - "title": "Mom_14", + "title": "EMA75", "isHidden": false }, "plot_38": { - "title": "Mom_14[1]", + "title": "EMA100", "isHidden": false }, "plot_39": { - "title": "RSI", + "title": "EMA120", "isHidden": false }, "plot_4": { - "title": "ADX+DI[1]", + "title": "SMA8", "isHidden": false }, "plot_40": { - "title": "RSI[1]", + "title": "EMA150", "isHidden": false }, "plot_41": { - "title": "RSI2", + "title": "EMA200", "isHidden": false }, "plot_42": { - "title": "RSI2[1]", + "title": "EMA250", "isHidden": false }, "plot_43": { - "title": "RSI3", + "title": "EMA300", "isHidden": false }, "plot_44": { - "title": "RSI3[1]", + "title": "RSI", "isHidden": false }, "plot_45": { - "title": "RSI5", + "title": "RSI[1]", "isHidden": false }, "plot_46": { - "title": "RSI5[1]", + "title": "RSI2", "isHidden": false }, "plot_47": { - "title": "RSI7", + "title": "RSI2[1]", "isHidden": false }, "plot_48": { - "title": "RSI7[1]", + "title": "RSI3", "isHidden": false }, "plot_49": { - "title": "RSI9", + "title": "RSI3[1]", "isHidden": false }, "plot_5": { - "title": "ADX-DI[1]", + "title": "SMA9", "isHidden": false }, "plot_50": { - "title": "RSI9[1]", + "title": "RSI5", "isHidden": false }, "plot_51": { - "title": "RSI21", + "title": "RSI5[1]", "isHidden": false }, "plot_52": { - "title": "RSI21[1]", + "title": "RSI7", "isHidden": false }, "plot_53": { - "title": "SMA3", + "title": "RSI7[1]", "isHidden": false }, "plot_54": { - "title": "SMA5", + "title": "RSI9", "isHidden": false }, "plot_55": { - "title": "SMA6", + "title": "RSI9[1]", "isHidden": false }, "plot_56": { - "title": "SMA7", + "title": "RSI21", "isHidden": false }, "plot_57": { - "title": "SMA8", + "title": "RSI21[1]", "isHidden": false }, "plot_58": { - "title": "SMA9", + "title": "ATR", "isHidden": false }, "plot_59": { - "title": "SMA10", + "title": "ADX", "isHidden": false }, "plot_6": { - "title": "ADX_9", + "title": "SMA10", "isHidden": false }, "plot_60": { - "title": "SMA12", + "title": "ADX+DI", "isHidden": false }, "plot_61": { - "title": "SMA13", + "title": "ADX-DI", "isHidden": false }, "plot_62": { - "title": "SMA20", + "title": "ADX+DI[1]", "isHidden": false }, "plot_63": { - "title": "SMA21", + "title": "ADX-DI[1]", "isHidden": false }, "plot_64": { - "title": "SMA25", + "title": "ADX_9", "isHidden": false }, "plot_65": { - "title": "SMA30", + "title": "ADX+DI_9", "isHidden": false }, "plot_66": { - "title": "SMA40", + "title": "ADX-DI_9", "isHidden": false }, "plot_67": { - "title": "SMA50", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_68": { - "title": "SMA75", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_69": { - "title": "SMA100", + "title": "ADX_20", "isHidden": false }, "plot_7": { - "title": "ADX+DI_9", + "title": "SMA12", "isHidden": false }, "plot_70": { - "title": "SMA120", + "title": "ADX+DI_20", "isHidden": false }, "plot_71": { - "title": "SMA150", + "title": "ADX-DI_20", "isHidden": false }, "plot_72": { - "title": "SMA200", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_73": { - "title": "SMA250", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_74": { - "title": "SMA300", + "title": "ADX_50", "isHidden": false }, "plot_75": { - "title": "EMA3", + "title": "ADX+DI_50", "isHidden": false }, "plot_76": { - "title": "EMA5", + "title": "ADX-DI_50", "isHidden": false }, "plot_77": { - "title": "EMA6", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_78": { - "title": "EMA7", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_79": { - "title": "EMA8", + "title": "ADX_100", "isHidden": false }, "plot_8": { - "title": "ADX-DI_9", + "title": "SMA13", "isHidden": false }, "plot_80": { - "title": "EMA9", + "title": "ADX+DI_100", "isHidden": false }, "plot_81": { - "title": "EMA10", + "title": "ADX-DI_100", "isHidden": false }, "plot_82": { - "title": "EMA12", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_83": { - "title": "EMA13", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_84": { - "title": "EMA20", + "title": "BB.basis", "isHidden": false }, "plot_85": { - "title": "EMA21", + "title": "BB.upper", "isHidden": false }, "plot_86": { - "title": "EMA25", + "title": "BB.lower", "isHidden": false }, "plot_87": { - "title": "EMA30", + "title": "BB.basis_50", "isHidden": false }, "plot_88": { - "title": "EMA40", + "title": "BB.upper_50", "isHidden": false }, "plot_89": { - "title": "EMA50", + "title": "BB.lower_50", "isHidden": false }, "plot_9": { - "title": "ADX+DI_9[1]", + "title": "SMA20", "isHidden": false }, "plot_90": { - "title": "EMA75", + "title": "MACD.hist", "isHidden": false }, "plot_91": { - "title": "EMA100", + "title": "MACD.macd", "isHidden": false }, "plot_92": { - "title": "EMA120", + "title": "MACD.signal", "isHidden": false }, "plot_93": { - "title": "EMA150", + "title": "Mom", "isHidden": false }, "plot_94": { - "title": "EMA200", + "title": "Mom[1]", "isHidden": false }, "plot_95": { - "title": "EMA250", + "title": "Mom_14", "isHidden": false }, "plot_96": { - "title": "EMA300", + "title": "Mom_14[1]", "isHidden": false }, "plot_97": { From cfd959218e5f508745ad86dafb2e96b25042c306 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 12:14:28 +0300 Subject: [PATCH 02/25] HBS-0: test optimize perf pine funcs --- links/performance_crypto.pine.link | 14 +++++++------- links/performance_functions.pine.link | 26 ++++++++++---------------- links/performance_stocks.pine.link | 16 ++++++++-------- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 8 files changed, 30 insertions(+), 36 deletions(-) diff --git a/links/performance_crypto.pine.link b/links/performance_crypto.pine.link index 1fa95b623..484aac879 100644 --- a/links/performance_crypto.pine.link +++ b/links/performance_crypto.pine.link @@ -4,34 +4,34 @@ perf5D = (close - open[4]) / open[4] * 100 perf5D_USD = request.security(syminfo.tickerid, "D", perf5D, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf5D, title='Perf.5D') plot(perf5D_USD, title='Perf.5D.USD') -perfW = rr(close, open, countOfBarsWeekAgo, week1) +perfW = rr(countOfBarsWeekAgo, week1) perfW_USD = request.security(syminfo.tickerid, "D", perfW, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfW, title='Perf.W') plot(perfW_USD, title='Perf.W.USD') -perf1M = rr(close, open, countOfBars1MonthAgo, month1) +perf1M = rr(countOfBars1MonthAgo, month1) perf1M_USD = request.security(syminfo.tickerid, "D", perf1M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf1M, title='Perf.1M') plot(perf1M_USD, title='Perf.1M.USD') -perf3M = rr(close, open, countOfBars3MonthAgo, month3) +perf3M = rr(countOfBars3MonthAgo, month3) perf3M_USD = request.security(syminfo.tickerid, "D", perf3M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf3M, title='Perf.3M') plot(perf3M_USD, title='Perf.3M.USD') -perf6M = rr(close, open, countOfBars6MonthAgo, month6) +perf6M = rr(countOfBars6MonthAgo, month6) perf6M_USD = request.security(syminfo.tickerid, "D", perf6M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf6M, title='Perf.6M') plot(perf6M_USD, title='Perf.6M.USD') oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) -perfY = rr(close, open, barsCountOneYear, oneYear) +perfY = rr(barsCountOneYear, oneYear) perfY_USD = request.security(syminfo.tickerid, "D", perfY, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfY, title='Perf.Y') plot(perfY_USD, title='Perf.Y.USD') -perf5Y = rr(close, open, countOfBars5YearAgo, years5) +perf5Y = rr(countOfBars5YearAgo, years5) perf5Y_USD = request.security(syminfo.tickerid, "D", perf5Y, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf5Y, title='Perf.5Y') plot(perf5Y_USD, title='Perf.5Y.USD') -perfYTD = perfYTD(close, open) +perfYTD = perfYTD() perfYTD_USD = request.security(syminfo.tickerid, "D", perfYTD, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfYTD, title='Perf.YTD') plot(perfYTD_USD, title='Perf.YTD.USD') diff --git a/links/performance_functions.pine.link b/links/performance_functions.pine.link index 2fbd9e406..16975a1ab 100644 --- a/links/performance_functions.pine.link +++ b/links/performance_functions.pine.link @@ -1,20 +1,14 @@ // Performance helper functions -rateOfreturn(v1, v2) => - if v2 < 0 and v1 > 0 +rateOfreturn(ref) => + if ref < 0 and close > 0 na else - (v1 - v2) * 100 / math.abs(v2) -rr(cl, op, _bb, maxbarsback) => - bb = _bb - if bar_index == 0 - bb += math.round(op[maxbarsback] * 0) // max_bars_back - if bb == 0 - na - else - rof = rateOfreturn(cl, op[bb]) - rof -perfYTD(cl, op) => - var lastYearOpen = op + (close - ref) * 100 / math.abs(ref) +rr(bb, maxbarsback) => + max_bars_back(open, maxbarsback) + bb == 0 ? na : rateOfreturn(open[bb]) +perfYTD() => + var lastYearOpen = open if year > year[1] - lastYearOpen := op - rateOfreturn(cl, lastYearOpen) \ No newline at end of file + lastYearOpen := open + rateOfreturn(lastYearOpen) \ No newline at end of file diff --git a/links/performance_stocks.pine.link b/links/performance_stocks.pine.link index e110d5ec8..1d4df42c6 100644 --- a/links/performance_stocks.pine.link +++ b/links/performance_stocks.pine.link @@ -3,13 +3,13 @@ oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) -perfYTD = perfYTD(close, open) +perfYTD = perfYTD() plot((close - open[4]) / open[4] * 100, title='Perf.5D') -plot(rr(close, open, countOfBarsWeekAgo, week1), title='Perf.W') -plot(rr(close, open, countOfBars1MonthAgo, month1), title='Perf.1M') -plot(rr(close, open, countOfBars3MonthAgo, month3), title='Perf.3M') -plot(rr(close, open, countOfBars6MonthAgo, month6), title='Perf.6M') -plot(rr(close, open, barsCountOneYear, oneYear), title='Perf.Y') -plot(rr(close, open, countOfBars3YearAgo, years3), title='Perf.3Y') -plot(rr(close, open, countOfBars5YearAgo, years5), title='Perf.5Y') +plot(rr(countOfBarsWeekAgo, week1), title='Perf.W') +plot(rr(countOfBars1MonthAgo, month1), title='Perf.1M') +plot(rr(countOfBars3MonthAgo, month3), title='Perf.3M') +plot(rr(countOfBars6MonthAgo, month6), title='Perf.6M') +plot(rr(barsCountOneYear, oneYear), title='Perf.Y') +plot(rr(countOfBars3YearAgo, years3), title='Perf.3Y') +plot(rr(countOfBars5YearAgo, years5), title='Perf.5Y') plot(perfYTD, title='Perf.YTD') \ No newline at end of file diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 92bf4ffc0..b5315d930 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 3e1818a66..d3715a3e7 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14(close,open,$1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14(close,open,$1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14(close,open,$1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14(close,open,$1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14(close,open,$1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14(close,open,$1,i:1826)~$2;$15(close,open)~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14(close,open,$392,i:7)~#1~$14(close,open,$384,i:30)~#2~$14(close,open,$377,i:90)~#3~$14(close,open,$371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14(close,open,$413,i:365)~#5~$14(close,open,$363,i:1826)~#6~$15(close,open)~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index e18cd7987..c81b230ec 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14(close,open,$1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14(close,open,$1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14(close,open,$1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14(close,open,$1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14(close,open,$1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14(close,open,$1,i:1826)~$2;$15(close,open)~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14(close,open,$392,i:7)~#1~$14(close,open,$384,i:30)~#2~$14(close,open,$377,i:90)~#3~$14(close,open,$371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14(close,open,$413,i:365)~#5~$14(close,open,$363,i:1826)~#6~$15(close,open)~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index c9dd8492f..fe02a94ea 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 5f58fd41a..86c80374d 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#1\u003c0\u0026\u0026#0\u003e0){na():f}_{(#0-#1)*100/abs(#1)};#2~v:if(n==0){$0=$0+round(#1@#3*0)~}~if_($0==0){na():f}_{$13(#0,#1@$0)~$3};v^#1~year~v:if(year\u003e$1@1){$0=#1~}~$13(#0,$0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$394,i:7)~$14(close,open,$386,i:30)~$14(close,open,$379,i:90)~$14(close,open,$373,i:180)~$14(close,open,$405,i:365)~$14(close,open,$365,i:1095)~$14(close,open,$363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From ed86e4fa3a5cfd50816826c77486aa776159eb84 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 12:48:03 +0300 Subject: [PATCH 03/25] HBS-0: test optimize perf pine funcs 2 --- links/performance_functions.pine.link | 4 ++-- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/links/performance_functions.pine.link b/links/performance_functions.pine.link index 16975a1ab..7ca4ab174 100644 --- a/links/performance_functions.pine.link +++ b/links/performance_functions.pine.link @@ -5,8 +5,8 @@ rateOfreturn(ref) => else (close - ref) * 100 / math.abs(ref) rr(bb, maxbarsback) => - max_bars_back(open, maxbarsback) - bb == 0 ? na : rateOfreturn(open[bb]) + // max_bars_back(open, maxbarsback) + open[maxbarsback] * 0 + bb == 0 ? na : rateOfreturn(open[bb]) perfYTD() => var lastYearOpen = open if year > year[1] diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index b5315d930..263c7c62c 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index d3715a3e7..a83861466 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index c81b230ec..a256bd8fe 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index fe02a94ea..8bbfe2016 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 86c80374d..be2a6ddc6 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};v:max_bars_back(open,#1):v~#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From fb7ce09b097e12896b3a3dd5c72ed2253b323589 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 14:33:26 +0300 Subject: [PATCH 04/25] HBS-0: test optimize bond close pine --- links/bond_close_days_back.pine.link | 11 ++++------- scanner.data.bonds.json | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index d8ff4f50a..65193cd2c 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -9,10 +9,7 @@ countOfBars1DayAgoBond = fastSearchN(time, dayAgoYield, dayYield) countOfBars1MonthAgoBond = fastSearchN(time, monthAgoYield, monthYield) countOfBars1YearAgoBond = fastSearchN(time, yearAgoYield, yearYield) -series = close -if bar_index == 0 - series += series[yearYield] * 0 // max_bars_back - -plot(series[countOfBars1DayAgoBond], title="close_1_days_back") -plot(series[countOfBars1MonthAgoBond], title="close_30_days_back") -plot(series[countOfBars1YearAgoBond], title="close_365_days_back") \ No newline at end of file +max_bars_back(close, yearYield) +plot(close[countOfBars1DayAgoBond], title="close_1_days_back") +plot(close[countOfBars1MonthAgoBond], title="close_30_days_back") +plot(close[countOfBars1YearAgoBond], title="close_365_days_back") \ No newline at end of file diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 263c7c62c..e115c89be 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~close~v:if(n==0){$424=$424+$424@365*0~}~$424@$423~$424@$386~$424@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$426!$427!$428;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { From 4783f6b83968a9b5ee4fe711e8ae1b52f98bb008 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 14:53:08 +0300 Subject: [PATCH 05/25] HBS-0: test optimize fastSearch pine --- links/bond_close_days_back.pine.link | 6 +++--- links/high_and_low.pine.link | 30 +++++++++++++--------------- links/performance_crypto.pine.link | 2 +- links/performance_stocks.pine.link | 2 +- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 9 files changed, 24 insertions(+), 26 deletions(-) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index 65193cd2c..d22e7ccd8 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -5,9 +5,9 @@ yearYield = 365 dayAgoYield = timenow - 1000 * 60 * 60 * 24 * dayYield monthAgoYield = timenow - 1000 * 60 * 60 * 24 * monthYield yearAgoYield = timenow - 1000 * 60 * 60 * 24 * yearYield -countOfBars1DayAgoBond = fastSearchN(time, dayAgoYield, dayYield) -countOfBars1MonthAgoBond = fastSearchN(time, monthAgoYield, monthYield) -countOfBars1YearAgoBond = fastSearchN(time, yearAgoYield, yearYield) +countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) +countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) +countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) max_bars_back(close, yearYield) plot(close[countOfBars1DayAgoBond], title="close_1_days_back") diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 33d59d0e3..7e11734cc 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -70,24 +70,22 @@ custom_highest_and_date(_x, _xt, len, maxbarsback) => res := x[i] date := xt[i] [res, date] -fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending - xs = _xs - if bar_index == 0 - xs += xs[maxbarsback] * 0 // max_bars_back +fastSearchTimeIndex(x, maxbarsback) => + max_bars_back(time, maxbarsback) left = 0 right = math.min(bar_index, maxbarsback) mid = 0 - if xs < x + if time < x 0 else for i = 0 to 9 by 1 mid := math.ceil((left + right) / 2) if left == right break - else if xs[mid] < x + else if time[mid] < x right := mid continue - else if xs[mid] > x + else if time[mid] > x left := mid continue else @@ -95,13 +93,13 @@ fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending mid years5 = 365 * 4 + 366 years5_ago = timenow - 1000 * 60 * 60 * 24 * years5 -countOfBars5YearAgo = fastSearchN(time, years5_ago, years5) +countOfBars5YearAgo = fastSearchTimeIndex(years5_ago, years5) years3 = 365 * 3 years3_ago = timenow - 1000 * 60 * 60 * 24 * years3 -countOfBars3YearAgo = fastSearchN(time, years3_ago, years3) +countOfBars3YearAgo = fastSearchTimeIndex(years3_ago, years3) weeks52 = 7 * 52 weeks52_ago = timenow - 1000 * 60 * 60 * 24 * weeks52 -countOfBars52WeekAgo = fastSearchN(time, weeks52_ago, weeks52) +countOfBars52WeekAgo = fastSearchTimeIndex(weeks52_ago, weeks52) [weeks52_low, weeks52_low_date] = custom_lowest_and_date(low, time, countOfBars52WeekAgo, weeks52) plot(weeks52_low, title='price_52_week_low') plot(weeks52_low_date, title='price_52_week_low_date') @@ -110,7 +108,7 @@ plot(weeks52_high, title='price_52_week_high') plot(weeks52_high_date, title='price_52_week_high_date') month6 = 180 months6_ago = timenow - 1000 * 60 * 60 * 24 * month6 -countOfBars6MonthAgo = fastSearchN(time, months6_ago, month6) +countOfBars6MonthAgo = fastSearchTimeIndex(months6_ago, month6) [months6_low, months6_low_date] = custom_lowest_and_date(low, time, countOfBars6MonthAgo, month6) plot(months6_low, title='Low.6M') plot(months6_low_date, title='Low.6M.Date') @@ -119,7 +117,7 @@ plot(months6_high, title='High.6M') plot(months6_high_date, title='High.6M.Date') month3 = 90 months3_ago = timenow - 1000 * 60 * 60 * 24 * month3 -countOfBars3MonthAgo = fastSearchN(time, months3_ago, month3) +countOfBars3MonthAgo = fastSearchTimeIndex(months3_ago, month3) [months3_low, months3_low_date] = custom_lowest_and_date(low, time, countOfBars3MonthAgo, month3) plot(months3_low, title='Low.3M') plot(months3_low_date, title='Low.3M.Date') @@ -129,8 +127,8 @@ plot(months3_high_date, title='High.3M.Date') month1 = 30 month_ago_this_bar = time - 1000 * 60 * 60 * 24 * month1 month_ago = timenow - 1000 * 60 * 60 * 24 * month1 -countOfBars1MonthAgo = fastSearchN(time, month_ago, month1) -countOfBars1MonthAgoThisBar = fastSearchN(time, month_ago_this_bar, month1) +countOfBars1MonthAgo = fastSearchTimeIndex(month_ago, month1) +countOfBars1MonthAgoThisBar = fastSearchTimeIndex(month_ago_this_bar, month1) [month1_low, month1_low_date] = custom_lowest_and_date(low, time, countOfBars1MonthAgo, month1) plot(month1_low, title='Low.1M') plot(month1_low_date, title='Low.1M.Date') @@ -140,8 +138,8 @@ plot(month1_high_date, title='High.1M.Date') week1 = 7 week_ago = timenow - 1000 * 60 * 60 * 24 * week1 week_ago_this_bar = time - 1000 * 60 * 60 * 24 * week1 -countOfBarsWeekAgo = fastSearchN(time, week_ago, week1) -countOfBarsWeekAgoThisBar = fastSearchN(time, week_ago_this_bar, week1) +countOfBarsWeekAgo = fastSearchTimeIndex(week_ago, week1) +countOfBarsWeekAgoThisBar = fastSearchTimeIndex(week_ago_this_bar, week1) [week1_low] = custom_lowest_and_date(low, time, countOfBarsWeekAgo, week1) plot(week1_low, title='Low.5D') [week1_high] = custom_highest_and_date(high, time, countOfBarsWeekAgo, week1) diff --git a/links/performance_crypto.pine.link b/links/performance_crypto.pine.link index 484aac879..96f319953 100644 --- a/links/performance_crypto.pine.link +++ b/links/performance_crypto.pine.link @@ -22,7 +22,7 @@ plot(perf6M, title='Perf.6M') plot(perf6M_USD, title='Perf.6M.USD') oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) +barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) perfY = rr(barsCountOneYear, oneYear) perfY_USD = request.security(syminfo.tickerid, "D", perfY, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfY, title='Perf.Y') diff --git a/links/performance_stocks.pine.link b/links/performance_stocks.pine.link index 1d4df42c6..0909ab69f 100644 --- a/links/performance_stocks.pine.link +++ b/links/performance_stocks.pine.link @@ -2,7 +2,7 @@ // Perf. oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) +barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) perfYTD = perfYTD() plot((close - open[4]) / open[4] * 100, title='Perf.5D') plot(rr(countOfBarsWeekAgo, week1), title='Perf.W') diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index e115c89be..57a1ead07 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11($422,i:1)~$11($385,i:30)~$11($404,i:365)~v:max_bars_back(close,365):v~close@$423~close@$424~close@$425~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$427!$428!$429;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index a83861466..633b1012b 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($394,i:7)~#1~$14($386,i:30)~#2~$14($379,i:90)~#3~$14($373,i:180)~#4~timenow-31536000000~$11($414,i:365)~$14($415,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$422~#9~na():f~v:if(barstate.islast\u0026\u0026!na($423)\u0026\u0026!na($424)\u0026\u0026$423\u003e0){$425=($424-$423)*100/abs($423)~}~$425~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$416!$417!$418!$419!$420!$421!$423!$424!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index a256bd8fe..9d10f1054 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11(time,$0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11(time,$0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11(time,$0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11(time,$0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11(time,$0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11(time,$0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11(time,$412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($394,i:7)~#1~$14($386,i:30)~#2~$14($379,i:90)~#3~$14($373,i:180)~#4~timenow-31536000000~$11($414,i:365)~$14($415,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$422~#9~na():f~v:if(barstate.islast\u0026\u0026!na($423)\u0026\u0026!na($424)\u0026\u0026$423\u003e0){$425=($424-$423)*100/abs($423)~}~$425~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$416!$417!$418!$419!$420!$421!$423!$424!$427!$428!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 8bbfe2016..4c6452175 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index be2a6ddc6..119aa20d5 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From 515dc95d35138e5d540f38630e159170f5098519 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 15:22:48 +0300 Subject: [PATCH 06/25] HBS-0: test optimize fastSearch pine 2 --- links/high_and_low.pine.link | 4 ++-- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 7e11734cc..49fe16b7e 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -71,8 +71,8 @@ custom_highest_and_date(_x, _xt, len, maxbarsback) => date := xt[i] [res, date] fastSearchTimeIndex(x, maxbarsback) => - max_bars_back(time, maxbarsback) - left = 0 + // max_bars_back(time, maxbarsback) + left = 0 * time[maxbarsback] right = math.min(bar_index, maxbarsback) mid = 0 if time < x diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 57a1ead07..f06d92fa0 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11($422,i:1)~$11($385,i:30)~$11($404,i:365)~v:max_bars_back(close,365):v~close@$423~close@$424~close@$425~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$427!$428!$429;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11($422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 633b1012b..f208de68f 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($394,i:7)~#1~$14($386,i:30)~#2~$14($379,i:90)~#3~$14($373,i:180)~#4~timenow-31536000000~$11($414,i:365)~$14($415,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$422~#9~na():f~v:if(barstate.islast\u0026\u0026!na($423)\u0026\u0026!na($424)\u0026\u0026$423\u003e0){$425=($424-$423)*100/abs($423)~}~$425~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$416!$417!$418!$419!$420!$421!$423!$424!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-31449600000~$11($364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11($370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11($376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11($383,i:30)~$11($382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11($390,i:7)~$11($391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11($412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 9d10f1054..44df0b0ce 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($394,i:7)~#1~$14($386,i:30)~#2~$14($379,i:90)~#3~$14($373,i:180)~#4~timenow-31536000000~$11($414,i:365)~$14($415,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$422~#9~na():f~v:if(barstate.islast\u0026\u0026!na($423)\u0026\u0026!na($424)\u0026\u0026$423\u003e0){$425=($424-$423)*100/abs($423)~}~$425~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$412!$413!$416!$417!$418!$419!$420!$421!$423!$424!$427!$428!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-31449600000~$11($364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11($370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11($376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11($383,i:30)~$11($382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11($390,i:7)~$11($391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11($412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 4c6452175..5173e64a3 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 119aa20d5..1644bba50 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};v:max_bars_back(time,#1):v~0~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$3=ceil(($1+$2)/2)~v:ifelif_($1==$2){break~}elif(time@$3\u003c#0){$2=$3~continue~}elif(time@$3\u003e#0){$1=$3~continue~}_{break~}~}~$3};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From d1257718be3d3a59421978cdf2d4f3ba5f873805 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 15:42:54 +0300 Subject: [PATCH 07/25] HBS-0: revert 2 last commits (optimize fastSearch pine) --- links/bond_close_days_back.pine.link | 6 +++--- links/high_and_low.pine.link | 32 +++++++++++++++------------- links/performance_crypto.pine.link | 2 +- links/performance_stocks.pine.link | 2 +- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index d22e7ccd8..65193cd2c 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -5,9 +5,9 @@ yearYield = 365 dayAgoYield = timenow - 1000 * 60 * 60 * 24 * dayYield monthAgoYield = timenow - 1000 * 60 * 60 * 24 * monthYield yearAgoYield = timenow - 1000 * 60 * 60 * 24 * yearYield -countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) -countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) -countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) +countOfBars1DayAgoBond = fastSearchN(time, dayAgoYield, dayYield) +countOfBars1MonthAgoBond = fastSearchN(time, monthAgoYield, monthYield) +countOfBars1YearAgoBond = fastSearchN(time, yearAgoYield, yearYield) max_bars_back(close, yearYield) plot(close[countOfBars1DayAgoBond], title="close_1_days_back") diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 49fe16b7e..33d59d0e3 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -70,22 +70,24 @@ custom_highest_and_date(_x, _xt, len, maxbarsback) => res := x[i] date := xt[i] [res, date] -fastSearchTimeIndex(x, maxbarsback) => - // max_bars_back(time, maxbarsback) - left = 0 * time[maxbarsback] +fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending + xs = _xs + if bar_index == 0 + xs += xs[maxbarsback] * 0 // max_bars_back + left = 0 right = math.min(bar_index, maxbarsback) mid = 0 - if time < x + if xs < x 0 else for i = 0 to 9 by 1 mid := math.ceil((left + right) / 2) if left == right break - else if time[mid] < x + else if xs[mid] < x right := mid continue - else if time[mid] > x + else if xs[mid] > x left := mid continue else @@ -93,13 +95,13 @@ fastSearchTimeIndex(x, maxbarsback) => mid years5 = 365 * 4 + 366 years5_ago = timenow - 1000 * 60 * 60 * 24 * years5 -countOfBars5YearAgo = fastSearchTimeIndex(years5_ago, years5) +countOfBars5YearAgo = fastSearchN(time, years5_ago, years5) years3 = 365 * 3 years3_ago = timenow - 1000 * 60 * 60 * 24 * years3 -countOfBars3YearAgo = fastSearchTimeIndex(years3_ago, years3) +countOfBars3YearAgo = fastSearchN(time, years3_ago, years3) weeks52 = 7 * 52 weeks52_ago = timenow - 1000 * 60 * 60 * 24 * weeks52 -countOfBars52WeekAgo = fastSearchTimeIndex(weeks52_ago, weeks52) +countOfBars52WeekAgo = fastSearchN(time, weeks52_ago, weeks52) [weeks52_low, weeks52_low_date] = custom_lowest_and_date(low, time, countOfBars52WeekAgo, weeks52) plot(weeks52_low, title='price_52_week_low') plot(weeks52_low_date, title='price_52_week_low_date') @@ -108,7 +110,7 @@ plot(weeks52_high, title='price_52_week_high') plot(weeks52_high_date, title='price_52_week_high_date') month6 = 180 months6_ago = timenow - 1000 * 60 * 60 * 24 * month6 -countOfBars6MonthAgo = fastSearchTimeIndex(months6_ago, month6) +countOfBars6MonthAgo = fastSearchN(time, months6_ago, month6) [months6_low, months6_low_date] = custom_lowest_and_date(low, time, countOfBars6MonthAgo, month6) plot(months6_low, title='Low.6M') plot(months6_low_date, title='Low.6M.Date') @@ -117,7 +119,7 @@ plot(months6_high, title='High.6M') plot(months6_high_date, title='High.6M.Date') month3 = 90 months3_ago = timenow - 1000 * 60 * 60 * 24 * month3 -countOfBars3MonthAgo = fastSearchTimeIndex(months3_ago, month3) +countOfBars3MonthAgo = fastSearchN(time, months3_ago, month3) [months3_low, months3_low_date] = custom_lowest_and_date(low, time, countOfBars3MonthAgo, month3) plot(months3_low, title='Low.3M') plot(months3_low_date, title='Low.3M.Date') @@ -127,8 +129,8 @@ plot(months3_high_date, title='High.3M.Date') month1 = 30 month_ago_this_bar = time - 1000 * 60 * 60 * 24 * month1 month_ago = timenow - 1000 * 60 * 60 * 24 * month1 -countOfBars1MonthAgo = fastSearchTimeIndex(month_ago, month1) -countOfBars1MonthAgoThisBar = fastSearchTimeIndex(month_ago_this_bar, month1) +countOfBars1MonthAgo = fastSearchN(time, month_ago, month1) +countOfBars1MonthAgoThisBar = fastSearchN(time, month_ago_this_bar, month1) [month1_low, month1_low_date] = custom_lowest_and_date(low, time, countOfBars1MonthAgo, month1) plot(month1_low, title='Low.1M') plot(month1_low_date, title='Low.1M.Date') @@ -138,8 +140,8 @@ plot(month1_high_date, title='High.1M.Date') week1 = 7 week_ago = timenow - 1000 * 60 * 60 * 24 * week1 week_ago_this_bar = time - 1000 * 60 * 60 * 24 * week1 -countOfBarsWeekAgo = fastSearchTimeIndex(week_ago, week1) -countOfBarsWeekAgoThisBar = fastSearchTimeIndex(week_ago_this_bar, week1) +countOfBarsWeekAgo = fastSearchN(time, week_ago, week1) +countOfBarsWeekAgoThisBar = fastSearchN(time, week_ago_this_bar, week1) [week1_low] = custom_lowest_and_date(low, time, countOfBarsWeekAgo, week1) plot(week1_low, title='Low.5D') [week1_high] = custom_highest_and_date(high, time, countOfBarsWeekAgo, week1) diff --git a/links/performance_crypto.pine.link b/links/performance_crypto.pine.link index 96f319953..484aac879 100644 --- a/links/performance_crypto.pine.link +++ b/links/performance_crypto.pine.link @@ -22,7 +22,7 @@ plot(perf6M, title='Perf.6M') plot(perf6M_USD, title='Perf.6M.USD') oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) +barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) perfY = rr(barsCountOneYear, oneYear) perfY_USD = request.security(syminfo.tickerid, "D", perfY, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfY, title='Perf.Y') diff --git a/links/performance_stocks.pine.link b/links/performance_stocks.pine.link index 0909ab69f..1d4df42c6 100644 --- a/links/performance_stocks.pine.link +++ b/links/performance_stocks.pine.link @@ -2,7 +2,7 @@ // Perf. oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) +barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) perfYTD = perfYTD() plot((close - open[4]) / open[4] * 100, title='Perf.5D') plot(rr(countOfBarsWeekAgo, week1), title='Perf.W') From 2f44a7cd963e4112d3ca064c9f6495d7b293f7de Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 15:52:33 +0300 Subject: [PATCH 08/25] HBS-0: optimize crypto perf pine (inlines) --- links/performance_crypto.pine.link | 35 +++++++++++++++--------------- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 30 ++++++++++++------------- scanner.data.crypto.json | 30 ++++++++++++------------- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 51 insertions(+), 50 deletions(-) diff --git a/links/performance_crypto.pine.link b/links/performance_crypto.pine.link index 484aac879..501c2758b 100644 --- a/links/performance_crypto.pine.link +++ b/links/performance_crypto.pine.link @@ -1,44 +1,45 @@ // Performance for cryptocurrency // Perf.<5D | W | 1M | 3M | 6M | Y | 5Y | YTD> perf5D = (close - open[4]) / open[4] * 100 -perf5D_USD = request.security(syminfo.tickerid, "D", perf5D, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf5D, title='Perf.5D') -plot(perf5D_USD, title='Perf.5D.USD') + perfW = rr(countOfBarsWeekAgo, week1) -perfW_USD = request.security(syminfo.tickerid, "D", perfW, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfW, title='Perf.W') -plot(perfW_USD, title='Perf.W.USD') + perf1M = rr(countOfBars1MonthAgo, month1) -perf1M_USD = request.security(syminfo.tickerid, "D", perf1M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf1M, title='Perf.1M') -plot(perf1M_USD, title='Perf.1M.USD') + perf3M = rr(countOfBars3MonthAgo, month3) -perf3M_USD = request.security(syminfo.tickerid, "D", perf3M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf3M, title='Perf.3M') -plot(perf3M_USD, title='Perf.3M.USD') + perf6M = rr(countOfBars6MonthAgo, month6) -perf6M_USD = request.security(syminfo.tickerid, "D", perf6M, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf6M, title='Perf.6M') -plot(perf6M_USD, title='Perf.6M.USD') + oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) perfY = rr(barsCountOneYear, oneYear) -perfY_USD = request.security(syminfo.tickerid, "D", perfY, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfY, title='Perf.Y') -plot(perfY_USD, title='Perf.Y.USD') + perf5Y = rr(countOfBars5YearAgo, years5) -perf5Y_USD = request.security(syminfo.tickerid, "D", perf5Y, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perf5Y, title='Perf.5Y') -plot(perf5Y_USD, title='Perf.5Y.USD') + perfYTD = perfYTD() -perfYTD_USD = request.security(syminfo.tickerid, "D", perfYTD, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) plot(perfYTD, title='Perf.YTD') + +[perf5D_USD, perfW_USD, perf1M_USD, perf3M_USD, perf6M_USD, perfY_USD, perf5Y_USD, perfYTD_USD] = request.security(syminfo.tickerid, "D", [perf5D, perfW, perf1M, perf3M, perf6M, perfY, perf5Y, perfYTD], lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) + +plot(perf5D_USD, title='Perf.5D.USD') +plot(perfW_USD, title='Perf.W.USD') +plot(perf1M_USD, title='Perf.1M.USD') +plot(perf3M_USD, title='Perf.3M.USD') +plot(perf6M_USD, title='Perf.6M.USD') +plot(perfY_USD, title='Perf.Y.USD') +plot(perf5Y_USD, title='Perf.5Y.USD') plot(perfYTD_USD, title='Perf.YTD.USD') // Perf.All -var float firstOpenUSD = request.security(syminfo.tickerid, "D", open, lookahead = barmerge.lookahead_on, currency = "USD", ignore_invalid_symbol=true) -lastCloseUSD = request.security(syminfo.tickerid, "D", close, lookahead = barmerge.lookahead_off, currency = "USD", ignore_invalid_symbol=true) +[firstOpenUSD, lastCloseUSD] = request.security(syminfo.tickerid, "D", [open, close], lookahead = barmerge.lookahead_on, currency = "USD", ignore_invalid_symbol=true) float perfAllUSD = na if barstate.islast and not na(firstOpenUSD) and not na(lastCloseUSD) and firstOpenUSD > 0 perfAllUSD := (lastCloseUSD - firstOpenUSD) * 100 / math.abs(firstOpenUSD) diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index f06d92fa0..e115c89be 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11($422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index f208de68f..14b24ea13 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-31449600000~$11($364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11($370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11($376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11($383,i:30)~$11($382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11($390,i:7)~$11($391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11($412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s265:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s265~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", "isFake": false }, { @@ -1747,19 +1747,19 @@ "isHidden": false }, "plot_246": { - "title": "Perf.5D.USD", + "title": "Perf.W", "isHidden": false }, "plot_247": { - "title": "Perf.W", + "title": "Perf.1M", "isHidden": false }, "plot_248": { - "title": "Perf.W.USD", + "title": "Perf.3M", "isHidden": false }, "plot_249": { - "title": "Perf.1M", + "title": "Perf.6M", "isHidden": false }, "plot_25": { @@ -1767,43 +1767,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.1M.USD", + "title": "Perf.Y", "isHidden": false }, "plot_251": { - "title": "Perf.3M", + "title": "Perf.5Y", "isHidden": false }, "plot_252": { - "title": "Perf.3M.USD", + "title": "Perf.YTD", "isHidden": false }, "plot_253": { - "title": "Perf.6M", + "title": "Perf.5D.USD", "isHidden": false }, "plot_254": { - "title": "Perf.6M.USD", + "title": "Perf.W.USD", "isHidden": false }, "plot_255": { - "title": "Perf.Y", + "title": "Perf.1M.USD", "isHidden": false }, "plot_256": { - "title": "Perf.Y.USD", + "title": "Perf.3M.USD", "isHidden": false }, "plot_257": { - "title": "Perf.5Y", + "title": "Perf.6M.USD", "isHidden": false }, "plot_258": { - "title": "Perf.5Y.USD", + "title": "Perf.Y.USD", "isHidden": false }, "plot_259": { - "title": "Perf.YTD", + "title": "Perf.5Y.USD", "isHidden": false }, "plot_26": { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 44df0b0ce..230c03760 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);((close-open@4)/open@4)*100~$0;timenow-604800000~$11($0,i:7)~$14($1,i:7)~$2;timenow-2592000000~$11($0,i:30)~$14($1,i:30)~$2;timenow-7776000000~$11($0,i:90)~$14($1,i:90)~$2;timenow-15552000000~$11($0,i:180)~$14($1,i:180)~$2;timenow-31536000000~$11($0,i:365)~$14($1,i:365)~$2;timenow-157766400000~$11($0,i:1826)~$14($1,i:1826)~$2;$15()~$0;open~$0;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-31449600000~$11($364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11($370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11($376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11($383,i:30)~$11($382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11($390,i:7)~$11($391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~#0~$14($392,i:7)~#1~$14($384,i:30)~#2~$14($377,i:90)~#3~$14($371,i:180)~#4~timenow-31536000000~$11($412,i:365)~$14($413,i:365)~#5~$14($363,i:1826)~#6~$15()~#7~#8~v^$420~#9~na():f~v:if(barstate.islast\u0026\u0026!na($421)\u0026\u0026!na($422)\u0026\u0026$421\u003e0){$423=($422-$421)*100/abs($421)~}~$423~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$407!$408!$409!$410!$411!$414!$415!$416!$417!$418!$419!$421!$422!$425!$426!$427!$428;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$16()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$17()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$18()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$19()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$20()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$21()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$22()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$23()|sym(tickerid,'D','D',0,1,1,'USD',0,0,$27)|$24()|sym(tickerid,'D','D',0,0,1,'USD',0,0,$27)|$25()|s267:$26($29,$32,$35,$38,$41,$44,$47,$50,$53,$56):s267~$58!$59!$60!$61!$62!$63!$64!$65!$66!$142!$68!$69!$70!$71!$145!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$160!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { @@ -1755,19 +1755,19 @@ "isHidden": false }, "plot_246": { - "title": "Perf.5D.USD", + "title": "Perf.W", "isHidden": false }, "plot_247": { - "title": "Perf.W", + "title": "Perf.1M", "isHidden": false }, "plot_248": { - "title": "Perf.W.USD", + "title": "Perf.3M", "isHidden": false }, "plot_249": { - "title": "Perf.1M", + "title": "Perf.6M", "isHidden": false }, "plot_25": { @@ -1775,43 +1775,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.1M.USD", + "title": "Perf.Y", "isHidden": false }, "plot_251": { - "title": "Perf.3M", + "title": "Perf.5Y", "isHidden": false }, "plot_252": { - "title": "Perf.3M.USD", + "title": "Perf.YTD", "isHidden": false }, "plot_253": { - "title": "Perf.6M", + "title": "Perf.5D.USD", "isHidden": false }, "plot_254": { - "title": "Perf.6M.USD", + "title": "Perf.W.USD", "isHidden": false }, "plot_255": { - "title": "Perf.Y", + "title": "Perf.1M.USD", "isHidden": false }, "plot_256": { - "title": "Perf.Y.USD", + "title": "Perf.3M.USD", "isHidden": false }, "plot_257": { - "title": "Perf.5Y", + "title": "Perf.6M.USD", "isHidden": false }, "plot_258": { - "title": "Perf.5Y.USD", + "title": "Perf.Y.USD", "isHidden": false }, "plot_259": { - "title": "Perf.YTD", + "title": "Perf.5Y.USD", "isHidden": false }, "plot_26": { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 5173e64a3..8bbfe2016 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 1644bba50..be2a6ddc6 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$2=ceil(($0+$1)/2)~v:ifelif_($0==$1){break~}elif(time@$2\u003c#0){$1=$2~continue~}elif(time@$2\u003e#0){$0=$2~continue~}_{break~}~}~$2};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11($362,i:1826)~timenow-94608000000~$11($364,i:1095)~timenow-31449600000~$11($366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11($372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11($378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11($385,i:30)~$11($384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11($392,i:7)~$11($393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From 3ef7b53e3eea8b61d91d12de35634a5dcc9eb972 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 16:09:28 +0300 Subject: [PATCH 09/25] HBS-0: optimize custom highest and lowest pine --- links/high_and_low.pine.link | 67 +++++++++++++++--------------------- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 33 insertions(+), 44 deletions(-) diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 33d59d0e3..a7a602f8e 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -26,50 +26,39 @@ plot(atl, title='Low.All.Calc') plot(atl_date, title='Low.All.Calc.Date') var firstOpen = open plot(firstOpen, title='Open.All.Calc') -custom_lowest_and_date(_x, _xt, len, maxbarsback) => - x = _x - xt = _xt/1000 - if bar_index == 0 - x += x[maxbarsback] * 0 // max_bars_back - xt += xt[maxbarsback] * 0 // max_bars_back +custom_lowest_and_date(len, maxbarsback) => + max_bars_back(low, maxbarsback) + max_bars_back(time, maxbarsback) if len == 0 [na, na] else if len == 1 - [x, xt] + [low, time / 1000] else _len = len - if na(x[len + 1]) != true + if not na(low[len + 1]) _len -= 1 _len - res = x - res := x - date = xt + index = 0 for i = 0 to _len by 1 - if x[i] < res - res := x[i] - date := xt[i] - [res, date] -custom_highest_and_date(_x, _xt, len, maxbarsback) => - x = _x - xt = _xt/1000 - if bar_index == 0 - x += x[maxbarsback] * 0 // max_bars_back - xt += xt[maxbarsback] * 0 // max_bars_back + if low[i] < low[index] + index := i + [low[index], time[index] / 1000] +custom_highest_and_date(len, maxbarsback) => + max_bars_back(high, maxbarsback) + max_bars_back(time, maxbarsback) if len == 0 [na, na] else if len == 1 - [x, xt] + [high, time / 1000] else _len = len - if na(x[len + 1]) != true + if not na(high[len + 1]) _len -= 1 - res = x - date = xt + index = 0 for i = 0 to _len by 1 - if x[i] > res - res := x[i] - date := xt[i] - [res, date] + if high[i] > high[index] + index := i + [high[index], time[index] / 1000] fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending xs = _xs if bar_index == 0 @@ -102,28 +91,28 @@ countOfBars3YearAgo = fastSearchN(time, years3_ago, years3) weeks52 = 7 * 52 weeks52_ago = timenow - 1000 * 60 * 60 * 24 * weeks52 countOfBars52WeekAgo = fastSearchN(time, weeks52_ago, weeks52) -[weeks52_low, weeks52_low_date] = custom_lowest_and_date(low, time, countOfBars52WeekAgo, weeks52) +[weeks52_low, weeks52_low_date] = custom_lowest_and_date(countOfBars52WeekAgo, weeks52) plot(weeks52_low, title='price_52_week_low') plot(weeks52_low_date, title='price_52_week_low_date') -[weeks52_high, weeks52_high_date] = custom_highest_and_date(high, time, countOfBars52WeekAgo, weeks52) +[weeks52_high, weeks52_high_date] = custom_highest_and_date(countOfBars52WeekAgo, weeks52) plot(weeks52_high, title='price_52_week_high') plot(weeks52_high_date, title='price_52_week_high_date') month6 = 180 months6_ago = timenow - 1000 * 60 * 60 * 24 * month6 countOfBars6MonthAgo = fastSearchN(time, months6_ago, month6) -[months6_low, months6_low_date] = custom_lowest_and_date(low, time, countOfBars6MonthAgo, month6) +[months6_low, months6_low_date] = custom_lowest_and_date(countOfBars6MonthAgo, month6) plot(months6_low, title='Low.6M') plot(months6_low_date, title='Low.6M.Date') -[months6_high, months6_high_date] = custom_highest_and_date(high, time, countOfBars6MonthAgo, month6) +[months6_high, months6_high_date] = custom_highest_and_date(countOfBars6MonthAgo, month6) plot(months6_high, title='High.6M') plot(months6_high_date, title='High.6M.Date') month3 = 90 months3_ago = timenow - 1000 * 60 * 60 * 24 * month3 countOfBars3MonthAgo = fastSearchN(time, months3_ago, month3) -[months3_low, months3_low_date] = custom_lowest_and_date(low, time, countOfBars3MonthAgo, month3) +[months3_low, months3_low_date] = custom_lowest_and_date(countOfBars3MonthAgo, month3) plot(months3_low, title='Low.3M') plot(months3_low_date, title='Low.3M.Date') -[months3_high, months3_high_date] = custom_highest_and_date(high, time, countOfBars3MonthAgo, month3) +[months3_high, months3_high_date] = custom_highest_and_date(countOfBars3MonthAgo, month3) plot(months3_high, title='High.3M') plot(months3_high_date, title='High.3M.Date') month1 = 30 @@ -131,10 +120,10 @@ month_ago_this_bar = time - 1000 * 60 * 60 * 24 * month1 month_ago = timenow - 1000 * 60 * 60 * 24 * month1 countOfBars1MonthAgo = fastSearchN(time, month_ago, month1) countOfBars1MonthAgoThisBar = fastSearchN(time, month_ago_this_bar, month1) -[month1_low, month1_low_date] = custom_lowest_and_date(low, time, countOfBars1MonthAgo, month1) +[month1_low, month1_low_date] = custom_lowest_and_date(countOfBars1MonthAgo, month1) plot(month1_low, title='Low.1M') plot(month1_low_date, title='Low.1M.Date') -[month1_high, month1_high_date] = custom_highest_and_date(high, time, countOfBars1MonthAgo, month1) +[month1_high, month1_high_date] = custom_highest_and_date(countOfBars1MonthAgo, month1) plot(month1_high, title='High.1M') plot(month1_high_date, title='High.1M.Date') week1 = 7 @@ -142,9 +131,9 @@ week_ago = timenow - 1000 * 60 * 60 * 24 * week1 week_ago_this_bar = time - 1000 * 60 * 60 * 24 * week1 countOfBarsWeekAgo = fastSearchN(time, week_ago, week1) countOfBarsWeekAgoThisBar = fastSearchN(time, week_ago_this_bar, week1) -[week1_low] = custom_lowest_and_date(low, time, countOfBarsWeekAgo, week1) +[week1_low] = custom_lowest_and_date(countOfBarsWeekAgo, week1) plot(week1_low, title='Low.5D') -[week1_high] = custom_highest_and_date(high, time, countOfBarsWeekAgo, week1) +[week1_high] = custom_highest_and_date(countOfBarsWeekAgo, week1) plot(week1_high, title='High.5D') // volatility volatility(bb) => diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index e115c89be..a7b907959 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 14b24ea13..9b10eb316 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 230c03760..16e9ce572 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 8bbfe2016..6ab34b825 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index be2a6ddc6..3af5b38c1 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From 9b17ef3566fa33a167457ce6cfff9d0deb9e6ae5 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 16:18:14 +0300 Subject: [PATCH 10/25] HBS-0: optimize custom highest and lowest pine 2 --- links/high_and_low.pine.link | 12 ++++++------ scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index a7a602f8e..e89f152d1 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -27,9 +27,9 @@ plot(atl_date, title='Low.All.Calc.Date') var firstOpen = open plot(firstOpen, title='Open.All.Calc') custom_lowest_and_date(len, maxbarsback) => - max_bars_back(low, maxbarsback) - max_bars_back(time, maxbarsback) - if len == 0 + // max_bars_back(low, maxbarsback) + // max_bars_back(time, maxbarsback) + if len == 0 * low[maxbarsback] * time[maxbarsback] [na, na] else if len == 1 [low, time / 1000] @@ -44,9 +44,9 @@ custom_lowest_and_date(len, maxbarsback) => index := i [low[index], time[index] / 1000] custom_highest_and_date(len, maxbarsback) => - max_bars_back(high, maxbarsback) - max_bars_back(time, maxbarsback) - if len == 0 + // max_bars_back(high, maxbarsback) + // max_bars_back(time, maxbarsback) + if len == 0 * high[maxbarsback] * time[maxbarsback] [na, na] else if len == 1 [high, time / 1000] diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index a7b907959..fc3339c25 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 9b10eb316..e51e08c4d 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 16e9ce572..6f6a7c4fb 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 6ab34b825..9c18d2599 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 3af5b38c1..e1a291b00 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v:max_bars_back(low,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};v:max_bars_back(high,#1):v~v:max_bars_back(time,#1):v~s2:ifelif_(#0==0){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From 86d77d98707f8e439f07831779dcef20b49e5e65 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 17:02:07 +0300 Subject: [PATCH 11/25] HBS-0: revert optimize custom highest and lowest pine --- links/high_and_low.pine.link | 71 +++++++++++++++++++++--------------- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 46 insertions(+), 35 deletions(-) diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index e89f152d1..33d59d0e3 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -26,39 +26,50 @@ plot(atl, title='Low.All.Calc') plot(atl_date, title='Low.All.Calc.Date') var firstOpen = open plot(firstOpen, title='Open.All.Calc') -custom_lowest_and_date(len, maxbarsback) => - // max_bars_back(low, maxbarsback) - // max_bars_back(time, maxbarsback) - if len == 0 * low[maxbarsback] * time[maxbarsback] +custom_lowest_and_date(_x, _xt, len, maxbarsback) => + x = _x + xt = _xt/1000 + if bar_index == 0 + x += x[maxbarsback] * 0 // max_bars_back + xt += xt[maxbarsback] * 0 // max_bars_back + if len == 0 [na, na] else if len == 1 - [low, time / 1000] + [x, xt] else _len = len - if not na(low[len + 1]) + if na(x[len + 1]) != true _len -= 1 _len - index = 0 + res = x + res := x + date = xt for i = 0 to _len by 1 - if low[i] < low[index] - index := i - [low[index], time[index] / 1000] -custom_highest_and_date(len, maxbarsback) => - // max_bars_back(high, maxbarsback) - // max_bars_back(time, maxbarsback) - if len == 0 * high[maxbarsback] * time[maxbarsback] + if x[i] < res + res := x[i] + date := xt[i] + [res, date] +custom_highest_and_date(_x, _xt, len, maxbarsback) => + x = _x + xt = _xt/1000 + if bar_index == 0 + x += x[maxbarsback] * 0 // max_bars_back + xt += xt[maxbarsback] * 0 // max_bars_back + if len == 0 [na, na] else if len == 1 - [high, time / 1000] + [x, xt] else _len = len - if not na(high[len + 1]) + if na(x[len + 1]) != true _len -= 1 - index = 0 + res = x + date = xt for i = 0 to _len by 1 - if high[i] > high[index] - index := i - [high[index], time[index] / 1000] + if x[i] > res + res := x[i] + date := xt[i] + [res, date] fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending xs = _xs if bar_index == 0 @@ -91,28 +102,28 @@ countOfBars3YearAgo = fastSearchN(time, years3_ago, years3) weeks52 = 7 * 52 weeks52_ago = timenow - 1000 * 60 * 60 * 24 * weeks52 countOfBars52WeekAgo = fastSearchN(time, weeks52_ago, weeks52) -[weeks52_low, weeks52_low_date] = custom_lowest_and_date(countOfBars52WeekAgo, weeks52) +[weeks52_low, weeks52_low_date] = custom_lowest_and_date(low, time, countOfBars52WeekAgo, weeks52) plot(weeks52_low, title='price_52_week_low') plot(weeks52_low_date, title='price_52_week_low_date') -[weeks52_high, weeks52_high_date] = custom_highest_and_date(countOfBars52WeekAgo, weeks52) +[weeks52_high, weeks52_high_date] = custom_highest_and_date(high, time, countOfBars52WeekAgo, weeks52) plot(weeks52_high, title='price_52_week_high') plot(weeks52_high_date, title='price_52_week_high_date') month6 = 180 months6_ago = timenow - 1000 * 60 * 60 * 24 * month6 countOfBars6MonthAgo = fastSearchN(time, months6_ago, month6) -[months6_low, months6_low_date] = custom_lowest_and_date(countOfBars6MonthAgo, month6) +[months6_low, months6_low_date] = custom_lowest_and_date(low, time, countOfBars6MonthAgo, month6) plot(months6_low, title='Low.6M') plot(months6_low_date, title='Low.6M.Date') -[months6_high, months6_high_date] = custom_highest_and_date(countOfBars6MonthAgo, month6) +[months6_high, months6_high_date] = custom_highest_and_date(high, time, countOfBars6MonthAgo, month6) plot(months6_high, title='High.6M') plot(months6_high_date, title='High.6M.Date') month3 = 90 months3_ago = timenow - 1000 * 60 * 60 * 24 * month3 countOfBars3MonthAgo = fastSearchN(time, months3_ago, month3) -[months3_low, months3_low_date] = custom_lowest_and_date(countOfBars3MonthAgo, month3) +[months3_low, months3_low_date] = custom_lowest_and_date(low, time, countOfBars3MonthAgo, month3) plot(months3_low, title='Low.3M') plot(months3_low_date, title='Low.3M.Date') -[months3_high, months3_high_date] = custom_highest_and_date(countOfBars3MonthAgo, month3) +[months3_high, months3_high_date] = custom_highest_and_date(high, time, countOfBars3MonthAgo, month3) plot(months3_high, title='High.3M') plot(months3_high_date, title='High.3M.Date') month1 = 30 @@ -120,10 +131,10 @@ month_ago_this_bar = time - 1000 * 60 * 60 * 24 * month1 month_ago = timenow - 1000 * 60 * 60 * 24 * month1 countOfBars1MonthAgo = fastSearchN(time, month_ago, month1) countOfBars1MonthAgoThisBar = fastSearchN(time, month_ago_this_bar, month1) -[month1_low, month1_low_date] = custom_lowest_and_date(countOfBars1MonthAgo, month1) +[month1_low, month1_low_date] = custom_lowest_and_date(low, time, countOfBars1MonthAgo, month1) plot(month1_low, title='Low.1M') plot(month1_low_date, title='Low.1M.Date') -[month1_high, month1_high_date] = custom_highest_and_date(countOfBars1MonthAgo, month1) +[month1_high, month1_high_date] = custom_highest_and_date(high, time, countOfBars1MonthAgo, month1) plot(month1_high, title='High.1M') plot(month1_high_date, title='High.1M.Date') week1 = 7 @@ -131,9 +142,9 @@ week_ago = timenow - 1000 * 60 * 60 * 24 * week1 week_ago_this_bar = time - 1000 * 60 * 60 * 24 * week1 countOfBarsWeekAgo = fastSearchN(time, week_ago, week1) countOfBarsWeekAgoThisBar = fastSearchN(time, week_ago_this_bar, week1) -[week1_low] = custom_lowest_and_date(countOfBarsWeekAgo, week1) +[week1_low] = custom_lowest_and_date(low, time, countOfBarsWeekAgo, week1) plot(week1_low, title='Low.5D') -[week1_high] = custom_highest_and_date(countOfBarsWeekAgo, week1) +[week1_high] = custom_highest_and_date(high, time, countOfBarsWeekAgo, week1) plot(week1_high, title='High.5D') // volatility volatility(bb) => diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index fc3339c25..e115c89be 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index e51e08c4d..14b24ea13 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 6f6a7c4fb..230c03760 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9($365,i:364):s2~s2:$10($365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9($371,i:180):s2~s2:$10($371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9($377,i:90):s2~s2:$10($377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9($384,i:30):s2~s2:$10($384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9($392,i:7):s2~s2:$10($392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 9c18d2599..8bbfe2016 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index e1a291b00..be2a6ddc6 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;s2:ifelif_(#0==(0*low@#1)*time@#1){na():f!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(low@$8\u003clow@$7){$7=$8~}~}~low@$7!time@$7/1000};s2:ifelif_(#0==(0*high@#1)*time@#1){na():f!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$5)){$4=$4-1~}~0~v:for(0;$4;1){v:if(high@$8\u003ehigh@$7){$7=$8~}~}~high@$7!time@$7/1000};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9($367,i:364):s2~s2:$10($367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9($373,i:180):s2~s2:$10($373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9($379,i:90):s2~s2:$10($379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9($386,i:30):s2~s2:$10($386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9($394,i:7):s2~s2:$10($394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", "isFake": false }, { From e2db62f7f33eb71c352093497c8cd0c7edb9d4b6 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Fri, 16 Feb 2024 17:42:10 +0300 Subject: [PATCH 12/25] HBS-0: upd pince scripts from nyc --- links/common.pine.link | 16 +- links/high_and_low.pine.link | 3 + links/performance_market_cap.pine.link | 2 +- links/performance_stocks.pine.link | 3 +- scanner.data.bonds.json | 428 +++++++++++----------- scanner.data.coin.json | 428 +++++++++++----------- scanner.data.crypto.json | 432 +++++++++++----------- scanner.data.futures.json | 418 +++++++++++---------- scanner.data.json | 484 +++++++++++++------------ scanner.data.simple.5.json | 326 +++++++++-------- scanner.data.simple.bonds.json | 330 +++++++++-------- scanner.data.simple.coin.5.json | 342 ++++++++--------- scanner.data.simple.coin.json | 324 +++++++++-------- scanner.data.simple.crypto.5.json | 344 +++++++++--------- scanner.data.simple.crypto.json | 328 +++++++++-------- scanner.data.simple.json | 324 +++++++++-------- 16 files changed, 2381 insertions(+), 2151 deletions(-) diff --git a/links/common.pine.link b/links/common.pine.link index f23c5170d..2853f6176 100644 --- a/links/common.pine.link +++ b/links/common.pine.link @@ -117,7 +117,11 @@ plot(RSI21, title='RSI21') plot(RSI21[1], title='RSI21[1]') // study(title="Average True Range", shorttitle="ATR", overlay=false) -plot(ta.rma(ta.tr(true), 14), title='ATR') +ATR = ta.rma(ta.tr(true), 14) +plot(ATR, title='ATR') + +// Average True Range Percent (ATRP) +plot(ATR / close * 100, title='ATRP') // study("Average Directional Index", shorttitle="ADX") dirmov(len) => @@ -346,8 +350,14 @@ plot(IC_Lead2_20_60_120_30[IC_displacement], title='Ichimoku.Lead2_20_60_120_30' VWMA = ta.vwma(close, 20) plot(VWMA, title='VWMA') -// Average Day Range -plot(ta.sma(high - low, 14), title='ADR') +// Average Day Range (ADR) +smaHigh = ta.sma(high, 14) +smaLow = ta.sma(low, 14) +ADR = smaHigh - smaLow +plot(ADR, title='ADR') + +// Average Day Range Percent (ADRP) +plot(ADR / close * 100, title='ADRP') //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PriceAvg = EMA50 diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 33d59d0e3..24863e68c 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -93,6 +93,9 @@ fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending else break mid +years10 = (365 * 4 + 366) * 2 +years10_ago = timenow - 1000 * 60 * 60 * 24 * years10 +countOfBars10YearAgo = fastSearchN(time, years10_ago, years10) years5 = 365 * 4 + 366 years5_ago = timenow - 1000 * 60 * 60 * 24 * years5 countOfBars5YearAgo = fastSearchN(time, years5_ago, years5) diff --git a/links/performance_market_cap.pine.link b/links/performance_market_cap.pine.link index abd239e9e..f8bcaf0df 100644 --- a/links/performance_market_cap.pine.link +++ b/links/performance_market_cap.pine.link @@ -36,7 +36,7 @@ fundPerfYTD() => max_bars_back(close, 2*oneYear) lastI = 0 - for i = 0 to bar_index + for i = 1 to bar_index if year(time[i], syminfo.timezone) < year lastI := i - 1 break diff --git a/links/performance_stocks.pine.link b/links/performance_stocks.pine.link index 1d4df42c6..2bd4f4a9d 100644 --- a/links/performance_stocks.pine.link +++ b/links/performance_stocks.pine.link @@ -1,5 +1,5 @@ // Performance for stocks -// Perf. +// Perf. oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) @@ -12,4 +12,5 @@ plot(rr(countOfBars6MonthAgo, month6), title='Perf.6M') plot(rr(barsCountOneYear, oneYear), title='Perf.Y') plot(rr(countOfBars3YearAgo, years3), title='Perf.3Y') plot(rr(countOfBars5YearAgo, years5), title='Perf.5Y') +plot(rr(countOfBars10YearAgo, years10), title='Perf.10Y') plot(perfYTD, title='Perf.YTD') \ No newline at end of file diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index e115c89be..9b4331d80 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$416~$417-$417@1~na():f~v:if(!($417@1\u003c0)\u0026\u0026!($417\u003c0)){$419=($418/$417@1)*100~}~$419~timenow-86400000~$11(time,$422,i:1)~v:max_bars_back(close,365):v~close@$423~close@$386~close@$405~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$417!$418!$421!$425!$426!$427;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s261:$17($22):s261~$24!$25!$26!$27!$28!$29!$30!$31!$32!$108!$34!$35!$36!$37!$111!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11(time,$429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { @@ -1066,6 +1066,18 @@ { "id": "plot_260", "type": "line" + }, + { + "id": "plot_261", + "type": "line" + }, + { + "id": "plot_262", + "type": "line" + }, + { + "id": "plot_263", + "type": "line" } ], "version": "", @@ -1087,43 +1099,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -1131,43 +1143,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1175,43 +1187,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1219,43 +1231,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1263,43 +1275,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1307,43 +1319,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1351,43 +1363,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1395,43 +1407,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1439,43 +1451,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1483,43 +1495,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1531,43 +1543,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1575,43 +1587,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "High.All", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "High.All.Date", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "High.All.Calc", + "title": "High.All", "isHidden": false }, "plot_216": { - "title": "High.All.Calc.Date", + "title": "High.All.Date", "isHidden": false }, "plot_217": { - "title": "Low.After.High.All", + "title": "High.All.Calc", "isHidden": false }, "plot_218": { - "title": "Low.All", + "title": "High.All.Calc.Date", "isHidden": false }, "plot_219": { - "title": "Low.All.Date", + "title": "Low.After.High.All", "isHidden": false }, "plot_22": { @@ -1619,43 +1631,43 @@ "isHidden": false }, "plot_220": { - "title": "Low.All.Calc", + "title": "Low.All", "isHidden": false }, "plot_221": { - "title": "Low.All.Calc.Date", + "title": "Low.All.Date", "isHidden": false }, "plot_222": { - "title": "Open.All.Calc", + "title": "Low.All.Calc", "isHidden": false }, "plot_223": { - "title": "price_52_week_low", + "title": "Low.All.Calc.Date", "isHidden": false }, "plot_224": { - "title": "price_52_week_low_date", + "title": "Open.All.Calc", "isHidden": false }, "plot_225": { - "title": "price_52_week_high", + "title": "price_52_week_low", "isHidden": false }, "plot_226": { - "title": "price_52_week_high_date", + "title": "price_52_week_low_date", "isHidden": false }, "plot_227": { - "title": "Low.6M", + "title": "price_52_week_high", "isHidden": false }, "plot_228": { - "title": "Low.6M.Date", + "title": "price_52_week_high_date", "isHidden": false }, "plot_229": { - "title": "High.6M", + "title": "Low.6M", "isHidden": false }, "plot_23": { @@ -1663,43 +1675,43 @@ "isHidden": false }, "plot_230": { - "title": "High.6M.Date", + "title": "Low.6M.Date", "isHidden": false }, "plot_231": { - "title": "Low.3M", + "title": "High.6M", "isHidden": false }, "plot_232": { - "title": "Low.3M.Date", + "title": "High.6M.Date", "isHidden": false }, "plot_233": { - "title": "High.3M", + "title": "Low.3M", "isHidden": false }, "plot_234": { - "title": "High.3M.Date", + "title": "Low.3M.Date", "isHidden": false }, "plot_235": { - "title": "Low.1M", + "title": "High.3M", "isHidden": false }, "plot_236": { - "title": "Low.1M.Date", + "title": "High.3M.Date", "isHidden": false }, "plot_237": { - "title": "High.1M", + "title": "Low.1M", "isHidden": false }, "plot_238": { - "title": "High.1M.Date", + "title": "Low.1M.Date", "isHidden": false }, "plot_239": { - "title": "Low.5D", + "title": "High.1M", "isHidden": false }, "plot_24": { @@ -1707,43 +1719,43 @@ "isHidden": false }, "plot_240": { - "title": "High.5D", + "title": "High.1M.Date", "isHidden": false }, "plot_241": { - "title": "Volatility.W", + "title": "Low.5D", "isHidden": false }, "plot_242": { - "title": "Volatility.M", + "title": "High.5D", "isHidden": false }, "plot_243": { - "title": "Volatility.D", + "title": "Volatility.W", "isHidden": false }, "plot_244": { - "title": "first_bar_time", + "title": "Volatility.M", "isHidden": false }, "plot_245": { - "title": "Perf.5D", + "title": "Volatility.D", "isHidden": false }, "plot_246": { - "title": "Perf.W", + "title": "first_bar_time", "isHidden": false }, "plot_247": { - "title": "Perf.1M", + "title": "Perf.5D", "isHidden": false }, "plot_248": { - "title": "Perf.3M", + "title": "Perf.W", "isHidden": false }, "plot_249": { - "title": "Perf.6M", + "title": "Perf.1M", "isHidden": false }, "plot_25": { @@ -1751,43 +1763,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.Y", + "title": "Perf.3M", "isHidden": false }, "plot_251": { - "title": "Perf.3Y", + "title": "Perf.6M", "isHidden": false }, "plot_252": { - "title": "Perf.5Y", + "title": "Perf.Y", "isHidden": false }, "plot_253": { - "title": "Perf.YTD", + "title": "Perf.3Y", "isHidden": false }, "plot_254": { - "title": "time_business_day", + "title": "Perf.5Y", "isHidden": false }, "plot_255": { - "title": "Bond.Price", + "title": "Perf.10Y", "isHidden": false }, "plot_256": { - "title": "Bond.Change", + "title": "Perf.YTD", "isHidden": false }, "plot_257": { - "title": "Bond.Change.%", + "title": "time_business_day", "isHidden": false }, "plot_258": { - "title": "close_1_days_back", + "title": "Bond.Price", "isHidden": false }, "plot_259": { - "title": "close_30_days_back", + "title": "Bond.Change", "isHidden": false }, "plot_26": { @@ -1795,6 +1807,18 @@ "isHidden": false }, "plot_260": { + "title": "Bond.Change.%", + "isHidden": false + }, + "plot_261": { + "title": "close_1_days_back", + "isHidden": false + }, + "plot_262": { + "title": "close_30_days_back", + "isHidden": false + }, + "plot_263": { "title": "close_365_days_back", "isHidden": false }, @@ -1939,7 +1963,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1947,43 +1971,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1991,43 +2015,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -2035,43 +2059,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -2079,43 +2103,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 14b24ea13..b0d14eab4 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s265:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s265~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11(time,$366,i:1826)~timenow-31449600000~$11(time,$368,i:364)~s2:$9(low,time,$369,i:364):s2~s2:$10(high,time,$369,i:364):s2~timenow-15552000000~$11(time,$374,i:180)~s2:$9(low,time,$375,i:180):s2~s2:$10(high,time,$375,i:180):s2~timenow-7776000000~$11(time,$380,i:90)~s2:$9(low,time,$381,i:90):s2~s2:$10(high,time,$381,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$387,i:30)~$11(time,$386,i:30)~s2:$9(low,time,$388,i:30):s2~s2:$10(high,time,$388,i:30):s2~timenow-604800000~time-604800000~$11(time,$394,i:7)~$11(time,$395,i:7)~s2:$9(low,time,$396,i:7):s2~s2:$10(high,time,$396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11(time,$411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($424)\u0026\u0026!na($425)\u0026\u0026$424\u003e0){$426=($425-$424)*100/abs($424)~}~$426~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$428!$429;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { @@ -1082,6 +1082,14 @@ { "id": "plot_264", "type": "line" + }, + { + "id": "plot_265", + "type": "line" + }, + { + "id": "plot_266", + "type": "line" } ], "version": "", @@ -1103,43 +1111,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -1147,43 +1155,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1191,43 +1199,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1235,43 +1243,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1279,43 +1287,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1323,43 +1331,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1367,43 +1375,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1411,43 +1419,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1455,43 +1463,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1499,43 +1507,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1547,43 +1555,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1591,43 +1599,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "High.All", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "High.All.Date", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "High.All.Calc", + "title": "High.All", "isHidden": false }, "plot_216": { - "title": "High.All.Calc.Date", + "title": "High.All.Date", "isHidden": false }, "plot_217": { - "title": "Low.After.High.All", + "title": "High.All.Calc", "isHidden": false }, "plot_218": { - "title": "Low.All", + "title": "High.All.Calc.Date", "isHidden": false }, "plot_219": { - "title": "Low.All.Date", + "title": "Low.After.High.All", "isHidden": false }, "plot_22": { @@ -1635,43 +1643,43 @@ "isHidden": false }, "plot_220": { - "title": "Low.All.Calc", + "title": "Low.All", "isHidden": false }, "plot_221": { - "title": "Low.All.Calc.Date", + "title": "Low.All.Date", "isHidden": false }, "plot_222": { - "title": "Open.All.Calc", + "title": "Low.All.Calc", "isHidden": false }, "plot_223": { - "title": "price_52_week_low", + "title": "Low.All.Calc.Date", "isHidden": false }, "plot_224": { - "title": "price_52_week_low_date", + "title": "Open.All.Calc", "isHidden": false }, "plot_225": { - "title": "price_52_week_high", + "title": "price_52_week_low", "isHidden": false }, "plot_226": { - "title": "price_52_week_high_date", + "title": "price_52_week_low_date", "isHidden": false }, "plot_227": { - "title": "Low.6M", + "title": "price_52_week_high", "isHidden": false }, "plot_228": { - "title": "Low.6M.Date", + "title": "price_52_week_high_date", "isHidden": false }, "plot_229": { - "title": "High.6M", + "title": "Low.6M", "isHidden": false }, "plot_23": { @@ -1679,43 +1687,43 @@ "isHidden": false }, "plot_230": { - "title": "High.6M.Date", + "title": "Low.6M.Date", "isHidden": false }, "plot_231": { - "title": "Low.3M", + "title": "High.6M", "isHidden": false }, "plot_232": { - "title": "Low.3M.Date", + "title": "High.6M.Date", "isHidden": false }, "plot_233": { - "title": "High.3M", + "title": "Low.3M", "isHidden": false }, "plot_234": { - "title": "High.3M.Date", + "title": "Low.3M.Date", "isHidden": false }, "plot_235": { - "title": "Low.1M", + "title": "High.3M", "isHidden": false }, "plot_236": { - "title": "Low.1M.Date", + "title": "High.3M.Date", "isHidden": false }, "plot_237": { - "title": "High.1M", + "title": "Low.1M", "isHidden": false }, "plot_238": { - "title": "High.1M.Date", + "title": "Low.1M.Date", "isHidden": false }, "plot_239": { - "title": "Low.5D", + "title": "High.1M", "isHidden": false }, "plot_24": { @@ -1723,43 +1731,43 @@ "isHidden": false }, "plot_240": { - "title": "High.5D", + "title": "High.1M.Date", "isHidden": false }, "plot_241": { - "title": "Volatility.W", + "title": "Low.5D", "isHidden": false }, "plot_242": { - "title": "Volatility.M", + "title": "High.5D", "isHidden": false }, "plot_243": { - "title": "Volatility.D", + "title": "Volatility.W", "isHidden": false }, "plot_244": { - "title": "first_bar_time", + "title": "Volatility.M", "isHidden": false }, "plot_245": { - "title": "Perf.5D", + "title": "Volatility.D", "isHidden": false }, "plot_246": { - "title": "Perf.W", + "title": "first_bar_time", "isHidden": false }, "plot_247": { - "title": "Perf.1M", + "title": "Perf.5D", "isHidden": false }, "plot_248": { - "title": "Perf.3M", + "title": "Perf.W", "isHidden": false }, "plot_249": { - "title": "Perf.6M", + "title": "Perf.1M", "isHidden": false }, "plot_25": { @@ -1767,43 +1775,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.Y", + "title": "Perf.3M", "isHidden": false }, "plot_251": { - "title": "Perf.5Y", + "title": "Perf.6M", "isHidden": false }, "plot_252": { - "title": "Perf.YTD", + "title": "Perf.Y", "isHidden": false }, "plot_253": { - "title": "Perf.5D.USD", + "title": "Perf.5Y", "isHidden": false }, "plot_254": { - "title": "Perf.W.USD", + "title": "Perf.YTD", "isHidden": false }, "plot_255": { - "title": "Perf.1M.USD", + "title": "Perf.5D.USD", "isHidden": false }, "plot_256": { - "title": "Perf.3M.USD", + "title": "Perf.W.USD", "isHidden": false }, "plot_257": { - "title": "Perf.6M.USD", + "title": "Perf.1M.USD", "isHidden": false }, "plot_258": { - "title": "Perf.Y.USD", + "title": "Perf.3M.USD", "isHidden": false }, "plot_259": { - "title": "Perf.5Y.USD", + "title": "Perf.6M.USD", "isHidden": false }, "plot_26": { @@ -1811,22 +1819,30 @@ "isHidden": false }, "plot_260": { - "title": "Perf.YTD.USD", + "title": "Perf.Y.USD", "isHidden": false }, "plot_261": { - "title": "debug.first_open_usd", + "title": "Perf.5Y.USD", "isHidden": false }, "plot_262": { - "title": "debug.last_close_usd", + "title": "Perf.YTD.USD", "isHidden": false }, "plot_263": { - "title": "Perf.All.USD", + "title": "debug.first_open_usd", "isHidden": false }, "plot_264": { + "title": "debug.last_close_usd", + "isHidden": false + }, + "plot_265": { + "title": "Perf.All.USD", + "isHidden": false + }, + "plot_266": { "title": "time_business_day", "isHidden": false }, @@ -1971,7 +1987,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1979,43 +1995,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -2023,43 +2039,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -2067,43 +2083,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -2111,43 +2127,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 230c03760..6cfbe73aa 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-31449600000~$11(time,$364,i:364)~s2:$9(low,time,$365,i:364):s2~s2:$10(high,time,$365,i:364):s2~timenow-15552000000~$11(time,$370,i:180)~s2:$9(low,time,$371,i:180):s2~s2:$10(high,time,$371,i:180):s2~timenow-7776000000~$11(time,$376,i:90)~s2:$9(low,time,$377,i:90):s2~s2:$10(high,time,$377,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$383,i:30)~$11(time,$382,i:30)~s2:$9(low,time,$384,i:30):s2~s2:$10(high,time,$384,i:30):s2~timenow-604800000~time-604800000~$11(time,$390,i:7)~$11(time,$391,i:7)~s2:$9(low,time,$392,i:7):s2~s2:$10(high,time,$392,i:7):s2~$12($393)~$12($385)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($392,i:7)~$14($384,i:30)~$14($377,i:90)~$14($371,i:180)~timenow-31536000000~$11(time,$407,i:365)~$14($408,i:365)~$14($363,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($420)\u0026\u0026!na($421)\u0026\u0026$420\u003e0){$422=($421-$420)*100/abs($420)~}~$422~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$366!$367!$368!$369!$372!$373!$374!$375!$378!$379!$380!$381!$386!$387!$388!$389!$394!$396!$398!$399!$400!$401!$402!$403!$404!$405!$406!$409!$410!$411!$412!$413!$414!$415!$416!$417!$418!$419!$420!$421!$424!$425!$426!$427;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$118!$44!$45!$46!$47!$121!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$136!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11(time,$366,i:1826)~timenow-31449600000~$11(time,$368,i:364)~s2:$9(low,time,$369,i:364):s2~s2:$10(high,time,$369,i:364):s2~timenow-15552000000~$11(time,$374,i:180)~s2:$9(low,time,$375,i:180):s2~s2:$10(high,time,$375,i:180):s2~timenow-7776000000~$11(time,$380,i:90)~s2:$9(low,time,$381,i:90):s2~s2:$10(high,time,$381,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$387,i:30)~$11(time,$386,i:30)~s2:$9(low,time,$388,i:30):s2~s2:$10(high,time,$388,i:30):s2~timenow-604800000~time-604800000~$11(time,$394,i:7)~$11(time,$395,i:7)~s2:$9(low,time,$396,i:7):s2~s2:$10(high,time,$396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11(time,$411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($424)\u0026\u0026!na($425)\u0026\u0026$424\u003e0){$426=($425-$424)*100/abs($424)~}~$426~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$428!$429!$430!$431;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", "isFake": false }, { @@ -1090,6 +1090,14 @@ { "id": "plot_266", "type": "line" + }, + { + "id": "plot_267", + "type": "line" + }, + { + "id": "plot_268", + "type": "line" } ], "version": "", @@ -1111,43 +1119,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -1155,43 +1163,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1199,43 +1207,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1243,43 +1251,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1287,43 +1295,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1331,43 +1339,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1375,43 +1383,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1419,43 +1427,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1463,43 +1471,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1507,43 +1515,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1555,43 +1563,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1599,43 +1607,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "High.All", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "High.All.Date", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "High.All.Calc", + "title": "High.All", "isHidden": false }, "plot_216": { - "title": "High.All.Calc.Date", + "title": "High.All.Date", "isHidden": false }, "plot_217": { - "title": "Low.After.High.All", + "title": "High.All.Calc", "isHidden": false }, "plot_218": { - "title": "Low.All", + "title": "High.All.Calc.Date", "isHidden": false }, "plot_219": { - "title": "Low.All.Date", + "title": "Low.After.High.All", "isHidden": false }, "plot_22": { @@ -1643,43 +1651,43 @@ "isHidden": false }, "plot_220": { - "title": "Low.All.Calc", + "title": "Low.All", "isHidden": false }, "plot_221": { - "title": "Low.All.Calc.Date", + "title": "Low.All.Date", "isHidden": false }, "plot_222": { - "title": "Open.All.Calc", + "title": "Low.All.Calc", "isHidden": false }, "plot_223": { - "title": "price_52_week_low", + "title": "Low.All.Calc.Date", "isHidden": false }, "plot_224": { - "title": "price_52_week_low_date", + "title": "Open.All.Calc", "isHidden": false }, "plot_225": { - "title": "price_52_week_high", + "title": "price_52_week_low", "isHidden": false }, "plot_226": { - "title": "price_52_week_high_date", + "title": "price_52_week_low_date", "isHidden": false }, "plot_227": { - "title": "Low.6M", + "title": "price_52_week_high", "isHidden": false }, "plot_228": { - "title": "Low.6M.Date", + "title": "price_52_week_high_date", "isHidden": false }, "plot_229": { - "title": "High.6M", + "title": "Low.6M", "isHidden": false }, "plot_23": { @@ -1687,43 +1695,43 @@ "isHidden": false }, "plot_230": { - "title": "High.6M.Date", + "title": "Low.6M.Date", "isHidden": false }, "plot_231": { - "title": "Low.3M", + "title": "High.6M", "isHidden": false }, "plot_232": { - "title": "Low.3M.Date", + "title": "High.6M.Date", "isHidden": false }, "plot_233": { - "title": "High.3M", + "title": "Low.3M", "isHidden": false }, "plot_234": { - "title": "High.3M.Date", + "title": "Low.3M.Date", "isHidden": false }, "plot_235": { - "title": "Low.1M", + "title": "High.3M", "isHidden": false }, "plot_236": { - "title": "Low.1M.Date", + "title": "High.3M.Date", "isHidden": false }, "plot_237": { - "title": "High.1M", + "title": "Low.1M", "isHidden": false }, "plot_238": { - "title": "High.1M.Date", + "title": "Low.1M.Date", "isHidden": false }, "plot_239": { - "title": "Low.5D", + "title": "High.1M", "isHidden": false }, "plot_24": { @@ -1731,43 +1739,43 @@ "isHidden": false }, "plot_240": { - "title": "High.5D", + "title": "High.1M.Date", "isHidden": false }, "plot_241": { - "title": "Volatility.W", + "title": "Low.5D", "isHidden": false }, "plot_242": { - "title": "Volatility.M", + "title": "High.5D", "isHidden": false }, "plot_243": { - "title": "Volatility.D", + "title": "Volatility.W", "isHidden": false }, "plot_244": { - "title": "first_bar_time", + "title": "Volatility.M", "isHidden": false }, "plot_245": { - "title": "Perf.5D", + "title": "Volatility.D", "isHidden": false }, "plot_246": { - "title": "Perf.W", + "title": "first_bar_time", "isHidden": false }, "plot_247": { - "title": "Perf.1M", + "title": "Perf.5D", "isHidden": false }, "plot_248": { - "title": "Perf.3M", + "title": "Perf.W", "isHidden": false }, "plot_249": { - "title": "Perf.6M", + "title": "Perf.1M", "isHidden": false }, "plot_25": { @@ -1775,43 +1783,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.Y", + "title": "Perf.3M", "isHidden": false }, "plot_251": { - "title": "Perf.5Y", + "title": "Perf.6M", "isHidden": false }, "plot_252": { - "title": "Perf.YTD", + "title": "Perf.Y", "isHidden": false }, "plot_253": { - "title": "Perf.5D.USD", + "title": "Perf.5Y", "isHidden": false }, "plot_254": { - "title": "Perf.W.USD", + "title": "Perf.YTD", "isHidden": false }, "plot_255": { - "title": "Perf.1M.USD", + "title": "Perf.5D.USD", "isHidden": false }, "plot_256": { - "title": "Perf.3M.USD", + "title": "Perf.W.USD", "isHidden": false }, "plot_257": { - "title": "Perf.6M.USD", + "title": "Perf.1M.USD", "isHidden": false }, "plot_258": { - "title": "Perf.Y.USD", + "title": "Perf.3M.USD", "isHidden": false }, "plot_259": { - "title": "Perf.5Y.USD", + "title": "Perf.6M.USD", "isHidden": false }, "plot_26": { @@ -1819,30 +1827,38 @@ "isHidden": false }, "plot_260": { - "title": "Perf.YTD.USD", + "title": "Perf.Y.USD", "isHidden": false }, "plot_261": { - "title": "debug.first_open_usd", + "title": "Perf.5Y.USD", "isHidden": false }, "plot_262": { - "title": "debug.last_close_usd", + "title": "Perf.YTD.USD", "isHidden": false }, "plot_263": { - "title": "Perf.All.USD", + "title": "debug.first_open_usd", "isHidden": false }, "plot_264": { - "title": "time_business_day", + "title": "debug.last_close_usd", "isHidden": false }, "plot_265": { - "title": "volume_base", + "title": "Perf.All.USD", "isHidden": false }, "plot_266": { + "title": "time_business_day", + "isHidden": false + }, + "plot_267": { + "title": "volume_base", + "isHidden": false + }, + "plot_268": { "title": "volume_quote", "isHidden": false }, @@ -1987,7 +2003,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1995,43 +2011,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -2039,43 +2055,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -2083,43 +2099,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -2127,43 +2143,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 8bbfe2016..1922c69f3 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s256:$17($21):s256~$23!$24!$25!$26!$27!$28!$29!$30!$31!$107!$33!$34!$35!$36!$110!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$125!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", "isFake": false }, { @@ -1046,6 +1046,18 @@ { "id": "plot_255", "type": "line" + }, + { + "id": "plot_256", + "type": "line" + }, + { + "id": "plot_257", + "type": "line" + }, + { + "id": "plot_258", + "type": "line" } ], "version": "", @@ -1067,43 +1079,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -1111,43 +1123,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1155,43 +1167,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1199,43 +1211,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1243,43 +1255,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1287,43 +1299,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1331,43 +1343,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1375,43 +1387,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1419,43 +1431,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1463,43 +1475,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1511,43 +1523,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1555,43 +1567,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "High.All", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "High.All.Date", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "High.All.Calc", + "title": "High.All", "isHidden": false }, "plot_216": { - "title": "High.All.Calc.Date", + "title": "High.All.Date", "isHidden": false }, "plot_217": { - "title": "Low.After.High.All", + "title": "High.All.Calc", "isHidden": false }, "plot_218": { - "title": "Low.All", + "title": "High.All.Calc.Date", "isHidden": false }, "plot_219": { - "title": "Low.All.Date", + "title": "Low.After.High.All", "isHidden": false }, "plot_22": { @@ -1599,43 +1611,43 @@ "isHidden": false }, "plot_220": { - "title": "Low.All.Calc", + "title": "Low.All", "isHidden": false }, "plot_221": { - "title": "Low.All.Calc.Date", + "title": "Low.All.Date", "isHidden": false }, "plot_222": { - "title": "Open.All.Calc", + "title": "Low.All.Calc", "isHidden": false }, "plot_223": { - "title": "price_52_week_low", + "title": "Low.All.Calc.Date", "isHidden": false }, "plot_224": { - "title": "price_52_week_low_date", + "title": "Open.All.Calc", "isHidden": false }, "plot_225": { - "title": "price_52_week_high", + "title": "price_52_week_low", "isHidden": false }, "plot_226": { - "title": "price_52_week_high_date", + "title": "price_52_week_low_date", "isHidden": false }, "plot_227": { - "title": "Low.6M", + "title": "price_52_week_high", "isHidden": false }, "plot_228": { - "title": "Low.6M.Date", + "title": "price_52_week_high_date", "isHidden": false }, "plot_229": { - "title": "High.6M", + "title": "Low.6M", "isHidden": false }, "plot_23": { @@ -1643,43 +1655,43 @@ "isHidden": false }, "plot_230": { - "title": "High.6M.Date", + "title": "Low.6M.Date", "isHidden": false }, "plot_231": { - "title": "Low.3M", + "title": "High.6M", "isHidden": false }, "plot_232": { - "title": "Low.3M.Date", + "title": "High.6M.Date", "isHidden": false }, "plot_233": { - "title": "High.3M", + "title": "Low.3M", "isHidden": false }, "plot_234": { - "title": "High.3M.Date", + "title": "Low.3M.Date", "isHidden": false }, "plot_235": { - "title": "Low.1M", + "title": "High.3M", "isHidden": false }, "plot_236": { - "title": "Low.1M.Date", + "title": "High.3M.Date", "isHidden": false }, "plot_237": { - "title": "High.1M", + "title": "Low.1M", "isHidden": false }, "plot_238": { - "title": "High.1M.Date", + "title": "Low.1M.Date", "isHidden": false }, "plot_239": { - "title": "Low.5D", + "title": "High.1M", "isHidden": false }, "plot_24": { @@ -1687,43 +1699,43 @@ "isHidden": false }, "plot_240": { - "title": "High.5D", + "title": "High.1M.Date", "isHidden": false }, "plot_241": { - "title": "Volatility.W", + "title": "Low.5D", "isHidden": false }, "plot_242": { - "title": "Volatility.M", + "title": "High.5D", "isHidden": false }, "plot_243": { - "title": "Volatility.D", + "title": "Volatility.W", "isHidden": false }, "plot_244": { - "title": "first_bar_time", + "title": "Volatility.M", "isHidden": false }, "plot_245": { - "title": "Perf.5D", + "title": "Volatility.D", "isHidden": false }, "plot_246": { - "title": "Perf.W", + "title": "first_bar_time", "isHidden": false }, "plot_247": { - "title": "Perf.1M", + "title": "Perf.5D", "isHidden": false }, "plot_248": { - "title": "Perf.3M", + "title": "Perf.W", "isHidden": false }, "plot_249": { - "title": "Perf.6M", + "title": "Perf.1M", "isHidden": false }, "plot_25": { @@ -1731,26 +1743,38 @@ "isHidden": false }, "plot_250": { - "title": "Perf.Y", + "title": "Perf.3M", "isHidden": false }, "plot_251": { - "title": "Perf.3Y", + "title": "Perf.6M", "isHidden": false }, "plot_252": { - "title": "Perf.5Y", + "title": "Perf.Y", "isHidden": false }, "plot_253": { - "title": "Perf.YTD", + "title": "Perf.3Y", "isHidden": false }, "plot_254": { - "title": "time_business_day", + "title": "Perf.5Y", "isHidden": false }, "plot_255": { + "title": "Perf.10Y", + "isHidden": false + }, + "plot_256": { + "title": "Perf.YTD", + "isHidden": false + }, + "plot_257": { + "title": "time_business_day", + "isHidden": false + }, + "plot_258": { "title": "open_interest", "isHidden": false }, @@ -1899,7 +1923,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1907,43 +1931,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1951,43 +1975,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1995,43 +2019,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -2039,43 +2063,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.json b/scanner.data.json index be2a6ddc6..5d0eadf6b 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(0;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($306!=$306@1){$302=$299~$305=close@1~$303=$300~$304=$301~$299=open~$300=high~$301=low~}_{$300=max($300,high)~$301=min($301,low)~}~($303+$304+$305)/3~$8($308)~$8($308*2-$304)~$8($308*2-$303)~$8($308+1*($303-$304))~$8($308-1*($303-$304))~$8($308+2*($303-$304))~$8($308-2*($303-$304))~$8($308)~$8($308+0.382*($303-$304))~$8($308-0.382*($303-$304))~$8($308+0.618*($303-$304))~$8($308-0.618*($303-$304))~$8($308+1*($303-$304))~$8($308-1*($303-$304))~($303+$304+$299*2)/4~$8($323)~$8($323*2-$304)~$8($323*2-$303)~$8($323+1*($303-$304))~$8($323-1*($303-$304))~$8($303+2*($323-$304))~$8($304-2*($303-$323))~$303+$304*2+$305~v:if($305==$302){$331=$303+$304+$305*2~}~v:if($305\u003e$302){$331=$303*2+$304+$305~}~$8($331/4)~$8($331/2-$304)~$8($331/2-$303)~$8($308)~$8($305+0.09166666666666667*($303-$304))~$8($305-0.09166666666666667*($303-$304))~$8($305+0.18333333333333335*($303-$304))~$8($305-0.18333333333333335*($303-$304))~$8($305+0.275*($303-$304))~$8($305-0.275*($303-$304))~v^high~v^time/1000~v^low~v:if(high\u003e$344){$344=high~$345=time/1000~$346=low~}~v:if(low\u003c$346){$346=low~}~$344~$345~$344~$345~$346~v^low~v^time/1000~v:if(low\u003c$354){$354=low~$355=time/1000~}~$354~$355~$354~$355~v^open~timenow-157766400000~$11(time,$362,i:1826)~timenow-94608000000~$11(time,$364,i:1095)~timenow-31449600000~$11(time,$366,i:364)~s2:$9(low,time,$367,i:364):s2~s2:$10(high,time,$367,i:364):s2~timenow-15552000000~$11(time,$372,i:180)~s2:$9(low,time,$373,i:180):s2~s2:$10(high,time,$373,i:180):s2~timenow-7776000000~$11(time,$378,i:90)~s2:$9(low,time,$379,i:90):s2~s2:$10(high,time,$379,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$385,i:30)~$11(time,$384,i:30)~s2:$9(low,time,$386,i:30):s2~s2:$10(high,time,$386,i:30):s2~timenow-604800000~time-604800000~$11(time,$392,i:7)~$11(time,$393,i:7)~s2:$9(low,time,$394,i:7):s2~s2:$10(high,time,$394,i:7):s2~$12($395)~$12($387)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$404,i:365)~$15()~((close-open@4)/open@4)*100~$14($394,i:7)~$14($386,i:30)~$14($379,i:90)~$14($373,i:180)~$14($405,i:365)~$14($365,i:1095)~$14($363,i:1826)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$324!$325!$326!$327!$328!$329!$330!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$349!$350!$351!$352!$353!$357!$358!$359!$360!$361!$368!$369!$370!$371!$374!$375!$376!$377!$380!$381!$382!$383!$388!$389!$390!$391!$396!$398!$400!$401!$402!$403!$407!$408!$409!$410!$411!$412!$413!$414!$406!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s288:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s288~$80!$81!$82!$83!$84!$85!$86!$87!$88!$164!$90!$91!$92!$93!$167!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$182!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { @@ -1174,6 +1174,18 @@ { "id": "plot_287", "type": "line" + }, + { + "id": "plot_288", + "type": "line" + }, + { + "id": "plot_289", + "type": "line" + }, + { + "id": "plot_290", + "type": "line" } ], "version": "", @@ -1195,43 +1207,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -1239,43 +1251,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1283,43 +1295,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1327,43 +1339,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1371,43 +1383,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1415,43 +1427,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1459,43 +1471,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1503,43 +1515,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1547,43 +1559,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1591,43 +1603,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1639,43 +1651,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1683,43 +1695,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "High.All", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "High.All.Date", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "High.All.Calc", + "title": "High.All", "isHidden": false }, "plot_216": { - "title": "High.All.Calc.Date", + "title": "High.All.Date", "isHidden": false }, "plot_217": { - "title": "Low.After.High.All", + "title": "High.All.Calc", "isHidden": false }, "plot_218": { - "title": "Low.All", + "title": "High.All.Calc.Date", "isHidden": false }, "plot_219": { - "title": "Low.All.Date", + "title": "Low.After.High.All", "isHidden": false }, "plot_22": { @@ -1727,43 +1739,43 @@ "isHidden": false }, "plot_220": { - "title": "Low.All.Calc", + "title": "Low.All", "isHidden": false }, "plot_221": { - "title": "Low.All.Calc.Date", + "title": "Low.All.Date", "isHidden": false }, "plot_222": { - "title": "Open.All.Calc", + "title": "Low.All.Calc", "isHidden": false }, "plot_223": { - "title": "price_52_week_low", + "title": "Low.All.Calc.Date", "isHidden": false }, "plot_224": { - "title": "price_52_week_low_date", + "title": "Open.All.Calc", "isHidden": false }, "plot_225": { - "title": "price_52_week_high", + "title": "price_52_week_low", "isHidden": false }, "plot_226": { - "title": "price_52_week_high_date", + "title": "price_52_week_low_date", "isHidden": false }, "plot_227": { - "title": "Low.6M", + "title": "price_52_week_high", "isHidden": false }, "plot_228": { - "title": "Low.6M.Date", + "title": "price_52_week_high_date", "isHidden": false }, "plot_229": { - "title": "High.6M", + "title": "Low.6M", "isHidden": false }, "plot_23": { @@ -1771,43 +1783,43 @@ "isHidden": false }, "plot_230": { - "title": "High.6M.Date", + "title": "Low.6M.Date", "isHidden": false }, "plot_231": { - "title": "Low.3M", + "title": "High.6M", "isHidden": false }, "plot_232": { - "title": "Low.3M.Date", + "title": "High.6M.Date", "isHidden": false }, "plot_233": { - "title": "High.3M", + "title": "Low.3M", "isHidden": false }, "plot_234": { - "title": "High.3M.Date", + "title": "Low.3M.Date", "isHidden": false }, "plot_235": { - "title": "Low.1M", + "title": "High.3M", "isHidden": false }, "plot_236": { - "title": "Low.1M.Date", + "title": "High.3M.Date", "isHidden": false }, "plot_237": { - "title": "High.1M", + "title": "Low.1M", "isHidden": false }, "plot_238": { - "title": "High.1M.Date", + "title": "Low.1M.Date", "isHidden": false }, "plot_239": { - "title": "Low.5D", + "title": "High.1M", "isHidden": false }, "plot_24": { @@ -1815,43 +1827,43 @@ "isHidden": false }, "plot_240": { - "title": "High.5D", + "title": "High.1M.Date", "isHidden": false }, "plot_241": { - "title": "Volatility.W", + "title": "Low.5D", "isHidden": false }, "plot_242": { - "title": "Volatility.M", + "title": "High.5D", "isHidden": false }, "plot_243": { - "title": "Volatility.D", + "title": "Volatility.W", "isHidden": false }, "plot_244": { - "title": "first_bar_time", + "title": "Volatility.M", "isHidden": false }, "plot_245": { - "title": "Perf.5D", + "title": "Volatility.D", "isHidden": false }, "plot_246": { - "title": "Perf.W", + "title": "first_bar_time", "isHidden": false }, "plot_247": { - "title": "Perf.1M", + "title": "Perf.5D", "isHidden": false }, "plot_248": { - "title": "Perf.3M", + "title": "Perf.W", "isHidden": false }, "plot_249": { - "title": "Perf.6M", + "title": "Perf.1M", "isHidden": false }, "plot_25": { @@ -1859,43 +1871,43 @@ "isHidden": false }, "plot_250": { - "title": "Perf.Y", + "title": "Perf.3M", "isHidden": false }, "plot_251": { - "title": "Perf.3Y", + "title": "Perf.6M", "isHidden": false }, "plot_252": { - "title": "Perf.5Y", + "title": "Perf.Y", "isHidden": false }, "plot_253": { - "title": "Perf.YTD", + "title": "Perf.3Y", "isHidden": false }, "plot_254": { - "title": "time_business_day", + "title": "Perf.5Y", "isHidden": false }, "plot_255": { - "title": "open_interest", + "title": "Perf.10Y", "isHidden": false }, "plot_256": { - "title": "Perf.1W.MarketCap", + "title": "Perf.YTD", "isHidden": false }, "plot_257": { - "title": "Perf.1M.MarketCap", + "title": "time_business_day", "isHidden": false }, "plot_258": { - "title": "Perf.3M.MarketCap", + "title": "open_interest", "isHidden": false }, "plot_259": { - "title": "Perf.6M.MarketCap", + "title": "Perf.1W.MarketCap", "isHidden": false }, "plot_26": { @@ -1903,43 +1915,43 @@ "isHidden": false }, "plot_260": { - "title": "Perf.1Y.MarketCap", + "title": "Perf.1M.MarketCap", "isHidden": false }, "plot_261": { - "title": "Perf.5Y.MarketCap", + "title": "Perf.3M.MarketCap", "isHidden": false }, "plot_262": { - "title": "Perf.YTD.MarketCap", + "title": "Perf.6M.MarketCap", "isHidden": false }, "plot_263": { - "title": "fund_flows.1M", + "title": "Perf.1Y.MarketCap", "isHidden": false }, "plot_264": { - "title": "fund_flows.3M", + "title": "Perf.5Y.MarketCap", "isHidden": false }, "plot_265": { - "title": "fund_flows.1Y", + "title": "Perf.YTD.MarketCap", "isHidden": false }, "plot_266": { - "title": "fund_flows.3Y", + "title": "fund_flows.1M", "isHidden": false }, "plot_267": { - "title": "fund_flows.5Y", + "title": "fund_flows.3M", "isHidden": false }, "plot_268": { - "title": "fund_flows.YTD", + "title": "fund_flows.1Y", "isHidden": false }, "plot_269": { - "title": "nav_perf.1M", + "title": "fund_flows.3Y", "isHidden": false }, "plot_27": { @@ -1947,43 +1959,43 @@ "isHidden": false }, "plot_270": { - "title": "nav_perf.3M", + "title": "fund_flows.5Y", "isHidden": false }, "plot_271": { - "title": "nav_perf.1Y", + "title": "fund_flows.YTD", "isHidden": false }, "plot_272": { - "title": "nav_perf.3Y", + "title": "nav_perf.1M", "isHidden": false }, "plot_273": { - "title": "nav_perf.5Y", + "title": "nav_perf.3M", "isHidden": false }, "plot_274": { - "title": "nav_perf.YTD", + "title": "nav_perf.1Y", "isHidden": false }, "plot_275": { - "title": "aum_perf.1M", + "title": "nav_perf.3Y", "isHidden": false }, "plot_276": { - "title": "aum_perf.3M", + "title": "nav_perf.5Y", "isHidden": false }, "plot_277": { - "title": "aum_perf.1Y", + "title": "nav_perf.YTD", "isHidden": false }, "plot_278": { - "title": "aum_perf.3Y", + "title": "aum_perf.1M", "isHidden": false }, "plot_279": { - "title": "aum_perf.5Y", + "title": "aum_perf.3M", "isHidden": false }, "plot_28": { @@ -1991,41 +2003,53 @@ "isHidden": false }, "plot_280": { - "title": "aum_perf.YTD", + "title": "aum_perf.1Y", "isHidden": false }, "plot_281": { - "title": "nav_total_return.1M", + "title": "aum_perf.3Y", "isHidden": false }, "plot_282": { - "title": "nav_total_return.3M", + "title": "aum_perf.5Y", "isHidden": false }, "plot_283": { - "title": "nav_total_return.6M", + "title": "aum_perf.YTD", "isHidden": false }, "plot_284": { - "title": "nav_total_return.1Y", + "title": "nav_total_return.1M", "isHidden": false }, "plot_285": { - "title": "nav_total_return.3Y", + "title": "nav_total_return.3M", "isHidden": false }, "plot_286": { - "title": "nav_total_return.5Y", + "title": "nav_total_return.6M", "isHidden": false }, "plot_287": { - "title": "nav_total_return.YTD", + "title": "nav_total_return.1Y", + "isHidden": false + }, + "plot_288": { + "title": "nav_total_return.3Y", + "isHidden": false + }, + "plot_289": { + "title": "nav_total_return.5Y", "isHidden": false }, "plot_29": { "title": "EMA12", "isHidden": false }, + "plot_290": { + "title": "nav_total_return.YTD", + "isHidden": false + }, "plot_3": { "title": "SMA7", "isHidden": false @@ -2155,7 +2179,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -2163,43 +2187,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -2207,43 +2231,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -2251,43 +2275,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -2295,43 +2319,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 2b639d6ee..7d53c4fd7 100644 --- a/scanner.data.simple.5.json +++ b/scanner.data.simple.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$348~$12(i:$349,i:$347,#3)~v:if($11(i:$348)\u003e35){$350=na():f~}~$350~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s214:$15($21,$22,$23,$26):s214~$28!$29!$30!$31!$32!$33!$34!$35!$36!$112!$38!$39!$40!$41!$115!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { @@ -878,6 +878,14 @@ { "id": "plot_213", "type": "line" + }, + { + "id": "plot_214", + "type": "line" + }, + { + "id": "plot_215", + "type": "line" } ], "version": "", @@ -899,43 +907,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -943,43 +951,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -987,43 +995,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1031,43 +1039,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1075,43 +1083,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1119,43 +1127,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1163,43 +1171,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1207,43 +1215,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1251,43 +1259,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1295,43 +1303,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1343,43 +1351,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1387,18 +1395,26 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { + "title": "Pivot.M.Camarilla.R3", + "isHidden": false + }, + "plot_214": { + "title": "Pivot.M.Camarilla.S3", + "isHidden": false + }, + "plot_215": { "title": "relative_volume_intraday", "isHidden": false }, @@ -1563,7 +1579,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1571,43 +1587,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1615,43 +1631,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1659,43 +1675,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1703,43 +1719,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.bonds.json b/scanner.data.simple.bonds.json index 4b8d6d597..9ecb90213 100644 --- a/scanner.data.simple.bonds.json +++ b/scanner.data.simple.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~#3~$347~$348-$348@1~na():f~v:if(!($348@1\u003c0)\u0026\u0026!($348\u003c0)){$350=($349/$348@1)*100~}~$350~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$348!$349!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$9():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$21):t~sym($22,period,period,0,0,1,'NONE',0,0,$15)|$10()|s216:$11($17,$18,$19,$24):s216~$26!$27!$28!$29!$30!$31!$32!$33!$34!$110!$36!$37!$38!$39!$113!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$128!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~$351~$352-$352@1~na():f~v:if(!($352@1\u003c0)\u0026\u0026!($352\u003c0)){$354=($353/$352@1)*100~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$352!$353!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$9():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$21):t~sym($22,period,period,0,0,1,'NONE',0,0,$15)|$10()|s218:$11($17,$18,$19,$24):s218~$26!$27!$28!$29!$30!$31!$32!$33!$34!$111!$36!$37!$38!$39!$114!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$129!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { @@ -886,6 +886,14 @@ { "id": "plot_215", "type": "line" + }, + { + "id": "plot_216", + "type": "line" + }, + { + "id": "plot_217", + "type": "line" } ], "version": "", @@ -907,43 +915,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -951,43 +959,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -995,43 +1003,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1039,43 +1047,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1083,43 +1091,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1127,43 +1135,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1171,43 +1179,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1215,43 +1223,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1259,43 +1267,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1303,43 +1311,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1351,43 +1359,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1395,26 +1403,34 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "Bond.Price", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "Bond.Change", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { + "title": "Bond.Price", + "isHidden": false + }, + "plot_216": { + "title": "Bond.Change", + "isHidden": false + }, + "plot_217": { "title": "Bond.Change.%", "isHidden": false }, @@ -1579,7 +1595,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1587,43 +1603,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1631,43 +1647,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1675,43 +1691,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1719,43 +1735,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index 80800be25..d0c1df724 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($347)~na():f~v:if(!na($347)\u0026\u0026!na($350)){$351=$347-$350~}~$351~na():f~v:if(!na($351)\u0026\u0026$350!=0){$354=($351/abs($350))*100~}~$354~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($357)){$358=close-$357~}~$358~na():f~v:if_(na($358)||$357==0||$357\u003c0\u0026\u0026close\u003e0){}_{$361=($358/abs($357))*100~}~$361~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$353!$356!$357!$360!$363;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s222:$14($20,$21,$22,$25):s222~$27!$28!$29!$30!$31!$32!$33!$34!$35!$111!$37!$38!$39!$40!$114!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$129!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", "isFake": false }, { @@ -910,6 +910,14 @@ { "id": "plot_221", "type": "line" + }, + { + "id": "plot_222", + "type": "line" + }, + { + "id": "plot_223", + "type": "line" } ], "version": "", @@ -931,43 +939,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -975,43 +983,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1019,43 +1027,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1063,43 +1071,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1107,43 +1115,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1151,43 +1159,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1195,43 +1203,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1239,43 +1247,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1283,43 +1291,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1327,43 +1335,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1375,43 +1383,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1419,43 +1427,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "24h_vol", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "volume_base", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "volume_quote", + "title": "24h_vol", "isHidden": false }, "plot_216": { - "title": "24h_vol_prev", + "title": "volume_base", "isHidden": false }, "plot_217": { - "title": "24h_vol_change_abs", + "title": "volume_quote", "isHidden": false }, "plot_218": { - "title": "24h_vol_change", + "title": "24h_vol_prev", "isHidden": false }, "plot_219": { - "title": "24h_close_prev", + "title": "24h_vol_change_abs", "isHidden": false }, "plot_22": { @@ -1463,10 +1471,18 @@ "isHidden": false }, "plot_220": { - "title": "24h_close_change_abs", + "title": "24h_vol_change", "isHidden": false }, "plot_221": { + "title": "24h_close_prev", + "isHidden": false + }, + "plot_222": { + "title": "24h_close_change_abs", + "isHidden": false + }, + "plot_223": { "title": "24h_close_change", "isHidden": false }, @@ -1627,7 +1643,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1635,43 +1651,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1679,43 +1695,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1723,43 +1739,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1767,43 +1783,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.coin.json b/scanner.data.simple.coin.json index 0e009865c..deac900f0 100644 --- a/scanner.data.simple.coin.json +++ b/scanner.data.simple.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s213:$10($16,$17,$18):s213~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", "isFake": false }, { @@ -874,6 +874,14 @@ { "id": "plot_212", "type": "line" + }, + { + "id": "plot_213", + "type": "line" + }, + { + "id": "plot_214", + "type": "line" } ], "version": "", @@ -895,43 +903,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -939,43 +947,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -983,43 +991,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1027,43 +1035,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1071,43 +1079,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1115,43 +1123,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1159,43 +1167,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1203,43 +1211,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1247,43 +1255,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1291,43 +1299,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1339,43 +1347,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1383,14 +1391,22 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { + "title": "Pivot.M.Camarilla.S2", + "isHidden": false + }, + "plot_213": { + "title": "Pivot.M.Camarilla.R3", + "isHidden": false + }, + "plot_214": { "title": "Pivot.M.Camarilla.S3", "isHidden": false }, @@ -1555,7 +1571,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1563,43 +1579,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1607,43 +1623,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1651,43 +1667,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1695,43 +1711,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index 85bd14034..f0f143b3e 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$348~$12(i:$349,i:$347,#3)~v:if($11(i:$348)\u003e35){$350=na():f~}~$350~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($353)~na():f~v:if(!na($353)\u0026\u0026!na($356)){$357=$353-$356~}~$357~na():f~v:if(!na($357)\u0026\u0026$356!=0){$360=($357/abs($356))*100~}~$360~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($363)){$364=close-$363~}~$364~na():f~v:if_(na($364)||$363==0||$363\u003c0\u0026\u0026close\u003e0){}_{$367=($364/abs($363))*100~}~$367~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$352!$353!$354!$355!$356!$359!$362!$363!$366!$369;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s223:$19($25,$26,$27,$30,$33):s223~$35!$36!$37!$38!$39!$40!$41!$42!$43!$119!$45!$46!$47!$48!$122!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { @@ -914,6 +914,14 @@ { "id": "plot_222", "type": "line" + }, + { + "id": "plot_223", + "type": "line" + }, + { + "id": "plot_224", + "type": "line" } ], "version": "", @@ -935,43 +943,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -979,43 +987,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -1023,43 +1031,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1067,43 +1075,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1111,43 +1119,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1155,43 +1163,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1199,43 +1207,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1243,43 +1251,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1287,43 +1295,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1331,43 +1339,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1379,43 +1387,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1423,43 +1431,43 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "relative_volume_intraday", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { - "title": "24h_vol", + "title": "Pivot.M.Camarilla.S3", "isHidden": false }, "plot_215": { - "title": "volume_base", + "title": "relative_volume_intraday", "isHidden": false }, "plot_216": { - "title": "volume_quote", + "title": "24h_vol", "isHidden": false }, "plot_217": { - "title": "24h_vol_prev", + "title": "volume_base", "isHidden": false }, "plot_218": { - "title": "24h_vol_change_abs", + "title": "volume_quote", "isHidden": false }, "plot_219": { - "title": "24h_vol_change", + "title": "24h_vol_prev", "isHidden": false }, "plot_22": { @@ -1467,14 +1475,22 @@ "isHidden": false }, "plot_220": { - "title": "24h_close_prev", + "title": "24h_vol_change_abs", "isHidden": false }, "plot_221": { - "title": "24h_close_change_abs", + "title": "24h_vol_change", "isHidden": false }, "plot_222": { + "title": "24h_close_prev", + "isHidden": false + }, + "plot_223": { + "title": "24h_close_change_abs", + "isHidden": false + }, + "plot_224": { "title": "24h_close_change", "isHidden": false }, @@ -1635,7 +1651,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1643,43 +1659,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1687,43 +1703,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1731,43 +1747,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1775,43 +1791,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.crypto.json b/scanner.data.simple.crypto.json index ed90c1f1b..03c1e472c 100644 --- a/scanner.data.simple.crypto.json +++ b/scanner.data.simple.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s217:$10($16,$17,$18):s217~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236", "isFake": false }, { @@ -882,6 +882,14 @@ { "id": "plot_214", "type": "line" + }, + { + "id": "plot_215", + "type": "line" + }, + { + "id": "plot_216", + "type": "line" } ], "version": "", @@ -903,43 +911,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -947,43 +955,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -991,43 +999,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1035,43 +1043,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1079,43 +1087,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1123,43 +1131,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1167,43 +1175,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1211,43 +1219,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1255,43 +1263,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1299,43 +1307,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1347,43 +1355,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1391,22 +1399,30 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { - "title": "Pivot.M.Camarilla.S3", + "title": "Pivot.M.Camarilla.S2", "isHidden": false }, "plot_213": { - "title": "volume_base", + "title": "Pivot.M.Camarilla.R3", "isHidden": false }, "plot_214": { + "title": "Pivot.M.Camarilla.S3", + "isHidden": false + }, + "plot_215": { + "title": "volume_base", + "isHidden": false + }, + "plot_216": { "title": "volume_quote", "isHidden": false }, @@ -1571,7 +1587,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1579,43 +1595,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1623,43 +1639,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1667,43 +1683,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1711,43 +1727,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } diff --git a/scanner.data.simple.json b/scanner.data.simple.json index 0e009865c..deac900f0 100644 --- a/scanner.data.simple.json +++ b/scanner.data.simple.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~s3:$1(i:14,i:14):s3~$60@1~$61@1~s3:$1(i:9,i:9):s3~$65@1~$66@1~s3:$1(i:20,i:20):s3~$70@1~$71@1~s3:$1(i:50,i:50):s3~$75@1~$76@1~s3:$1(i:100,i:100):s3~$80@1~$81@1~2*stdev(close,20,1.0)~$9+$84~$9-$84~2*stdev(close,50,1.0)~$14+$87~$14-$87~$29~ema(close,26)~$90-$91~ema($92,9)~$92-$93~close-close@10~$95@1~close-close@14~$97@1~stoch(close,high,low,14)~sma($99,3)~sma($100,3)~$100@1~$101@1~$99@1~sma(volume,10)~volume/$105@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$110@1~highest(20)~lowest(20)~avg($112,$113)~2*wma(close,4)~wma(close,9)~wma($115-$116,3)~sma(hl2,5)-sma(hl2,34)~$118@1~$118@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$124+$125*2~$124-$125*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($130,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($132,3)~highest(high,14)~(($134-close)/($134-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$137+$138~$3(i:7,i:14,i:28)~v:if(!na($140)){$140=$140*100~}~$140~s4:$5(i:9,i:26,i:52):s4~$145@25~$146@25~s4:$5(i:20,i:60,i:120):s4~$151@30~$152@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$157~close\u003e$157~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$160=$160+$6($6,close)~$161=$161+1~}~v:if(!na($9)){$160=$160+$6($9,close)~$161=$161+1~}~v:if(!na($12)){$160=$160+$6($12,close)~$161=$161+1~}~v:if(!na($14)){$160=$160+$6($14,close)~$161=$161+1~}~v:if(!na($16)){$160=$160+$6($16,close)~$161=$161+1~}~v:if(!na($19)){$160=$160+$6($19,close)~$161=$161+1~}~v:if(!na($28)){$160=$160+$6($28,close)~$161=$161+1~}~v:if(!na($31)){$160=$160+$6($31,close)~$161=$161+1~}~v:if(!na($34)){$160=$160+$6($34,close)~$161=$161+1~}~v:if(!na($36)){$160=$160+$6($36,close)~$161=$161+1~}~v:if(!na($38)){$160=$160+$6($38,close)~$161=$161+1~}~v:if(!na($41)){$160=$160+$6($41,close)~$161=$161+1~}~}~$6($117,close)~v:if(!na($175)){$160=$160+$175~$161=$161+1~}~$6($155,close)~v:if(!na($177)){$160=$160+$177~$161=$161+1~}~na():f~v:if(!(na($145)||na($146)||na(close)||na(close@1)||na($144)||na($143))){$179=$7($145\u003e$146\u0026\u0026close\u003e$145\u0026\u0026close\u003c$144\u0026\u0026close@1\u003c$143\u0026\u0026close\u003e$143,$146\u003e$145\u0026\u0026close\u003c$146\u0026\u0026close\u003e$144\u0026\u0026close@1\u003e$143\u0026\u0026close\u003c$143)~}~$179~v:if(!na($179)){$160=$160+$179~$161=$161+1~}~$160=$161\u003e0?$160/$161:na():f~$160~0.0~0.0~$44~v:if(!(na($186)||na($186@1))){$185=$185+1~$184=$184+$7($186\u003c30\u0026\u0026$186@1\u003c$186,$186\u003e70\u0026\u0026$186@1\u003e$186)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$185=$185+1~$184=$184+$7($100\u003c20\u0026\u0026$101\u003c20\u0026\u0026$100\u003e$101\u0026\u0026$100@1\u003c$101@1,$100\u003e80\u0026\u0026$101\u003e80\u0026\u0026$100\u003c$101\u0026\u0026$100@1\u003e$101@1)~}~$110~v:if(!(na($189)||na($189@1))){$185=$185+1~$184=$184+$7($189\u003c(-100)\u0026\u0026$189\u003e$189@1,$189\u003e100\u0026\u0026$189\u003c$189@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$185=$185+1~$184=$184+$7($59\u003e20\u0026\u0026$60@1\u003c$61@1\u0026\u0026$60\u003e$61,$59\u003e20\u0026\u0026$60@1\u003e$61@1\u0026\u0026$60\u003c$61)~}~v:if(!(na($118)||na($118@1))){$185=$185+1~$184=$184+$7(crossover($118,0)||$118\u003e0\u0026\u0026$118@1\u003e0\u0026\u0026$118\u003e$118@1\u0026\u0026$118@2\u003e$118@1,crossunder($118,0)||$118\u003c0\u0026\u0026$118@1\u003c0\u0026\u0026$118\u003c$118@1\u0026\u0026$118@2\u003c$118@1)~}~v:if(!(na($95)||na($95@1))){$185=$185+1~$184=$184+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$185=$185+1~$184=$184+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($158)||na($159)||na($132)||na($133)||na($132@1)||na($133@1))){$195=$7($158\u0026\u0026$132\u003c20\u0026\u0026$133\u003c20\u0026\u0026$132\u003e$133\u0026\u0026$132@1\u003c$133@1,$159\u0026\u0026$132\u003e80\u0026\u0026$133\u003e80\u0026\u0026$132\u003c$133\u0026\u0026$132@1\u003e$133@1)~}~$195~v:if(!na($195)){$185=$185+1~$184=$184+$195~}~na():f~v:if(!(na($135)||na($135@1))){$199=$7($135\u003c(-80)\u0026\u0026$135\u003e$135@1,$135\u003e(-20)\u0026\u0026$135\u003c$135@1)~}~$199~v:if(!na($199)){$185=$185+1~$184=$184+$199~}~na():f~v:if(!(na($159)||na($158)||na($138)||na($138@1)||na($137)||na($137@1))){$203=$7($159\u0026\u0026$138\u003c0\u0026\u0026$138\u003e$138@1,$158\u0026\u0026$137\u003e0\u0026\u0026$137\u003c$137@1)~}~$203~v:if(!na($203)){$185=$185+1~$184=$184+$203~}~na():f~v:if(!na($140)){$207=$7($140\u003e70,$140\u003c30)~}~$207~v:if(!na($207)){$185=$185+1~$184=$184+$207~}~$184=$185\u003e0?$184/$185:na():f~$184~0.0~0.0~v:if(!na($160)){$212=$212+$160~$213=$213+1~}~v:if(!na($184)){$212=$212+$184~$213=$213+1~}~$212=$213\u003e0?$212/$213:na():f~$212~$14~max(close,open)~min(close,open)~$218-$219~sma($220,14)~$220\u003c$221~$220\u003e$221~high-$218~$219-low~close\u003c$217~close\u003e$217~$224\u003e0*$220~$225\u003e0*$220~open\u003cclose~open\u003eclose~high-low~$220/2+$219~$224==$225||(abs($224-$225)/$225)*100\u003c100\u0026\u0026(abs($225-$224)/$224)*100\u003c100~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$219\u003ehl2\u0026\u0026$225\u003e=2.0*$220\u0026\u0026!$228){v:if_($226){$235=1.0~}_{v:if($227){$236=1.0~}~}~}~$235?1:0~$236?1:0~0.0~0.0~v:if($222\u0026\u0026$220\u003e0\u0026\u0026$218\u003chl2\u0026\u0026$224\u003e=2.0*$220\u0026\u0026!$229){v:if_($226){$242=1.0~}_{v:if($227){$243=1.0~}~}~}~$242?1:0~$243?1:0~0.0~0.0~v:if($223@2\u0026\u0026$222@1\u0026\u0026$223){v:if_($226\u0026\u0026$231@2\u0026\u0026$218@1\u003c$219@2\u0026\u0026$230\u0026\u0026$218\u003e=$233@2\u0026\u0026$218\u003c$218@2\u0026\u0026$218@1\u003c$219){$249=1.0~}_{v:if($227\u0026\u0026$230@2\u0026\u0026$219@1\u003e$218@2\u0026\u0026$231\u0026\u0026$219\u003c=$233@2\u0026\u0026$219\u003e$219@2\u0026\u0026$219@1\u003e$218){$250=1.0~}~}~}~$249?1:0~$250?1:0~$223\u0026\u0026$224\u003c=0*$220\u0026\u0026$225\u003c=0*$220~$256\u0026\u0026$230~$256\u0026\u0026$231~$258?1:0~$257?1:0~$232\u003e0\u0026\u0026$220\u003c=$232*5/100~$261\u0026\u0026$234~$261\u0026\u0026$224\u003c=$220~$261\u0026\u0026$225\u003c=$220~$262\u0026\u0026!$263\u0026\u0026!$264?1:0~$263?1:0~$264?1:0~$223@1\u0026\u0026$231@1\u0026\u0026$226@1\u0026\u0026$230\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$223@1\u0026\u0026$230@1\u0026\u0026$227@1\u0026\u0026$231\u0026\u0026$222\u0026\u0026high\u003c=$218@1\u0026\u0026low\u003e=$219@1?1:0~$225\u003e($232/100)*75?1:0~$224\u003e($232/100)*75?1:0~$225\u003e=($232/100)*34\u0026\u0026$224\u003e=($232/100)*34\u0026\u0026!$261~$272\u0026\u0026$230?1:0~$272\u0026\u0026$231?1:0~$232*5/100\u003e$224~$232*5/100\u003e$225~0.0~0.0~v:if($223\u0026\u0026$223@1\u0026\u0026$223@2){v:if($230\u0026\u0026$230@1\u0026\u0026$230@2){$277=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$275\u0026\u0026$275@1\u0026\u0026$275@2~}~v:if($231\u0026\u0026$231@1\u0026\u0026$231@2){$278=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$276\u0026\u0026$276@1\u0026\u0026$276@2~}~}~$277?1:0~$278?1:0~$226\u0026\u0026$230\u0026\u0026$223\u0026\u0026$231@1\u0026\u0026$222@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$227\u0026\u0026$231\u0026\u0026$223\u0026\u0026$230@1\u0026\u0026$222@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$226@2\u0026\u0026$231@2\u0026\u0026$261@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$230\u0026\u0026high@1\u003clow?1:0~$227@2\u0026\u0026$230@2\u0026\u0026$261@1\u0026\u0026high@2\u003clow@1\u0026\u0026$231\u0026\u0026low@1\u003ehigh?1:0~$262@2\u0026\u0026$262@1\u0026\u0026$262~$218@1\u003c$219~$219@1\u003e$218~$288\u0026\u0026$226@2\u0026\u0026$290@1\u0026\u0026$289?1:0~$288\u0026\u0026$227@2\u0026\u0026$289@1\u0026\u0026$290?1:0~$258@1\u0026\u0026$257\u0026\u0026high@1\u003clow?1:0~$257@1\u0026\u0026$258\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$299@1~$300@1~$301@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($298)~v:if_($309!=$309@1){$305=$302~$308=close@1~$306=$303~$307=$304~$302=open~$303=high~$304=low~}_{$303=max($303,high)~$304=min($304,low)~}~($306+$307+$308)/3~$8($311)~$8($311*2-$307)~$8($311*2-$306)~$8($311+1*($306-$307))~$8($311-1*($306-$307))~$8($311+2*($306-$307))~$8($311-2*($306-$307))~$8($311)~$8($311+0.382*($306-$307))~$8($311-0.382*($306-$307))~$8($311+0.618*($306-$307))~$8($311-0.618*($306-$307))~$8($311+1*($306-$307))~$8($311-1*($306-$307))~($306+$307+$302*2)/4~$8($326)~$8($326*2-$307)~$8($326*2-$306)~$8($326+1*($306-$307))~$8($326-1*($306-$307))~$8($306+2*($326-$307))~$8($307-2*($306-$326))~$306+$307*2+$308~v:if($308==$305){$334=$306+$307+$308*2~}~v:if($308\u003e$305){$334=$306*2+$307+$308~}~$8($334/4)~$8($334/2-$307)~$8($334/2-$306)~$8($311)~$8($308+0.09166666666666667*($306-$307))~$8($308-0.09166666666666667*($306-$307))~$8($308+0.18333333333333335*($306-$307))~$8($308-0.18333333333333335*($306-$307))~$8($308+0.275*($306-$307))~$8($308-0.275*($306-$307))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$9!$85!$86!$14!$88!$89!$94!$92!$93!$95!$96!$97!$98!$100!$101!$102!$103!$99!$100!$104!$102!$105!$106!$107!$108!$109!$110!$111!$113!$112!$114!$117!$118!$119!$120!$121!$122!$123!$126!$127!$124!$128!$129!$131!$132!$133!$135!$136!$139!$142!$143!$144!$147!$148!$149!$150!$153!$154!$155!$156!$175!$177!$181!$183!$197!$201!$205!$209!$211!$216!$240!$241!$247!$248!$254!$255!$259!$260!$265!$266!$267!$268!$269!$270!$271!$273!$274!$282!$283!$284!$285!$286!$287!$291!$292!$293!$294!$295!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$327!$328!$329!$330!$331!$332!$333!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s213:$10($16,$17,$18):s213~$20!$21!$22!$23!$24!$25!$26!$27!$28!$104!$30!$31!$32!$33!$107!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$122!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", "isFake": false }, { @@ -874,6 +874,14 @@ { "id": "plot_212", "type": "line" + }, + { + "id": "plot_213", + "type": "line" + }, + { + "id": "plot_214", + "type": "line" } ], "version": "", @@ -895,43 +903,43 @@ "isHidden": false }, "plot_100": { - "title": "Stoch.D[1]", + "title": "Stoch.K[1]", "isHidden": false }, "plot_101": { - "title": "Stoch.K_14_1_3", + "title": "Stoch.D[1]", "isHidden": false }, "plot_102": { - "title": "Stoch.D_14_1_3", + "title": "Stoch.K_14_1_3", "isHidden": false }, "plot_103": { - "title": "Stoch.K[1]_14_1_3", + "title": "Stoch.D_14_1_3", "isHidden": false }, "plot_104": { - "title": "Stoch.D[1]_14_1_3", + "title": "Stoch.K[1]_14_1_3", "isHidden": false }, "plot_105": { - "title": "average_volume_10d_calc", + "title": "Stoch.D[1]_14_1_3", "isHidden": false }, "plot_106": { - "title": "relative_volume_10d_calc", + "title": "average_volume_10d_calc", "isHidden": false }, "plot_107": { - "title": "average_volume_30d_calc", + "title": "relative_volume_10d_calc", "isHidden": false }, "plot_108": { - "title": "average_volume_60d_calc", + "title": "average_volume_30d_calc", "isHidden": false }, "plot_109": { - "title": "average_volume_90d_calc", + "title": "average_volume_60d_calc", "isHidden": false }, "plot_11": { @@ -939,43 +947,43 @@ "isHidden": false }, "plot_110": { - "title": "CCI20", + "title": "average_volume_90d_calc", "isHidden": false }, "plot_111": { - "title": "CCI20[1]", + "title": "CCI20", "isHidden": false }, "plot_112": { - "title": "DonchCh20.Lower", + "title": "CCI20[1]", "isHidden": false }, "plot_113": { - "title": "DonchCh20.Upper", + "title": "DonchCh20.Lower", "isHidden": false }, "plot_114": { - "title": "DonchCh20.Middle", + "title": "DonchCh20.Upper", "isHidden": false }, "plot_115": { - "title": "HullMA9", + "title": "DonchCh20.Middle", "isHidden": false }, "plot_116": { - "title": "AO", + "title": "HullMA9", "isHidden": false }, "plot_117": { - "title": "AO[1]", + "title": "AO", "isHidden": false }, "plot_118": { - "title": "AO[2]", + "title": "AO[1]", "isHidden": false }, "plot_119": { - "title": "Aroon.Up", + "title": "AO[2]", "isHidden": false }, "plot_12": { @@ -983,43 +991,43 @@ "isHidden": false }, "plot_120": { - "title": "Aroon.Down", + "title": "Aroon.Up", "isHidden": false }, "plot_121": { - "title": "Value.Traded", + "title": "Aroon.Down", "isHidden": false }, "plot_122": { - "title": "KltChnl.upper", + "title": "Value.Traded", "isHidden": false }, "plot_123": { - "title": "KltChnl.lower", + "title": "KltChnl.upper", "isHidden": false }, "plot_124": { - "title": "KltChnl.basis", + "title": "KltChnl.lower", "isHidden": false }, "plot_125": { - "title": "P.SAR", + "title": "KltChnl.basis", "isHidden": false }, "plot_126": { - "title": "MoneyFlow", + "title": "P.SAR", "isHidden": false }, "plot_127": { - "title": "ChaikinMoneyFlow", + "title": "MoneyFlow", "isHidden": false }, "plot_128": { - "title": "Stoch.RSI.K", + "title": "ChaikinMoneyFlow", "isHidden": false }, "plot_129": { - "title": "Stoch.RSI.D", + "title": "Stoch.RSI.K", "isHidden": false }, "plot_13": { @@ -1027,43 +1035,43 @@ "isHidden": false }, "plot_130": { - "title": "W.R", + "title": "Stoch.RSI.D", "isHidden": false }, "plot_131": { - "title": "ROC", + "title": "W.R", "isHidden": false }, "plot_132": { - "title": "BBPower", + "title": "ROC", "isHidden": false }, "plot_133": { - "title": "UO", + "title": "BBPower", "isHidden": false }, "plot_134": { - "title": "Ichimoku.CLine", + "title": "UO", "isHidden": false }, "plot_135": { - "title": "Ichimoku.BLine", + "title": "Ichimoku.CLine", "isHidden": false }, "plot_136": { - "title": "Ichimoku.Lead1", + "title": "Ichimoku.BLine", "isHidden": false }, "plot_137": { - "title": "Ichimoku.Lead2", + "title": "Ichimoku.Lead1", "isHidden": false }, "plot_138": { - "title": "Ichimoku.CLine_20_60_120_30", + "title": "Ichimoku.Lead2", "isHidden": false }, "plot_139": { - "title": "Ichimoku.BLine_20_60_120_30", + "title": "Ichimoku.CLine_20_60_120_30", "isHidden": false }, "plot_14": { @@ -1071,43 +1079,43 @@ "isHidden": false }, "plot_140": { - "title": "Ichimoku.Lead1_20_60_120_30", + "title": "Ichimoku.BLine_20_60_120_30", "isHidden": false }, "plot_141": { - "title": "Ichimoku.Lead2_20_60_120_30", + "title": "Ichimoku.Lead1_20_60_120_30", "isHidden": false }, "plot_142": { - "title": "VWMA", + "title": "Ichimoku.Lead2_20_60_120_30", "isHidden": false }, "plot_143": { - "title": "ADR", + "title": "VWMA", "isHidden": false }, "plot_144": { - "title": "Rec.HullMA9", + "title": "ADR", "isHidden": false }, "plot_145": { - "title": "Rec.VWMA", + "title": "ADRP", "isHidden": false }, "plot_146": { - "title": "Rec.Ichimoku", + "title": "Rec.HullMA9", "isHidden": false }, "plot_147": { - "title": "Recommend.MA", + "title": "Rec.VWMA", "isHidden": false }, "plot_148": { - "title": "Rec.Stoch.RSI", + "title": "Rec.Ichimoku", "isHidden": false }, "plot_149": { - "title": "Rec.WR", + "title": "Recommend.MA", "isHidden": false }, "plot_15": { @@ -1115,43 +1123,43 @@ "isHidden": false }, "plot_150": { - "title": "Rec.BBPower", + "title": "Rec.Stoch.RSI", "isHidden": false }, "plot_151": { - "title": "Rec.UO", + "title": "Rec.WR", "isHidden": false }, "plot_152": { - "title": "Recommend.Other", + "title": "Rec.BBPower", "isHidden": false }, "plot_153": { - "title": "Recommend.All", + "title": "Rec.UO", "isHidden": false }, "plot_154": { - "title": "Candle.Hammer", + "title": "Recommend.Other", "isHidden": false }, "plot_155": { - "title": "Candle.HangingMan", + "title": "Recommend.All", "isHidden": false }, "plot_156": { - "title": "Candle.InvertedHammer", + "title": "Candle.Hammer", "isHidden": false }, "plot_157": { - "title": "Candle.ShootingStar", + "title": "Candle.HangingMan", "isHidden": false }, "plot_158": { - "title": "Candle.MorningStar", + "title": "Candle.InvertedHammer", "isHidden": false }, "plot_159": { - "title": "Candle.EveningStar", + "title": "Candle.ShootingStar", "isHidden": false }, "plot_16": { @@ -1159,43 +1167,43 @@ "isHidden": false }, "plot_160": { - "title": "Candle.Marubozu.Black", + "title": "Candle.MorningStar", "isHidden": false }, "plot_161": { - "title": "Candle.Marubozu.White", + "title": "Candle.EveningStar", "isHidden": false }, "plot_162": { - "title": "Candle.Doji", + "title": "Candle.Marubozu.Black", "isHidden": false }, "plot_163": { - "title": "Candle.Doji.Dragonfly", + "title": "Candle.Marubozu.White", "isHidden": false }, "plot_164": { - "title": "Candle.Doji.Gravestone", + "title": "Candle.Doji", "isHidden": false }, "plot_165": { - "title": "Candle.Harami.Bullish", + "title": "Candle.Doji.Dragonfly", "isHidden": false }, "plot_166": { - "title": "Candle.Harami.Bearish", + "title": "Candle.Doji.Gravestone", "isHidden": false }, "plot_167": { - "title": "Candle.LongShadow.Lower", + "title": "Candle.Harami.Bullish", "isHidden": false }, "plot_168": { - "title": "Candle.LongShadow.Upper", + "title": "Candle.Harami.Bearish", "isHidden": false }, "plot_169": { - "title": "Candle.SpinningTop.White", + "title": "Candle.LongShadow.Lower", "isHidden": false }, "plot_17": { @@ -1203,43 +1211,43 @@ "isHidden": false }, "plot_170": { - "title": "Candle.SpinningTop.Black", + "title": "Candle.LongShadow.Upper", "isHidden": false }, "plot_171": { - "title": "Candle.3WhiteSoldiers", + "title": "Candle.SpinningTop.White", "isHidden": false }, "plot_172": { - "title": "Candle.3BlackCrows", + "title": "Candle.SpinningTop.Black", "isHidden": false }, "plot_173": { - "title": "Candle.Engulfing.Bullish", + "title": "Candle.3WhiteSoldiers", "isHidden": false }, "plot_174": { - "title": "Candle.Engulfing.Bearish", + "title": "Candle.3BlackCrows", "isHidden": false }, "plot_175": { - "title": "Candle.AbandonedBaby.Bullish", + "title": "Candle.Engulfing.Bullish", "isHidden": false }, "plot_176": { - "title": "Candle.AbandonedBaby.Bearish", + "title": "Candle.Engulfing.Bearish", "isHidden": false }, "plot_177": { - "title": "Candle.TriStar.Bullish", + "title": "Candle.AbandonedBaby.Bullish", "isHidden": false }, "plot_178": { - "title": "Candle.TriStar.Bearish", + "title": "Candle.AbandonedBaby.Bearish", "isHidden": false }, "plot_179": { - "title": "Candle.Kicking.Bullish", + "title": "Candle.TriStar.Bullish", "isHidden": false }, "plot_18": { @@ -1247,43 +1255,43 @@ "isHidden": false }, "plot_180": { - "title": "Candle.Kicking.Bearish", + "title": "Candle.TriStar.Bearish", "isHidden": false }, "plot_181": { - "title": "VWAP", + "title": "Candle.Kicking.Bullish", "isHidden": false }, "plot_182": { - "title": "Pivot.M.Classic.Middle", + "title": "Candle.Kicking.Bearish", "isHidden": false }, "plot_183": { - "title": "Pivot.M.Classic.R1", + "title": "VWAP", "isHidden": false }, "plot_184": { - "title": "Pivot.M.Classic.S1", + "title": "Pivot.M.Classic.Middle", "isHidden": false }, "plot_185": { - "title": "Pivot.M.Classic.R2", + "title": "Pivot.M.Classic.R1", "isHidden": false }, "plot_186": { - "title": "Pivot.M.Classic.S2", + "title": "Pivot.M.Classic.S1", "isHidden": false }, "plot_187": { - "title": "Pivot.M.Classic.R3", + "title": "Pivot.M.Classic.R2", "isHidden": false }, "plot_188": { - "title": "Pivot.M.Classic.S3", + "title": "Pivot.M.Classic.S2", "isHidden": false }, "plot_189": { - "title": "Pivot.M.Fibonacci.Middle", + "title": "Pivot.M.Classic.R3", "isHidden": false }, "plot_19": { @@ -1291,43 +1299,43 @@ "isHidden": false }, "plot_190": { - "title": "Pivot.M.Fibonacci.R1", + "title": "Pivot.M.Classic.S3", "isHidden": false }, "plot_191": { - "title": "Pivot.M.Fibonacci.S1", + "title": "Pivot.M.Fibonacci.Middle", "isHidden": false }, "plot_192": { - "title": "Pivot.M.Fibonacci.R2", + "title": "Pivot.M.Fibonacci.R1", "isHidden": false }, "plot_193": { - "title": "Pivot.M.Fibonacci.S2", + "title": "Pivot.M.Fibonacci.S1", "isHidden": false }, "plot_194": { - "title": "Pivot.M.Fibonacci.R3", + "title": "Pivot.M.Fibonacci.R2", "isHidden": false }, "plot_195": { - "title": "Pivot.M.Fibonacci.S3", + "title": "Pivot.M.Fibonacci.S2", "isHidden": false }, "plot_196": { - "title": "Pivot.M.Woodie.Middle", + "title": "Pivot.M.Fibonacci.R3", "isHidden": false }, "plot_197": { - "title": "Pivot.M.Woodie.R1", + "title": "Pivot.M.Fibonacci.S3", "isHidden": false }, "plot_198": { - "title": "Pivot.M.Woodie.S1", + "title": "Pivot.M.Woodie.Middle", "isHidden": false }, "plot_199": { - "title": "Pivot.M.Woodie.R2", + "title": "Pivot.M.Woodie.R1", "isHidden": false }, "plot_2": { @@ -1339,43 +1347,43 @@ "isHidden": false }, "plot_200": { - "title": "Pivot.M.Woodie.S2", + "title": "Pivot.M.Woodie.S1", "isHidden": false }, "plot_201": { - "title": "Pivot.M.Woodie.R3", + "title": "Pivot.M.Woodie.R2", "isHidden": false }, "plot_202": { - "title": "Pivot.M.Woodie.S3", + "title": "Pivot.M.Woodie.S2", "isHidden": false }, "plot_203": { - "title": "Pivot.M.Demark.Middle", + "title": "Pivot.M.Woodie.R3", "isHidden": false }, "plot_204": { - "title": "Pivot.M.Demark.R1", + "title": "Pivot.M.Woodie.S3", "isHidden": false }, "plot_205": { - "title": "Pivot.M.Demark.S1", + "title": "Pivot.M.Demark.Middle", "isHidden": false }, "plot_206": { - "title": "Pivot.M.Camarilla.Middle", + "title": "Pivot.M.Demark.R1", "isHidden": false }, "plot_207": { - "title": "Pivot.M.Camarilla.R1", + "title": "Pivot.M.Demark.S1", "isHidden": false }, "plot_208": { - "title": "Pivot.M.Camarilla.S1", + "title": "Pivot.M.Camarilla.Middle", "isHidden": false }, "plot_209": { - "title": "Pivot.M.Camarilla.R2", + "title": "Pivot.M.Camarilla.R1", "isHidden": false }, "plot_21": { @@ -1383,14 +1391,22 @@ "isHidden": false }, "plot_210": { - "title": "Pivot.M.Camarilla.S2", + "title": "Pivot.M.Camarilla.S1", "isHidden": false }, "plot_211": { - "title": "Pivot.M.Camarilla.R3", + "title": "Pivot.M.Camarilla.R2", "isHidden": false }, "plot_212": { + "title": "Pivot.M.Camarilla.S2", + "isHidden": false + }, + "plot_213": { + "title": "Pivot.M.Camarilla.R3", + "isHidden": false + }, + "plot_214": { "title": "Pivot.M.Camarilla.S3", "isHidden": false }, @@ -1555,7 +1571,7 @@ "isHidden": false }, "plot_59": { - "title": "ADX", + "title": "ATRP", "isHidden": false }, "plot_6": { @@ -1563,43 +1579,43 @@ "isHidden": false }, "plot_60": { - "title": "ADX+DI", + "title": "ADX", "isHidden": false }, "plot_61": { - "title": "ADX-DI", + "title": "ADX+DI", "isHidden": false }, "plot_62": { - "title": "ADX+DI[1]", + "title": "ADX-DI", "isHidden": false }, "plot_63": { - "title": "ADX-DI[1]", + "title": "ADX+DI[1]", "isHidden": false }, "plot_64": { - "title": "ADX_9", + "title": "ADX-DI[1]", "isHidden": false }, "plot_65": { - "title": "ADX+DI_9", + "title": "ADX_9", "isHidden": false }, "plot_66": { - "title": "ADX-DI_9", + "title": "ADX+DI_9", "isHidden": false }, "plot_67": { - "title": "ADX+DI_9[1]", + "title": "ADX-DI_9", "isHidden": false }, "plot_68": { - "title": "ADX-DI_9[1]", + "title": "ADX+DI_9[1]", "isHidden": false }, "plot_69": { - "title": "ADX_20", + "title": "ADX-DI_9[1]", "isHidden": false }, "plot_7": { @@ -1607,43 +1623,43 @@ "isHidden": false }, "plot_70": { - "title": "ADX+DI_20", + "title": "ADX_20", "isHidden": false }, "plot_71": { - "title": "ADX-DI_20", + "title": "ADX+DI_20", "isHidden": false }, "plot_72": { - "title": "ADX+DI_20[1]", + "title": "ADX-DI_20", "isHidden": false }, "plot_73": { - "title": "ADX-DI_20[1]", + "title": "ADX+DI_20[1]", "isHidden": false }, "plot_74": { - "title": "ADX_50", + "title": "ADX-DI_20[1]", "isHidden": false }, "plot_75": { - "title": "ADX+DI_50", + "title": "ADX_50", "isHidden": false }, "plot_76": { - "title": "ADX-DI_50", + "title": "ADX+DI_50", "isHidden": false }, "plot_77": { - "title": "ADX+DI_50[1]", + "title": "ADX-DI_50", "isHidden": false }, "plot_78": { - "title": "ADX-DI_50[1]", + "title": "ADX+DI_50[1]", "isHidden": false }, "plot_79": { - "title": "ADX_100", + "title": "ADX-DI_50[1]", "isHidden": false }, "plot_8": { @@ -1651,43 +1667,43 @@ "isHidden": false }, "plot_80": { - "title": "ADX+DI_100", + "title": "ADX_100", "isHidden": false }, "plot_81": { - "title": "ADX-DI_100", + "title": "ADX+DI_100", "isHidden": false }, "plot_82": { - "title": "ADX+DI_100[1]", + "title": "ADX-DI_100", "isHidden": false }, "plot_83": { - "title": "ADX-DI_100[1]", + "title": "ADX+DI_100[1]", "isHidden": false }, "plot_84": { - "title": "BB.basis", + "title": "ADX-DI_100[1]", "isHidden": false }, "plot_85": { - "title": "BB.upper", + "title": "BB.basis", "isHidden": false }, "plot_86": { - "title": "BB.lower", + "title": "BB.upper", "isHidden": false }, "plot_87": { - "title": "BB.basis_50", + "title": "BB.lower", "isHidden": false }, "plot_88": { - "title": "BB.upper_50", + "title": "BB.basis_50", "isHidden": false }, "plot_89": { - "title": "BB.lower_50", + "title": "BB.upper_50", "isHidden": false }, "plot_9": { @@ -1695,43 +1711,43 @@ "isHidden": false }, "plot_90": { - "title": "MACD.hist", + "title": "BB.lower_50", "isHidden": false }, "plot_91": { - "title": "MACD.macd", + "title": "MACD.hist", "isHidden": false }, "plot_92": { - "title": "MACD.signal", + "title": "MACD.macd", "isHidden": false }, "plot_93": { - "title": "Mom", + "title": "MACD.signal", "isHidden": false }, "plot_94": { - "title": "Mom[1]", + "title": "Mom", "isHidden": false }, "plot_95": { - "title": "Mom_14", + "title": "Mom[1]", "isHidden": false }, "plot_96": { - "title": "Mom_14[1]", + "title": "Mom_14", "isHidden": false }, "plot_97": { - "title": "Stoch.K", + "title": "Mom_14[1]", "isHidden": false }, "plot_98": { - "title": "Stoch.D", + "title": "Stoch.K", "isHidden": false }, "plot_99": { - "title": "Stoch.K[1]", + "title": "Stoch.D", "isHidden": false } } From b06ffea0b3f734d95e65fca622f7a16ebf90833f Mon Sep 17 00:00:00 2001 From: stimofeev Date: Mon, 19 Feb 2024 09:38:45 +0300 Subject: [PATCH 13/25] HBS-0: upd perf market cap pine --- links/performance_market_cap.pine.link | 2 +- scanner.data.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/links/performance_market_cap.pine.link b/links/performance_market_cap.pine.link index f8bcaf0df..a78d82042 100644 --- a/links/performance_market_cap.pine.link +++ b/links/performance_market_cap.pine.link @@ -37,7 +37,7 @@ fundPerfYTD() => lastI = 0 for i = 1 to bar_index - if year(time[i], syminfo.timezone) < year + if year(time[i]) < year lastI := i - 1 break diff --git a/scanner.data.json b/scanner.data.json index 5d0eadf6b..9b74784c6 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3,syminfo.timezone)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { From bd4132e55c20a93d2db2fdba9c3db2ac039ea44f Mon Sep 17 00:00:00 2001 From: stimofeev Date: Tue, 20 Feb 2024 14:56:07 +0300 Subject: [PATCH 14/25] HBS-0: optimize high and low func (attempt 3) --- links/bond_close_days_back.pine.link | 6 +- links/high_and_low.pine.link | 109 ++++++++++++--------------- links/performance_crypto.pine.link | 5 +- links/performance_stocks.pine.link | 2 +- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 9 files changed, 61 insertions(+), 71 deletions(-) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index 65193cd2c..d22e7ccd8 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -5,9 +5,9 @@ yearYield = 365 dayAgoYield = timenow - 1000 * 60 * 60 * 24 * dayYield monthAgoYield = timenow - 1000 * 60 * 60 * 24 * monthYield yearAgoYield = timenow - 1000 * 60 * 60 * 24 * yearYield -countOfBars1DayAgoBond = fastSearchN(time, dayAgoYield, dayYield) -countOfBars1MonthAgoBond = fastSearchN(time, monthAgoYield, monthYield) -countOfBars1YearAgoBond = fastSearchN(time, yearAgoYield, yearYield) +countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) +countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) +countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) max_bars_back(close, yearYield) plot(close[countOfBars1DayAgoBond], title="close_1_days_back") diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 24863e68c..912efac7a 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -26,68 +26,57 @@ plot(atl, title='Low.All.Calc') plot(atl_date, title='Low.All.Calc.Date') var firstOpen = open plot(firstOpen, title='Open.All.Calc') -custom_lowest_and_date(_x, _xt, len, maxbarsback) => - x = _x - xt = _xt/1000 - if bar_index == 0 - x += x[maxbarsback] * 0 // max_bars_back - xt += xt[maxbarsback] * 0 // max_bars_back +custom_lowest_and_date(len, maxbarsback) => + // max_bars_back(low, maxbarsback) + // max_bars_back(time, maxbarsback) + fake = low[maxbarsback] * time[maxbarsback] if len == 0 - [na, na] + [na + fake, na] else if len == 1 - [x, xt] + [low, time / 1000] else _len = len - if na(x[len + 1]) != true + if not na(low[len + 1]) _len -= 1 _len - res = x - res := x - date = xt + index = 0 for i = 0 to _len by 1 - if x[i] < res - res := x[i] - date := xt[i] - [res, date] -custom_highest_and_date(_x, _xt, len, maxbarsback) => - x = _x - xt = _xt/1000 - if bar_index == 0 - x += x[maxbarsback] * 0 // max_bars_back - xt += xt[maxbarsback] * 0 // max_bars_back + if low[i] < low[index] + index := i + [low[index], time[index] / 1000] +custom_highest_and_date(len, maxbarsback) => + // max_bars_back(high, maxbarsback) + // max_bars_back(time, maxbarsback) + fake = high[maxbarsback] * time[maxbarsback] if len == 0 - [na, na] + [na + fake, na] else if len == 1 - [x, xt] + [high, time / 1000] else _len = len - if na(x[len + 1]) != true + if not na(high[len + 1]) _len -= 1 - res = x - date = xt + index = 0 for i = 0 to _len by 1 - if x[i] > res - res := x[i] - date := xt[i] - [res, date] -fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending - xs = _xs - if bar_index == 0 - xs += xs[maxbarsback] * 0 // max_bars_back - left = 0 + if high[i] > high[index] + index := i + [high[index], time[index] / 1000] +fastSearchTimeIndex(x, maxbarsback) => + // max_bars_back(time, maxbarsback) + mid = 0 * time[maxbarsback] right = math.min(bar_index, maxbarsback) - mid = 0 - if xs < x + left = 0 + if time < x 0 else for i = 0 to 9 by 1 mid := math.ceil((left + right) / 2) if left == right break - else if xs[mid] < x + else if time[mid] < x right := mid continue - else if xs[mid] > x + else if time[mid] > x left := mid continue else @@ -95,59 +84,59 @@ fastSearchN(_xs, x, maxbarsback) => // xs - sorted, ascending mid years10 = (365 * 4 + 366) * 2 years10_ago = timenow - 1000 * 60 * 60 * 24 * years10 -countOfBars10YearAgo = fastSearchN(time, years10_ago, years10) +countOfBars10YearAgo = fastSearchTimeIndex(years10_ago, years10) years5 = 365 * 4 + 366 years5_ago = timenow - 1000 * 60 * 60 * 24 * years5 -countOfBars5YearAgo = fastSearchN(time, years5_ago, years5) +countOfBars5YearAgo = fastSearchTimeIndex(years5_ago, years5) years3 = 365 * 3 years3_ago = timenow - 1000 * 60 * 60 * 24 * years3 -countOfBars3YearAgo = fastSearchN(time, years3_ago, years3) +countOfBars3YearAgo = fastSearchTimeIndex(years3_ago, years3) weeks52 = 7 * 52 weeks52_ago = timenow - 1000 * 60 * 60 * 24 * weeks52 -countOfBars52WeekAgo = fastSearchN(time, weeks52_ago, weeks52) -[weeks52_low, weeks52_low_date] = custom_lowest_and_date(low, time, countOfBars52WeekAgo, weeks52) +countOfBars52WeekAgo = fastSearchTimeIndex(weeks52_ago, weeks52) +[weeks52_low, weeks52_low_date] = custom_lowest_and_date(countOfBars52WeekAgo, weeks52) plot(weeks52_low, title='price_52_week_low') plot(weeks52_low_date, title='price_52_week_low_date') -[weeks52_high, weeks52_high_date] = custom_highest_and_date(high, time, countOfBars52WeekAgo, weeks52) +[weeks52_high, weeks52_high_date] = custom_highest_and_date(countOfBars52WeekAgo, weeks52) plot(weeks52_high, title='price_52_week_high') plot(weeks52_high_date, title='price_52_week_high_date') month6 = 180 months6_ago = timenow - 1000 * 60 * 60 * 24 * month6 -countOfBars6MonthAgo = fastSearchN(time, months6_ago, month6) -[months6_low, months6_low_date] = custom_lowest_and_date(low, time, countOfBars6MonthAgo, month6) +countOfBars6MonthAgo = fastSearchTimeIndex(months6_ago, month6) +[months6_low, months6_low_date] = custom_lowest_and_date(countOfBars6MonthAgo, month6) plot(months6_low, title='Low.6M') plot(months6_low_date, title='Low.6M.Date') -[months6_high, months6_high_date] = custom_highest_and_date(high, time, countOfBars6MonthAgo, month6) +[months6_high, months6_high_date] = custom_highest_and_date(countOfBars6MonthAgo, month6) plot(months6_high, title='High.6M') plot(months6_high_date, title='High.6M.Date') month3 = 90 months3_ago = timenow - 1000 * 60 * 60 * 24 * month3 -countOfBars3MonthAgo = fastSearchN(time, months3_ago, month3) -[months3_low, months3_low_date] = custom_lowest_and_date(low, time, countOfBars3MonthAgo, month3) +countOfBars3MonthAgo = fastSearchTimeIndex(months3_ago, month3) +[months3_low, months3_low_date] = custom_lowest_and_date(countOfBars3MonthAgo, month3) plot(months3_low, title='Low.3M') plot(months3_low_date, title='Low.3M.Date') -[months3_high, months3_high_date] = custom_highest_and_date(high, time, countOfBars3MonthAgo, month3) +[months3_high, months3_high_date] = custom_highest_and_date(countOfBars3MonthAgo, month3) plot(months3_high, title='High.3M') plot(months3_high_date, title='High.3M.Date') month1 = 30 month_ago_this_bar = time - 1000 * 60 * 60 * 24 * month1 month_ago = timenow - 1000 * 60 * 60 * 24 * month1 -countOfBars1MonthAgo = fastSearchN(time, month_ago, month1) -countOfBars1MonthAgoThisBar = fastSearchN(time, month_ago_this_bar, month1) -[month1_low, month1_low_date] = custom_lowest_and_date(low, time, countOfBars1MonthAgo, month1) +countOfBars1MonthAgo = fastSearchTimeIndex(month_ago, month1) +countOfBars1MonthAgoThisBar = fastSearchTimeIndex(month_ago_this_bar, month1) +[month1_low, month1_low_date] = custom_lowest_and_date(countOfBars1MonthAgo, month1) plot(month1_low, title='Low.1M') plot(month1_low_date, title='Low.1M.Date') -[month1_high, month1_high_date] = custom_highest_and_date(high, time, countOfBars1MonthAgo, month1) +[month1_high, month1_high_date] = custom_highest_and_date(countOfBars1MonthAgo, month1) plot(month1_high, title='High.1M') plot(month1_high_date, title='High.1M.Date') week1 = 7 week_ago = timenow - 1000 * 60 * 60 * 24 * week1 week_ago_this_bar = time - 1000 * 60 * 60 * 24 * week1 -countOfBarsWeekAgo = fastSearchN(time, week_ago, week1) -countOfBarsWeekAgoThisBar = fastSearchN(time, week_ago_this_bar, week1) -[week1_low] = custom_lowest_and_date(low, time, countOfBarsWeekAgo, week1) +countOfBarsWeekAgo = fastSearchTimeIndex(week_ago, week1) +countOfBarsWeekAgoThisBar = fastSearchTimeIndex(week_ago_this_bar, week1) +[week1_low] = custom_lowest_and_date(countOfBarsWeekAgo, week1) plot(week1_low, title='Low.5D') -[week1_high] = custom_highest_and_date(high, time, countOfBarsWeekAgo, week1) +[week1_high] = custom_highest_and_date(countOfBarsWeekAgo, week1) plot(week1_high, title='High.5D') // volatility volatility(bb) => diff --git a/links/performance_crypto.pine.link b/links/performance_crypto.pine.link index 501c2758b..1b9d15335 100644 --- a/links/performance_crypto.pine.link +++ b/links/performance_crypto.pine.link @@ -17,7 +17,7 @@ plot(perf6M, title='Perf.6M') oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) +barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) perfY = rr(barsCountOneYear, oneYear) plot(perfY, title='Perf.Y') @@ -39,7 +39,8 @@ plot(perf5Y_USD, title='Perf.5Y.USD') plot(perfYTD_USD, title='Perf.YTD.USD') // Perf.All -[firstOpenUSD, lastCloseUSD] = request.security(syminfo.tickerid, "D", [open, close], lookahead = barmerge.lookahead_on, currency = "USD", ignore_invalid_symbol=true) +[openUSD, lastCloseUSD] = request.security(syminfo.tickerid, "D", [open, close], lookahead = barmerge.lookahead_on, currency = "USD", ignore_invalid_symbol=true) +var firstOpenUSD = openUSD float perfAllUSD = na if barstate.islast and not na(firstOpenUSD) and not na(lastCloseUSD) and firstOpenUSD > 0 perfAllUSD := (lastCloseUSD - firstOpenUSD) * 100 / math.abs(firstOpenUSD) diff --git a/links/performance_stocks.pine.link b/links/performance_stocks.pine.link index 2bd4f4a9d..0c67a1ebe 100644 --- a/links/performance_stocks.pine.link +++ b/links/performance_stocks.pine.link @@ -2,7 +2,7 @@ // Perf. oneYear = 365 oneYearAgo = timenow - 1000 * 60 * 60 * 24 * oneYear -barsCountOneYear = fastSearchN(time, oneYearAgo, oneYear) +barsCountOneYear = fastSearchTimeIndex(oneYearAgo, oneYear) perfYTD = perfYTD() plot((close - open[4]) / open[4] * 100, title='Perf.5D') plot(rr(countOfBarsWeekAgo, week1), title='Perf.W') diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 9b4331d80..67485a358 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11(time,$429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index b0d14eab4..23b193ba3 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11(time,$366,i:1826)~timenow-31449600000~$11(time,$368,i:364)~s2:$9(low,time,$369,i:364):s2~s2:$10(high,time,$369,i:364):s2~timenow-15552000000~$11(time,$374,i:180)~s2:$9(low,time,$375,i:180):s2~s2:$10(high,time,$375,i:180):s2~timenow-7776000000~$11(time,$380,i:90)~s2:$9(low,time,$381,i:90):s2~s2:$10(high,time,$381,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$387,i:30)~$11(time,$386,i:30)~s2:$9(low,time,$388,i:30):s2~s2:$10(high,time,$388,i:30):s2~timenow-604800000~time-604800000~$11(time,$394,i:7)~$11(time,$395,i:7)~s2:$9(low,time,$396,i:7):s2~s2:$10(high,time,$396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11(time,$411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($424)\u0026\u0026!na($425)\u0026\u0026$424\u003e0){$426=($425-$424)*100/abs($424)~}~$426~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$428!$429;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 6cfbe73aa..295a3fea6 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11(time,$0,i:1826)~timenow-15552000000~$11(time,$2,i:180)~timenow-7776000000~$11(time,$4,i:90)~timenow-2592000000~$11(time,$6,i:30)~timenow-604800000~$11(time,$8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11(time,$15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11(time,$366,i:1826)~timenow-31449600000~$11(time,$368,i:364)~s2:$9(low,time,$369,i:364):s2~s2:$10(high,time,$369,i:364):s2~timenow-15552000000~$11(time,$374,i:180)~s2:$9(low,time,$375,i:180):s2~s2:$10(high,time,$375,i:180):s2~timenow-7776000000~$11(time,$380,i:90)~s2:$9(low,time,$381,i:90):s2~s2:$10(high,time,$381,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$387,i:30)~$11(time,$386,i:30)~s2:$9(low,time,$388,i:30):s2~s2:$10(high,time,$388,i:30):s2~timenow-604800000~time-604800000~$11(time,$394,i:7)~$11(time,$395,i:7)~s2:$9(low,time,$396,i:7):s2~s2:$10(high,time,$396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11(time,$411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~na():f~v:if(barstate.islast\u0026\u0026!na($424)\u0026\u0026!na($425)\u0026\u0026$424\u003e0){$426=($425-$424)*100/abs($424)~}~$426~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$424!$425!$428!$429!$430!$431;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430!$431!$432;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 1922c69f3..d038070dc 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 9b74784c6..89a8ea823 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$10=$0~$1~v:for(0;$7;1){v:if($0@$12\u003c$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~#1/1000~v:if(n==0){$0=$0+$0@#3*0~$1=$1+$1@#3*0~}~s2:ifelif_(#2==0){na():f!na():f}elif(#2==1){$0!$1}_{#2~#2+1~v:if(na($0@$8)!=1.0){$7=$7-1~}~$0~$1~v:for(0;$7;1){v:if($0@$12\u003e$10){$10=$0@$12~$11=$1@$12~}~}~$10!$11};#0~v:if(n==0){$0=$0+$0@#2*0~}~0~min(n,#2)~0~if_($0\u003c#1){i:0}_{v:for(0;9;1){$4=ceil(($2+$3)/2)~v:ifelif_($2==$3){break~}elif($0@$4\u003c#1){$3=$4~continue~}elif($0@$4\u003e#1){$2=$4~continue~}_{break~}~}~$4};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11(time,$366,i:3652)~timenow-157766400000~$11(time,$368,i:1826)~timenow-94608000000~$11(time,$370,i:1095)~timenow-31449600000~$11(time,$372,i:364)~s2:$9(low,time,$373,i:364):s2~s2:$10(high,time,$373,i:364):s2~timenow-15552000000~$11(time,$378,i:180)~s2:$9(low,time,$379,i:180):s2~s2:$10(high,time,$379,i:180):s2~timenow-7776000000~$11(time,$384,i:90)~s2:$9(low,time,$385,i:90):s2~s2:$10(high,time,$385,i:90):s2~time-2592000000~timenow-2592000000~$11(time,$391,i:30)~$11(time,$390,i:30)~s2:$9(low,time,$392,i:30):s2~s2:$10(high,time,$392,i:30):s2~timenow-604800000~time-604800000~$11(time,$398,i:7)~$11(time,$399,i:7)~s2:$9(low,time,$400,i:7):s2~s2:$10(high,time,$400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11(time,$410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { From 7fe63a483abce44ad18b8b56193efe27bc551d05 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Wed, 21 Feb 2024 09:03:35 +0300 Subject: [PATCH 15/25] HBS-0: change mbb to magic --- links/24h_volume.pine.link | 20 ++++++++++---------- links/bond_close_days_back.pine.link | 4 ++-- links/performance_market_cap.pine.link | 10 +++++----- scanner.data.bonds.json | 2 +- scanner.data.json | 2 +- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 72a0d3a23..93cc7c33c 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -6,19 +6,19 @@ maxBufferSize = 2*countOfFiveMinsInDay cumVolTF = "5" expr(offset, maxBufferSize) => if (syminfo.volumetype == "quote") - max_bars_back(volume, maxBufferSize) - volume[offset] + // max_bars_back(volume, maxBufferSize) + volume[offset] + 0 * volume[maxBufferSize] else if syminfo.volumetype == "base" - max_bars_back(close, maxBufferSize) - max_bars_back(volume, maxBufferSize) - close[offset] * volume[offset] + // max_bars_back(close, maxBufferSize) + // max_bars_back(volume, maxBufferSize) + close[offset] * volume[offset] + 0 * close[maxBufferSize] * volume[maxBufferSize] else na cum24hVol() => - max_bars_back(time, maxBufferSize) - var cumSum = 0. + // max_bars_back(time, maxBufferSize) + var cumSum = 0. * time[maxBufferSize] var int firstBarTimeIndex = na if na(firstBarTimeIndex) // 24 H have not elapsed yet sum = 0. @@ -51,8 +51,8 @@ plot(volQuote, title = "volume_quote", style = plot.style_columns) // 24h prev value (generic) prev24hVal(source) => src = source - max_bars_back(src, maxBufferSize) - max_bars_back(time, maxBufferSize) + // max_bars_back(src, maxBufferSize) + // max_bars_back(time, maxBufferSize) int BB24h = na for i = 0 to countOfFiveMinsInDay if (time - time[i]) >= msIn24h @@ -60,7 +60,7 @@ prev24hVal(source) => BB24h := i break BB24h := i - src[BB24h] + src[BB24h] + 0 * src[maxBufferSize] * time[maxBufferSize] // 24h vol prev value vol24hPrev = prev24hVal(vol24h) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index d22e7ccd8..595e5c4fc 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -9,7 +9,7 @@ countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) -max_bars_back(close, yearYield) -plot(close[countOfBars1DayAgoBond], title="close_1_days_back") +// max_bars_back(close, yearYield) +plot(close[countOfBars1DayAgoBond] + 0 * close[yearYield], title="close_1_days_back") plot(close[countOfBars1MonthAgoBond], title="close_30_days_back") plot(close[countOfBars1YearAgoBond], title="close_365_days_back") \ No newline at end of file diff --git a/links/performance_market_cap.pine.link b/links/performance_market_cap.pine.link index a78d82042..f90a602c3 100644 --- a/links/performance_market_cap.pine.link +++ b/links/performance_market_cap.pine.link @@ -32,12 +32,12 @@ fundPerf(daysBack, perfMaxDaysForValid) => perf fundPerfYTD() => - max_bars_back(time, 2*oneYear) - max_bars_back(close, 2*oneYear) + // max_bars_back(time, 2*oneYear) + // max_bars_back(close, 2*oneYear) - lastI = 0 - for i = 1 to bar_index - if year(time[i]) < year + lastI = 0 * time[2*oneYear] * close[2*oneYear] + for i = 0 to bar_index + if year(time[i], syminfo.timezone) < year lastI := i - 1 break diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 67485a358..cc481eb71 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~close@$430+0*close@365~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$431!$432!$433;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 89a8ea823..7172d3ec2 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};(0*time@730)*close@730~v:for(0;n;1){v:if(year(time@$1,syminfo.timezone)\u003cyear){$0=$1-1~break~}~}~if_(close@$0\u003c0\u0026\u0026close\u003e0||close@$0==0){na():f}_{(close-close@$0)*100/abs(close@$0)}~$6;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index d0c1df724..d795a8f82 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$9($3,i:576)~}~$0=$2~}_{$0=$0+nz($9(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($9(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index f0f143b3e..29bf63260 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$13($3,i:576)~}~$0=$2~}_{$0=$0+nz($13(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($13(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From 639ff9f3a8dea9dee5f9bcd65f4d072bd0b8b95f Mon Sep 17 00:00:00 2001 From: stimofeev Date: Wed, 21 Feb 2024 09:11:50 +0300 Subject: [PATCH 16/25] Revert "HBS-0: change mbb to magic" --- links/24h_volume.pine.link | 20 ++++++++++---------- links/bond_close_days_back.pine.link | 4 ++-- links/performance_market_cap.pine.link | 10 +++++----- scanner.data.bonds.json | 2 +- scanner.data.json | 2 +- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 93cc7c33c..72a0d3a23 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -6,19 +6,19 @@ maxBufferSize = 2*countOfFiveMinsInDay cumVolTF = "5" expr(offset, maxBufferSize) => if (syminfo.volumetype == "quote") - // max_bars_back(volume, maxBufferSize) - volume[offset] + 0 * volume[maxBufferSize] + max_bars_back(volume, maxBufferSize) + volume[offset] else if syminfo.volumetype == "base" - // max_bars_back(close, maxBufferSize) - // max_bars_back(volume, maxBufferSize) - close[offset] * volume[offset] + 0 * close[maxBufferSize] * volume[maxBufferSize] + max_bars_back(close, maxBufferSize) + max_bars_back(volume, maxBufferSize) + close[offset] * volume[offset] else na cum24hVol() => - // max_bars_back(time, maxBufferSize) - var cumSum = 0. * time[maxBufferSize] + max_bars_back(time, maxBufferSize) + var cumSum = 0. var int firstBarTimeIndex = na if na(firstBarTimeIndex) // 24 H have not elapsed yet sum = 0. @@ -51,8 +51,8 @@ plot(volQuote, title = "volume_quote", style = plot.style_columns) // 24h prev value (generic) prev24hVal(source) => src = source - // max_bars_back(src, maxBufferSize) - // max_bars_back(time, maxBufferSize) + max_bars_back(src, maxBufferSize) + max_bars_back(time, maxBufferSize) int BB24h = na for i = 0 to countOfFiveMinsInDay if (time - time[i]) >= msIn24h @@ -60,7 +60,7 @@ prev24hVal(source) => BB24h := i break BB24h := i - src[BB24h] + 0 * src[maxBufferSize] * time[maxBufferSize] + src[BB24h] // 24h vol prev value vol24hPrev = prev24hVal(vol24h) diff --git a/links/bond_close_days_back.pine.link b/links/bond_close_days_back.pine.link index 595e5c4fc..d22e7ccd8 100644 --- a/links/bond_close_days_back.pine.link +++ b/links/bond_close_days_back.pine.link @@ -9,7 +9,7 @@ countOfBars1DayAgoBond = fastSearchTimeIndex(dayAgoYield, dayYield) countOfBars1MonthAgoBond = fastSearchTimeIndex(monthAgoYield, monthYield) countOfBars1YearAgoBond = fastSearchTimeIndex(yearAgoYield, yearYield) -// max_bars_back(close, yearYield) -plot(close[countOfBars1DayAgoBond] + 0 * close[yearYield], title="close_1_days_back") +max_bars_back(close, yearYield) +plot(close[countOfBars1DayAgoBond], title="close_1_days_back") plot(close[countOfBars1MonthAgoBond], title="close_30_days_back") plot(close[countOfBars1YearAgoBond], title="close_365_days_back") \ No newline at end of file diff --git a/links/performance_market_cap.pine.link b/links/performance_market_cap.pine.link index f90a602c3..a78d82042 100644 --- a/links/performance_market_cap.pine.link +++ b/links/performance_market_cap.pine.link @@ -32,12 +32,12 @@ fundPerf(daysBack, perfMaxDaysForValid) => perf fundPerfYTD() => - // max_bars_back(time, 2*oneYear) - // max_bars_back(close, 2*oneYear) + max_bars_back(time, 2*oneYear) + max_bars_back(close, 2*oneYear) - lastI = 0 * time[2*oneYear] * close[2*oneYear] - for i = 0 to bar_index - if year(time[i], syminfo.timezone) < year + lastI = 0 + for i = 1 to bar_index + if year(time[i]) < year lastI := i - 1 break diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index cc481eb71..67485a358 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~close@$430+0*close@365~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$431!$432!$433;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 7172d3ec2..89a8ea823 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};(0*time@730)*close@730~v:for(0;n;1){v:if(year(time@$1,syminfo.timezone)\u003cyear){$0=$1-1~break~}~}~if_(close@$0\u003c0\u0026\u0026close\u003e0||close@$0==0){na():f}_{(close-close@$0)*100/abs(close@$0)}~$6;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index d795a8f82..d0c1df724 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$9($3,i:576)~}~$0=$2~}_{$0=$0+nz($9(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($9(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index 29bf63260..f0f143b3e 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$13($3,i:576)~}~$0=$2~}_{$0=$0+nz($13(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($13(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From e6020a391133765fdadc38f73954e236c1daad02 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Wed, 21 Feb 2024 09:14:27 +0300 Subject: [PATCH 17/25] HBS-0: change mbb to magic for 24h volume pine --- links/24h_volume.pine.link | 20 ++++++++++---------- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 72a0d3a23..93cc7c33c 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -6,19 +6,19 @@ maxBufferSize = 2*countOfFiveMinsInDay cumVolTF = "5" expr(offset, maxBufferSize) => if (syminfo.volumetype == "quote") - max_bars_back(volume, maxBufferSize) - volume[offset] + // max_bars_back(volume, maxBufferSize) + volume[offset] + 0 * volume[maxBufferSize] else if syminfo.volumetype == "base" - max_bars_back(close, maxBufferSize) - max_bars_back(volume, maxBufferSize) - close[offset] * volume[offset] + // max_bars_back(close, maxBufferSize) + // max_bars_back(volume, maxBufferSize) + close[offset] * volume[offset] + 0 * close[maxBufferSize] * volume[maxBufferSize] else na cum24hVol() => - max_bars_back(time, maxBufferSize) - var cumSum = 0. + // max_bars_back(time, maxBufferSize) + var cumSum = 0. * time[maxBufferSize] var int firstBarTimeIndex = na if na(firstBarTimeIndex) // 24 H have not elapsed yet sum = 0. @@ -51,8 +51,8 @@ plot(volQuote, title = "volume_quote", style = plot.style_columns) // 24h prev value (generic) prev24hVal(source) => src = source - max_bars_back(src, maxBufferSize) - max_bars_back(time, maxBufferSize) + // max_bars_back(src, maxBufferSize) + // max_bars_back(time, maxBufferSize) int BB24h = na for i = 0 to countOfFiveMinsInDay if (time - time[i]) >= msIn24h @@ -60,7 +60,7 @@ prev24hVal(source) => BB24h := i break BB24h := i - src[BB24h] + src[BB24h] + 0 * src[maxBufferSize] * time[maxBufferSize] // 24h vol prev value vol24hPrev = prev24hVal(vol24h) diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index d0c1df724..d795a8f82 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$9($3,i:576)~}~$0=$2~}_{$0=$0+nz($9(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($9(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index f0f143b3e..29bf63260 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$13($3,i:576)~}~$0=$2~}_{$0=$0+nz($13(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($13(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From 9002a5e594c65a1c90930f0c638791db151ac375 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Wed, 21 Feb 2024 09:51:39 +0300 Subject: [PATCH 18/25] Revert "HBS-0: change mbb to magic for 24h volume pine" This reverts commit e6020a391133765fdadc38f73954e236c1daad02. --- links/24h_volume.pine.link | 20 ++++++++++---------- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 93cc7c33c..72a0d3a23 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -6,19 +6,19 @@ maxBufferSize = 2*countOfFiveMinsInDay cumVolTF = "5" expr(offset, maxBufferSize) => if (syminfo.volumetype == "quote") - // max_bars_back(volume, maxBufferSize) - volume[offset] + 0 * volume[maxBufferSize] + max_bars_back(volume, maxBufferSize) + volume[offset] else if syminfo.volumetype == "base" - // max_bars_back(close, maxBufferSize) - // max_bars_back(volume, maxBufferSize) - close[offset] * volume[offset] + 0 * close[maxBufferSize] * volume[maxBufferSize] + max_bars_back(close, maxBufferSize) + max_bars_back(volume, maxBufferSize) + close[offset] * volume[offset] else na cum24hVol() => - // max_bars_back(time, maxBufferSize) - var cumSum = 0. * time[maxBufferSize] + max_bars_back(time, maxBufferSize) + var cumSum = 0. var int firstBarTimeIndex = na if na(firstBarTimeIndex) // 24 H have not elapsed yet sum = 0. @@ -51,8 +51,8 @@ plot(volQuote, title = "volume_quote", style = plot.style_columns) // 24h prev value (generic) prev24hVal(source) => src = source - // max_bars_back(src, maxBufferSize) - // max_bars_back(time, maxBufferSize) + max_bars_back(src, maxBufferSize) + max_bars_back(time, maxBufferSize) int BB24h = na for i = 0 to countOfFiveMinsInDay if (time - time[i]) >= msIn24h @@ -60,7 +60,7 @@ prev24hVal(source) => BB24h := i break BB24h := i - src[BB24h] + 0 * src[maxBufferSize] * time[maxBufferSize] + src[BB24h] // 24h vol prev value vol24hPrev = prev24hVal(vol24h) diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index d795a8f82..d0c1df724 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$9($3,i:576)~}~$0=$2~}_{$0=$0+nz($9(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($9(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index 29bf63260..f0f143b3e 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){volume@#0+0*volume@#1}_{if_(syminfo.volumetype=='base'){close@#0*volume@#0+(0*close@#1)*volume@#1}_{na():f}};v^0.0*time@576~v^na():f~v:if_(na($1):b){0.0~v:for(0;288;1){v:if(time-time@$3\u003e=86400000){$1=n-$3+1~break~}~$2=$2+$13($3,i:576)~}~$0=$2~}_{$0=$0+nz($13(i:0,i:576))~v:for($1;n;1){n-$6~v:if(time-time@$7\u003c86400000){$1=$6~break~}~$0=$0-nz($13(n-$6,i:576))~v:if($0\u003c=0){$0=0~}~}~}~$0;#0~na():f~v:for(0;288;1){v:if(time-time@$2\u003e=86400000){v:if(time-time@$2==86400000){$1=$2~}~break~}~$1=$2~}~$0@$1+(0*$0@576)*time@576;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From df248d6504a56bd514754579408d92d335baa8e7 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Tue, 27 Feb 2024 09:11:25 +0300 Subject: [PATCH 19/25] HBS-0: test fix custom high n low funcs --- links/high_and_low.pine.link | 4 ++-- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/links/high_and_low.pine.link b/links/high_and_low.pine.link index 912efac7a..8048da8a7 100644 --- a/links/high_and_low.pine.link +++ b/links/high_and_low.pine.link @@ -29,7 +29,7 @@ plot(firstOpen, title='Open.All.Calc') custom_lowest_and_date(len, maxbarsback) => // max_bars_back(low, maxbarsback) // max_bars_back(time, maxbarsback) - fake = low[maxbarsback] * time[maxbarsback] + fake = low[maxbarsback + 1] * time[maxbarsback + 1] if len == 0 [na + fake, na] else if len == 1 @@ -47,7 +47,7 @@ custom_lowest_and_date(len, maxbarsback) => custom_highest_and_date(len, maxbarsback) => // max_bars_back(high, maxbarsback) // max_bars_back(time, maxbarsback) - fake = high[maxbarsback] * time[maxbarsback] + fake = high[maxbarsback + 1] * time[maxbarsback + 1] if len == 0 [na + fake, na] else if len == 1 diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 67485a358..6f1c88987 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index 23b193ba3..ada753ab9 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 295a3fea6..18ab7b5f4 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430!$431!$432;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430!$431!$432;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index d038070dc..41512f779 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 89a8ea823..8d19b0f16 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;low@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(low@$9\u003clow@$8){$8=$9~}~}~low@$8!time@$8/1000};high@#1*time@#1~s2:ifelif_(#0==0){na():f+$0!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$6)){$5=$5-1~}~0~v:for(0;$5;1){v:if(high@$9\u003ehigh@$8){$8=$9~}~}~high@$8!time@$8/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { From 9d216768bc9251cb46c5efc627b157c10675e065 Mon Sep 17 00:00:00 2001 From: akuznetsov Date: Wed, 28 Feb 2024 21:32:03 +0400 Subject: [PATCH 20/25] improve rVolCalcSumVol --- links/volume_v5.pine.link | 2 +- scanner.data.simple.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/links/volume_v5.pine.link b/links/volume_v5.pine.link index 445d6d582..04d10b2fb 100644 --- a/links/volume_v5.pine.link +++ b/links/volume_v5.pine.link @@ -2,8 +2,8 @@ rVolAvgDays = 10 var rVolBarDurationMS = timeframe.multiplier * 60 * 1000 var rVolDayInBars = 24 * 60 / timeframe.multiplier -var maxDetailedBars = (rVolAvgDays + 1) * rVolDayInBars rVolCalcSumVol(offset, daysBack, time1d) => + maxDetailedBars = daysBack * rVolDayInBars result = volume[maxDetailedBars] * time1d[maxDetailedBars] * 0 // expected intraday only! maxDetailedUnixTime = maxDetailedBars * rVolBarDurationMS diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 7d53c4fd7..3424d235d 100644 --- a/scanner.data.simple.5.json +++ b/scanner.data.simple.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1*#3~(volume@$0*#2@$0)*0~i:$0*#4~timenow-$2~v:if(time\u003e=$3){#2~0~(-1)~0.0~0~0~v:for(1;$0;1){0.0~v:if(#2@$10!=$4){$5=$5+1~$4=#2@$10~$11=$5\u003e#0~$9=$8~$8=$10-1~}~v:if(1==$5\u0026\u0026($6\u003c0)){$6=$10-1~}~v:if($11){v:for(max($9,$8-$6);$8;1){$7=$7+volume@$14~}~}~v:if(#1==$5){break~}~}~$1=$7~}~$1;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~$12(i:$352,i:$351,#3)~v:if($11(i:$352)\u003e35){$353=na():f~}~$353~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index f0f143b3e..c953f7896 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1*#3~(volume@$0*#2@$0)*0~i:$0*#4~timenow-$2~v:if(time\u003e=$3){#2~0~(-1)~0.0~0~0~v:for(1;$0;1){0.0~v:if(#2@$10!=$4){$5=$5+1~$4=#2@$10~$11=$5\u003e#0~$9=$8~$8=$10-1~}~v:if(1==$5\u0026\u0026($6\u003c0)){$6=$10-1~}~v:if($11){v:for(max($9,$8-$6);$8;1){$7=$7+volume@$14~}~}~v:if(#1==$5){break~}~}~$1=$7~}~$1;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~$12(i:$352,i:$351,#3)~v:if($11(i:$352)\u003e35){$353=na():f~}~$353~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($356)~na():f~v:if(!na($356)\u0026\u0026!na($359)){$360=$356-$359~}~$360~na():f~v:if(!na($360)\u0026\u0026$359!=0){$363=($360/abs($359))*100~}~$363~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($366)){$367=close-$366~}~$367~na():f~v:if_(na($367)||$366==0||$366\u003c0\u0026\u0026close\u003e0){}_{$370=($367/abs($366))*100~}~$370~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355!$356!$357!$358!$359!$362!$365!$366!$369!$372;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From 809c62c10a2cfac7c1e041aea194f11574755ed8 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Tue, 5 Mar 2024 08:51:59 +0300 Subject: [PATCH 21/25] HBS-0: revert improve rVolCalcSumBol --- links/volume_v5.pine.link | 2 +- scanner.data.simple.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/links/volume_v5.pine.link b/links/volume_v5.pine.link index 04d10b2fb..445d6d582 100644 --- a/links/volume_v5.pine.link +++ b/links/volume_v5.pine.link @@ -2,8 +2,8 @@ rVolAvgDays = 10 var rVolBarDurationMS = timeframe.multiplier * 60 * 1000 var rVolDayInBars = 24 * 60 / timeframe.multiplier +var maxDetailedBars = (rVolAvgDays + 1) * rVolDayInBars rVolCalcSumVol(offset, daysBack, time1d) => - maxDetailedBars = daysBack * rVolDayInBars result = volume[maxDetailedBars] * time1d[maxDetailedBars] * 0 // expected intraday only! maxDetailedUnixTime = maxDetailedBars * rVolBarDurationMS diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 3424d235d..7d53c4fd7 100644 --- a/scanner.data.simple.5.json +++ b/scanner.data.simple.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1*#3~(volume@$0*#2@$0)*0~i:$0*#4~timenow-$2~v:if(time\u003e=$3){#2~0~(-1)~0.0~0~0~v:for(1;$0;1){0.0~v:if(#2@$10!=$4){$5=$5+1~$4=#2@$10~$11=$5\u003e#0~$9=$8~$8=$10-1~}~v:if(1==$5\u0026\u0026($6\u003c0)){$6=$10-1~}~v:if($11){v:for(max($9,$8-$6);$8;1){$7=$7+volume@$14~}~}~v:if(#1==$5){break~}~}~$1=$7~}~$1;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~$12(i:$352,i:$351,#3)~v:if($11(i:$352)\u003e35){$353=na():f~}~$353~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index c953f7896..f0f143b3e 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1*#3~(volume@$0*#2@$0)*0~i:$0*#4~timenow-$2~v:if(time\u003e=$3){#2~0~(-1)~0.0~0~0~v:for(1;$0;1){0.0~v:if(#2@$10!=$4){$5=$5+1~$4=#2@$10~$11=$5\u003e#0~$9=$8~$8=$10-1~}~v:if(1==$5\u0026\u0026($6\u003c0)){$6=$10-1~}~v:if($11){v:for(max($9,$8-$6);$8;1){$7=$7+volume@$14~}~}~v:if(#1==$5){break~}~}~$1=$7~}~$1;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~$12(i:$352,i:$351,#3)~v:if($11(i:$352)\u003e35){$353=na():f~}~$353~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($356)~na():f~v:if(!na($356)\u0026\u0026!na($359)){$360=$356-$359~}~$360~na():f~v:if(!na($360)\u0026\u0026$359!=0){$363=($360/abs($359))*100~}~$363~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($366)){$367=close-$366~}~$367~na():f~v:if_(na($367)||$366==0||$366\u003c0\u0026\u0026close\u003e0){}_{$370=($367/abs($366))*100~}~$370~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355!$356!$357!$358!$359!$362!$365!$366!$369!$372;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", "isFake": false }, { From da9cfac6b9f152e3edc5f598c66c3df17b404679 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Tue, 5 Mar 2024 12:44:45 +0300 Subject: [PATCH 22/25] HBS-4111: test upd 24h vol pine --- links/24h_volume.pine.link | 60 ++++++++++++------------------- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 25 insertions(+), 39 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 72a0d3a23..f7b003416 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -3,43 +3,29 @@ currency = "USD" msIn24h = 24*60*60*1000 countOfFiveMinsInDay = 24*60/5 maxBufferSize = 2*countOfFiveMinsInDay -cumVolTF = "5" -expr(offset, maxBufferSize) => - if (syminfo.volumetype == "quote") - max_bars_back(volume, maxBufferSize) - volume[offset] - else - if syminfo.volumetype == "base" - max_bars_back(close, maxBufferSize) - max_bars_back(volume, maxBufferSize) - close[offset] * volume[offset] - else - na - -cum24hVol() => - max_bars_back(time, maxBufferSize) - var cumSum = 0. - var int firstBarTimeIndex = na - if na(firstBarTimeIndex) // 24 H have not elapsed yet - sum = 0. - for i = 0 to countOfFiveMinsInDay - if (time - time[i]) >= msIn24h - firstBarTimeIndex := bar_index - i + 1 - break - sum += expr(i, maxBufferSize) - cumSum := sum - else - cumSum += nz(expr(0, maxBufferSize)) - for i = firstBarTimeIndex to bar_index - if (time - time[bar_index - i]) < msIn24h - firstBarTimeIndex := i - break - cumSum -= nz(expr(bar_index - i, maxBufferSize)) - if cumSum <= 0 - cumSum := 0 - cumSum - -vol24h = request.security(syminfo.tickerid, cumVolTF, cum24hVol(), lookahead = barmerge.lookahead_off, currency = currency, ignore_invalid_symbol=true) +sumVolTF = "5" +// rollOnTimeWhen is internal function from PineCoders/getSeries/1 library +rollOnTimeWhen(series float src, simple int timeWindow, series bool cond = true, simple int minBars = 1) => + var float[] sources = array.new_float(0) + var int[] times = array.new_int(0) + if cond + array.push(sources, src) + array.push(times, time) + if array.size(sources) > 0 + while time - array.get(times, 0) >= timeWindow and array.size(sources) > minBars + array.shift(sources) + array.shift(times) + float[] result = sources +sum24hVol(src) => + sourceValues = rollOnTimeWhen(src, msIn24h) + sourceValues.sum() +var cumVol = 0. +cumVol += nz(volume) +expr = syminfo.volumetype == "quote" ? volume : close * volume +vol24h = request.security(syminfo.tickerid, sumVolTF, sum24hVol(expr * request.currency_rate(syminfo.currency, currency))) +if barstate.islast + if syminfo.volumetype == "tick" and syminfo.type == "crypto" or cumVol == 0 + vol24h := na plot(vol24h, title = "24h_vol", style = plot.style_columns) // volume in base and quote currencies diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index d0c1df724..9fc31b5d7 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$9($4,i:576)~}~$1=$3~}_{$1=$1+nz($9(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($9(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;$10()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($351)~na():f~v:if(!na($351)\u0026\u0026!na($354)){$355=$351-$354~}~$355~na():f~v:if(!na($355)\u0026\u0026$354!=0){$358=($355/abs($354))*100~}~$358~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($361)){$362=close-$361~}~$362~na():f~v:if_(na($362)||$361==0||$361\u003c0\u0026\u0026close\u003e0){}_{$365=($362/abs($361))*100~}~$365~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$357!$360!$361!$364!$367;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|sym(tickerid,'5','5',0,0,1,'USD',0,0,$18)|$13()|s224:$14($20,$21,$22,$25):s224~$27!$28!$29!$30!$31!$32!$33!$34!$35!$112!$37!$38!$39!$40!$115!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$130!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$9(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;syminfo.volumetype=='quote'?volume:close*volume~#0~$10($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^0.0~$351=$351+nz(volume)~#3~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$351==0){$352=na():f~}~}~$352~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($352)~na():f~v:if(!na($352)\u0026\u0026!na($358)){$359=$352-$358~}~$359~na():f~v:if(!na($359)\u0026\u0026$358!=0){$362=($359/abs($358))*100~}~$362~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($365)){$366=close-$365~}~$366~na():f~v:if_(na($366)||$365==0||$365\u003c0\u0026\u0026close\u003e0){}_{$369=($366/abs($365))*100~}~$369~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355!$356!$357!$358!$361!$364!$365!$368!$371;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|rate(syminfo.currency,'USD',0.0)~sym(tickerid,'5','5',0,0,0,'NONE',0,0,$18)|$13($24)|s224:$14($20,$21,$22,$26):s224~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index f0f143b3e..b83035a1a 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);if_(syminfo.volumetype=='quote'){v:max_bars_back(volume,#1):v~volume@#0}_{if_(syminfo.volumetype=='base'){v:max_bars_back(close,#1):v~v:max_bars_back(volume,#1):v~close@#0*volume@#0}_{na():f}};v:max_bars_back(time,576):v~v^0.0~v^na():f~v:if_(na($2):b){0.0~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){$2=n-$4+1~break~}~$3=$3+$13($4,i:576)~}~$1=$3~}_{$1=$1+nz($13(i:0,i:576))~v:for($2;n;1){n-$7~v:if(time-time@$8\u003c86400000){$2=$7~break~}~$1=$1-nz($13(n-$7,i:576))~v:if($1\u003c=0){$1=0~}~}~}~$1;#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;$14()~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~#4~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($357)~na():f~v:if(!na($357)\u0026\u0026!na($360)){$361=$357-$360~}~$361~na():f~v:if(!na($361)\u0026\u0026$360!=0){$364=($361/abs($360))*100~}~$364~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($367)){$368=close-$367~}~$368~na():f~v:if_(na($368)||$367==0||$367\u003c0\u0026\u0026close\u003e0){}_{$371=($368/abs($367))*100~}~$371~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$357!$358!$359!$360!$363!$366!$367!$370!$373;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|sym(tickerid,'5','5',0,0,1,'USD',0,0,$23)|$18()|s225:$19($25,$26,$27,$30,$33):s225~$35!$36!$37!$38!$39!$40!$41!$42!$43!$120!$45!$46!$47!$48!$123!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$138!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$13(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;syminfo.volumetype=='quote'?volume:close*volume~#0~$14($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~v^0.0~$357=$357+nz(volume)~#4~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$357==0){$358=na():f~}~}~$358~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($358)~na():f~v:if(!na($358)\u0026\u0026!na($364)){$365=$358-$364~}~$365~na():f~v:if(!na($365)\u0026\u0026$364!=0){$368=($365/abs($364))*100~}~$368~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($371)){$372=close-$371~}~$372~na():f~v:if_(na($372)||$371==0||$371\u003c0\u0026\u0026close\u003e0){}_{$375=($372/abs($371))*100~}~$375~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$361!$362!$363!$364!$367!$370!$371!$374!$377;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|rate(syminfo.currency,'USD',0.0)~sym(tickerid,'5','5',0,0,0,'NONE',0,0,$23)|$18($32)|s225:$19($25,$26,$27,$30,$34):s225~$36!$37!$38!$39!$40!$41!$42!$43!$44!$121!$46!$47!$48!$49!$124!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$139!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260", "isFake": false }, { From f336b2efc3305f28a09b8ea40f6e63294eeba94e Mon Sep 17 00:00:00 2001 From: stimofeev Date: Tue, 5 Mar 2024 15:58:01 +0300 Subject: [PATCH 23/25] HBS-4111: fix new 24h vol pine --- links/24h_volume.pine.link | 2 +- scanner.data.simple.coin.5.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index f7b003416..938b1c4f8 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -22,7 +22,7 @@ sum24hVol(src) => var cumVol = 0. cumVol += nz(volume) expr = syminfo.volumetype == "quote" ? volume : close * volume -vol24h = request.security(syminfo.tickerid, sumVolTF, sum24hVol(expr * request.currency_rate(syminfo.currency, currency))) +vol24h = request.security(syminfo.tickerid, sumVolTF, sum24hVol(expr * request.currency_rate(syminfo.currency, currency, ignore_invalid_currency = true)), ignore_invalid_symbol = true) if barstate.islast if syminfo.volumetype == "tick" and syminfo.type == "crypto" or cumVol == 0 vol24h := na diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index 9fc31b5d7..15c325236 100644 --- a/scanner.data.simple.coin.5.json +++ b/scanner.data.simple.coin.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$9(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;syminfo.volumetype=='quote'?volume:close*volume~#0~$10($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^0.0~$351=$351+nz(volume)~#3~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$351==0){$352=na():f~}~}~$352~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($352)~na():f~v:if(!na($352)\u0026\u0026!na($358)){$359=$352-$358~}~$359~na():f~v:if(!na($359)\u0026\u0026$358!=0){$362=($359/abs($358))*100~}~$362~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($365)){$366=close-$365~}~$366~na():f~v:if_(na($366)||$365==0||$365\u003c0\u0026\u0026close\u003e0){}_{$369=($366/abs($365))*100~}~$369~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355!$356!$357!$358!$361!$364!$365!$368!$371;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|rate(syminfo.currency,'USD',0.0)~sym(tickerid,'5','5',0,0,0,'NONE',0,0,$18)|$13($24)|s224:$14($20,$21,$22,$26):s224~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$9(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;syminfo.volumetype=='quote'?volume:close*volume~#0~$10($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^0.0~$351=$351+nz(volume)~#3~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$351==0){$352=na():f~}~}~$352~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$11($352)~na():f~v:if(!na($352)\u0026\u0026!na($358)){$359=$352-$358~}~$359~na():f~v:if(!na($359)\u0026\u0026$358!=0){$362=($359/abs($358))*100~}~$362~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($365)){$366=close-$365~}~$366~na():f~v:if_(na($366)||$365==0||$365\u003c0\u0026\u0026close\u003e0){}_{$369=($366/abs($365))*100~}~$369~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$355!$356!$357!$358!$361!$364!$365!$368!$371;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$17,$17,0,1,0,'NONE',0,0,$18)|$12():s3|rate(syminfo.currency,'USD',1.0)~sym(tickerid,'5','5',0,0,1,'NONE',0,0,$18)|$13($24)|s224:$14($20,$21,$22,$26):s224~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251", "isFake": false }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index b83035a1a..602466d33 100644 --- a/scanner.data.simple.crypto.5.json +++ b/scanner.data.simple.crypto.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$13(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;syminfo.volumetype=='quote'?volume:close*volume~#0~$14($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~v^0.0~$357=$357+nz(volume)~#4~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$357==0){$358=na():f~}~}~$358~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($358)~na():f~v:if(!na($358)\u0026\u0026!na($364)){$365=$358-$364~}~$365~na():f~v:if(!na($365)\u0026\u0026$364!=0){$368=($365/abs($364))*100~}~$368~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($371)){$372=close-$371~}~$372~na():f~v:if_(na($372)||$371==0||$371\u003c0\u0026\u0026close\u003e0){}_{$375=($372/abs($371))*100~}~$375~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$361!$362!$363!$364!$367!$370!$371!$374!$377;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|rate(syminfo.currency,'USD',0.0)~sym(tickerid,'5','5',0,0,0,'NONE',0,0,$23)|$18($32)|s225:$19($25,$26,$27,$30,$34):s225~$36!$37!$38!$39!$40!$41!$42!$43!$44!$121!$46!$47!$48!$49!$124!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$139!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);v^s_a_f:array.new_float(0,na():f):s_a_f~v^s_a_i:array.new_int(0,na():f):s_a_i~v:if(#2){v:array.push($0,#0):v~v:array.push($1,time):v~}~v:if(array.size($0)\u003e0){while(time-array.get($1,0)\u003e=#1\u0026\u0026array.size($0)\u003e#3){array.shift($0)~array.shift($1)}~}~s_a_f:$0~s_a_f:$9;s_a_f:$13(#0,i:86400000,1.0,i:1):s_a_f~array.sum($0);#0~v:max_bars_back($0,576):v~v:max_bars_back(time,576):v~na():f~v:for(0;288;1){v:if(time-time@$4\u003e=86400000){v:if(time-time@$4==86400000){$3=$4~}~break~}~$3=$4~}~$0@$3;open~high~low~$0!$1!$2;time~$0;syminfo.volumetype=='quote'?volume:close*volume~#0~$14($0*$1)~$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~v^0.0~$357=$357+nz(volume)~#4~v:if(barstate.islast){v:if((syminfo.volumetype=='tick'\u0026\u0026syminfo.type=='crypto')||$357==0){$358=na():f~}~}~$358~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$15($358)~na():f~v:if(!na($358)\u0026\u0026!na($364)){$365=$358-$364~}~$365~na():f~v:if(!na($365)\u0026\u0026$364!=0){$368=($365/abs($364))*100~}~$368~$15(close)~na():f~v:if(!na(close)\u0026\u0026!na($371)){$372=close-$371~}~$372~na():f~v:if_(na($372)||$371==0||$371\u003c0\u0026\u0026close\u003e0){}_{$375=($372/abs($371))*100~}~$375~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356!$361!$362!$363!$364!$367!$370!$371!$374!$377;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$22,$22,0,1,0,'NONE',0,0,$23)|$16():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$23)|$17()|rate(syminfo.currency,'USD',1.0)~sym(tickerid,'5','5',0,0,1,'NONE',0,0,$23)|$18($32)|s225:$19($25,$26,$27,$30,$34):s225~$36!$37!$38!$39!$40!$41!$42!$43!$44!$121!$46!$47!$48!$49!$124!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$139!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260", "isFake": false }, { From 3fc4081fcf48bbf64f3e550824aebe79faf02f0d Mon Sep 17 00:00:00 2001 From: stimofeev Date: Thu, 7 Mar 2024 14:36:29 +0300 Subject: [PATCH 24/25] NOVA-0: upd pine --- links/24h_volume.pine.link | 4 ++-- scanner.data.bonds.json | 2 +- scanner.data.coin.json | 2 +- scanner.data.crypto.json | 2 +- scanner.data.futures.json | 2 +- scanner.data.json | 2 +- scanner.data.simple.5.json | 2 +- scanner.data.simple.bonds.json | 2 +- scanner.data.simple.coin.json | 2 +- scanner.data.simple.crypto.json | 2 +- scanner.data.simple.json | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/links/24h_volume.pine.link b/links/24h_volume.pine.link index 938b1c4f8..55b51b368 100644 --- a/links/24h_volume.pine.link +++ b/links/24h_volume.pine.link @@ -21,9 +21,9 @@ sum24hVol(src) => sourceValues.sum() var cumVol = 0. cumVol += nz(volume) -expr = syminfo.volumetype == "quote" ? volume : close * volume +expr = syminfo.volumetype == "quote" ? volume : close * volume vol24h = request.security(syminfo.tickerid, sumVolTF, sum24hVol(expr * request.currency_rate(syminfo.currency, currency, ignore_invalid_currency = true)), ignore_invalid_symbol = true) -if barstate.islast +if barstate.islast if syminfo.volumetype == "tick" and syminfo.type == "crypto" or cumVol == 0 vol24h := na plot(vol24h, title = "24h_vol", style = plot.style_columns) diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 6f1c88987..6e35a5811 100644 --- a/scanner.data.bonds.json +++ b/scanner.data.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$423~$424-$424@1~na():f~v:if(!($424@1\u003c0)\u0026\u0026!($424\u003c0)){$426=($425/$424@1)*100~}~$426~timenow-86400000~$11($429,i:1)~v:max_bars_back(close,365):v~close@$430~close@$392~close@$411~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$424!$425!$428!$432!$433!$434;t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$18):t~i:na():f~sym($19,period,period,0,0,1,'NONE',0,0,$20)|$16()|s264:$17($22):s264~$24!$25!$26!$27!$28!$29!$30!$31!$32!$109!$34!$35!$36!$37!$112!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$127!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287", "isFake": false }, { diff --git a/scanner.data.coin.json b/scanner.data.coin.json index ada753ab9..622ca52a8 100644 --- a/scanner.data.coin.json +++ b/scanner.data.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s267:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s267~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300", "isFake": false }, { diff --git a/scanner.data.crypto.json b/scanner.data.crypto.json index 18ab7b5f4..916ff4534 100644 --- a/scanner.data.crypto.json +++ b/scanner.data.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430!$431!$432;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);timenow-157766400000~$11($0,i:1826)~timenow-15552000000~$11($2,i:180)~timenow-7776000000~$11($4,i:90)~timenow-2592000000~$11($6,i:30)~timenow-604800000~$11($8,i:7)~((close-open@4)/open@4)*100~$14($9,i:7)~$14($7,i:30)~$14($5,i:90)~$14($3,i:180)~timenow-31536000000~$11($15,i:365)~$14($16,i:365)~$14($1,i:1826)~$15()~$10!$11!$12!$13!$14!$17!$18!$19;open~close~$0!$1;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-157766400000~$11($366,i:1826)~timenow-31449600000~$11($368,i:364)~s2:$9($369,i:364):s2~s2:$10($369,i:364):s2~timenow-15552000000~$11($374,i:180)~s2:$9($375,i:180):s2~s2:$10($375,i:180):s2~timenow-7776000000~$11($380,i:90)~s2:$9($381,i:90):s2~s2:$10($381,i:90):s2~time-2592000000~timenow-2592000000~$11($387,i:30)~$11($386,i:30)~s2:$9($388,i:30):s2~s2:$10($388,i:30):s2~timenow-604800000~time-604800000~$11($394,i:7)~$11($395,i:7)~s2:$9($396,i:7):s2~s2:$10($396,i:7):s2~$12($397)~$12($389)~tr(1.0)*100/abs(low)~v^time/1000~((close-open@4)/open@4)*100~$14($396,i:7)~$14($388,i:30)~$14($381,i:90)~$14($375,i:180)~timenow-31536000000~$11($411,i:365)~$14($412,i:365)~$14($367,i:1826)~$15()~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~v^$424~na():f~v:if(barstate.islast\u0026\u0026!na($426)\u0026\u0026!na($425)\u0026\u0026$426\u003e0){$427=($425-$426)*100/abs($426)~}~$427~time_tradingday/1000~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$406!$407!$408!$409!$410!$413!$414!$415!$416!$417!$418!$419!$420!$421!$422!$423!$426!$425!$429!$430!$431!$432;i:na():f~sym(tickerid,'D','D',0,0,1,'USD',0,0,$19)|$16():s8|sym(tickerid,'D','D',0,1,1,'USD',0,0,$19)|$17():s2|s269:$18($21,$22,$23,$24,$25,$26,$27,$28,$31,$32):s269~$34!$35!$36!$37!$38!$39!$40!$41!$42!$119!$44!$45!$46!$47!$122!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$137!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302", "isFake": false }, { diff --git a/scanner.data.futures.json b/scanner.data.futures.json index 41512f779..09537d4df 100644 --- a/scanner.data.futures.json +++ b/scanner.data.futures.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($18,'D','D',0,0,1,'NONE',0,0,$19)|$16()|s259:$17($21):s259~$23!$24!$25!$26!$27!$28!$29!$30!$31!$108!$33!$34!$35!$36!$111!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$126!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281", "isFake": false }, { diff --git a/scanner.data.json b/scanner.data.json index 8d19b0f16..21bd9ad9a 100644 --- a/scanner.data.json +++ b/scanner.data.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;i:#1+1~low@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){low!time/1000}_{#0~#0+1~v:if(!na(low@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(low@$10\u003clow@$9){$9=$10~}~}~low@$9!time@$9/1000};i:#1+1~high@$0*time@$0~s2:ifelif_(#0==0){na():f+$1!na():f}elif(#0==1){high!time/1000}_{#0~#0+1~v:if(!na(high@$7)){$6=$6-1~}~0~v:for(0;$6;1){v:if(high@$10\u003ehigh@$9){$9=$10~}~}~high@$9!time@$9/1000};0*time@#1~min(n,#1)~0~if_(time\u003c#0){i:0}_{v:for(0;9;1){$0=ceil(($2+$1)/2)~v:ifelif_($2==$1){break~}elif(time@$0\u003c#0){$1=$0~continue~}elif(time@$0\u003e#0){$2=$0~continue~}_{break~}~}~$0};#0~v:if(n==0){$0=365~}~if_($0==0){na():f}_{sum(((high-low)/abs(low))*100/$0,$0)~if_(#0==0){na():f}_{$3}};if_(#0\u003c0\u0026\u0026close\u003e0){na():f}_{(close-#0)*100/abs(#0)};open@#1*0+#0==0?na():f:$13(open@#0);v^open~year~v:if(year\u003e$1@1){$0=open~}~$13($0);time_closeV5('D',syminfo.session,syminfo.timezone,0)-(#0*86400000);$16(i:#0)~if_(time\u003c$0){na():f}_{0~v:for(0;n;1){v:if(time@$3\u003c$0){$2=$3-1~break~}~}~if(time@$2-$0\u003c#1*86400000){if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}}~$9};v:max_bars_back(time,730):v~v:max_bars_back(close,730):v~0~v:for(1;n;1){v:if(year(time@$3)\u003cyear){$2=$3-1~break~}~}~if_(close@$2\u003c0\u0026\u0026close\u003e0||close@$2==0){na():f}_{(close-close@$2)*100/abs(close@$2)}~$8;v^time~$16(i:#0)~if_($1\u003c$0){na():f}_{0.0~v:for(0;n;1){v:if(time@$4\u003c$1){break~}~$3=$3+close@$4~}~$3};v^year(time,syminfo.timezone)~if_(year(timenow,syminfo.timezone)==$0){na():f}_{v^0.0~v:if(year(time@1,syminfo.timezone)\u003cyear(time,syminfo.timezone)){$2=0~}~$2=$2+close~$2};close~$0;$17(i:7,i:10)~$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;$19(i:30)~$19(i:90)~$19(i:365)~$19(i:1095)~$19(i:1825)~$20()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5;$17(i:30,i:10)~$17(i:90,i:10)~$17(i:180,i:10)~$17(i:365,i:10)~$17(i:1095,i:10)~$17(i:1825,i:10)~$18()~$0!$1!$2!$3!$4!$5!$6;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~v^open~v^high~v^low~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($310!=$310@1){$306=$303~$309=close@1~$307=$304~$308=$305~$303=open~$304=high~$305=low~}_{$304=max($304,high)~$305=min($305,low)~}~($307+$308+$309)/3~$8($312)~$8($312*2-$308)~$8($312*2-$307)~$8($312+1*($307-$308))~$8($312-1*($307-$308))~$8($312+2*($307-$308))~$8($312-2*($307-$308))~$8($312)~$8($312+0.382*($307-$308))~$8($312-0.382*($307-$308))~$8($312+0.618*($307-$308))~$8($312-0.618*($307-$308))~$8($312+1*($307-$308))~$8($312-1*($307-$308))~($307+$308+$303*2)/4~$8($327)~$8($327*2-$308)~$8($327*2-$307)~$8($327+1*($307-$308))~$8($327-1*($307-$308))~$8($307+2*($327-$308))~$8($308-2*($307-$327))~$307+$308*2+$309~v:if($309==$306){$335=$307+$308+$309*2~}~v:if($309\u003e$306){$335=$307*2+$308+$309~}~$8($335/4)~$8($335/2-$308)~$8($335/2-$307)~$8($312)~$8($309+0.09166666666666667*($307-$308))~$8($309-0.09166666666666667*($307-$308))~$8($309+0.18333333333333335*($307-$308))~$8($309-0.18333333333333335*($307-$308))~$8($309+0.275*($307-$308))~$8($309-0.275*($307-$308))~v^high~v^time/1000~v^low~v:if(high\u003e$348){$348=high~$349=time/1000~$350=low~}~v:if(low\u003c$350){$350=low~}~$348~$349~$348~$349~$350~v^low~v^time/1000~v:if(low\u003c$358){$358=low~$359=time/1000~}~$358~$359~$358~$359~v^open~timenow-315532800000~$11($366,i:3652)~timenow-157766400000~$11($368,i:1826)~timenow-94608000000~$11($370,i:1095)~timenow-31449600000~$11($372,i:364)~s2:$9($373,i:364):s2~s2:$10($373,i:364):s2~timenow-15552000000~$11($378,i:180)~s2:$9($379,i:180):s2~s2:$10($379,i:180):s2~timenow-7776000000~$11($384,i:90)~s2:$9($385,i:90):s2~s2:$10($385,i:90):s2~time-2592000000~timenow-2592000000~$11($391,i:30)~$11($390,i:30)~s2:$9($392,i:30):s2~s2:$10($392,i:30):s2~timenow-604800000~time-604800000~$11($398,i:7)~$11($399,i:7)~s2:$9($400,i:7):s2~s2:$10($400,i:7):s2~$12($401)~$12($393)~tr(1.0)*100/abs(low)~v^time/1000~timenow-31536000000~$11($410,i:365)~$15()~((close-open@4)/open@4)*100~$14($400,i:7)~$14($392,i:30)~$14($385,i:90)~$14($379,i:180)~$14($411,i:365)~$14($371,i:1095)~$14($369,i:1826)~$14($367,i:3652)~time_tradingday/1000~#0~#1~#2~#3~#4~#5~#6~#7~#8~#9~#10~#11~#12~#13~#14~#15~#16~#17~#18~#19~#20~#21~#22~#23~#24~#25~#26~#27~#28~#29~#30~#31~#32~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$328!$329!$330!$331!$332!$333!$334!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$353!$354!$355!$356!$357!$361!$362!$363!$364!$365!$374!$375!$376!$377!$380!$381!$382!$383!$386!$387!$388!$389!$394!$395!$396!$397!$402!$404!$406!$407!$408!$409!$413!$414!$415!$416!$417!$418!$419!$420!$421!$412!$422!$423!$424!$425!$426!$427!$428!$429!$430!$431!$432!$433!$434!$435!$436!$437!$438!$439!$440!$441!$442!$443!$444!$445!$446!$447!$448!$449!$450!$451!$452!$453!$454!$455;t:str.format(t:'{0}_{1}',t:ticker.standard(tickerid):t,t:'OI'):t~i:na():f~sym($27,'D','D',0,0,1,'NONE',0,0,$28)|$21()|t:__financial_tickerid(tickerid,'MARKET_CAP_BASIC','D'):t~t:isintraday?'D':period~sym($32,$33,$33,0,0,1,'NONE',0,0,$28)|$22():s7|t:__financial_tickerid(tickerid,'FUND_FLOWS','D'):t~sym($43,$33,$33,0,0,1,'NONE',0,0,$28)|$23():s6|t:__financial_tickerid(tickerid,'NAV','D'):t~sym($52,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'AUM','D'):t~sym($61,$33,$33,0,0,1,'NONE',0,0,$28)|$24():s6|t:__financial_tickerid(tickerid,'NAV_ALL','D'):t~sym($70,$33,$33,0,0,1,'NONE',0,0,$28)|$25():s7|s291:$26($30,$35,$36,$37,$38,$39,$40,$41,$45,$46,$47,$48,$49,$50,$54,$55,$56,$57,$58,$59,$63,$64,$65,$66,$67,$68,$72,$73,$74,$75,$76,$77,$78):s291~$80!$81!$82!$83!$84!$85!$86!$87!$88!$165!$90!$91!$92!$93!$168!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$183!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243!$244!$245!$246!$247!$248!$249!$250!$251!$252!$253!$254!$255!$256!$257!$258!$259!$260!$261!$262!$263!$264!$265!$266!$267!$268!$269!$270!$271!$272!$273!$274!$275!$276!$277!$278!$279!$280!$281!$282!$283!$284!$285!$286!$287!$288!$289!$290!$291!$292!$293!$294!$295!$296!$297!$298!$299!$300!$301!$302!$303!$304!$305!$306!$307!$308!$309!$310!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$330!$331!$332!$333!$334!$335!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$353!$354!$355!$356!$357!$358!$359!$360!$361!$362!$363!$364!$365!$366!$367!$368!$369!$370", "isFake": false }, { diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 7d53c4fd7..a41d18c16 100644 --- a/scanner.data.simple.5.json +++ b/scanner.data.simple.5.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;(volume@#3*#2@#3)*0~i:#3*#4~timenow-$1~v:if(time\u003e=$2){#2~0~(-1)~0.0~0~0~v:for(1;#3;1){0.0~v:if(#2@$9!=$3){$4=$4+1~$3=#2@$9~$10=$4\u003e#0~$8=$7~$7=$9-1~}~v:if(1==$4\u0026\u0026($5\u003c0)){$5=$9-1~}~v:if($10){v:for(max($8,$7-$5);$7;1){$6=$6+volume@$13~}~}~v:if(#1==$4){break~}~}~$0=$6~}~$0;0~0~0~dayofmonth~v:for(0;5*#1;1){$4+1~v:if_($3@$4!=$3@$5){v:if($2\u003c#0\u0026\u0026$1\u003e0){$0=$0+#0-$2~}~$2=0~$1=$1+1~}_{v:if($1\u003e0){$2=$2+1~}~}~v:if($1==5){break~}~}~$0\u003e0?($0/$1/#0)*100:0;v^0~v^0~dayofmonth~v:if(dayofmonth!=$2@1){$1=$1+1~}~v:if($1\u003e10){$1=0~$0=0~}~$0=max($10(i:300/interval,i:#0),$0)~$0;#2~$9(i:0,i:1,$0,i:#0,i:#1)~v:if(barstate.isrealtime\u0026\u0026timenow-$0\u003c((24*60)*60)*1000){(timenow-$0)/#1~1-(timenow-time)/#1~($2+$3)/$2~$1=$1*$4~}~$1/($9(i:1,i:11,$0,i:#0,i:#1)/10);open~high~low~$0!$1!$2;time~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$352~$12(i:$353,i:$351,#3)~v:if($11(i:$352)\u003e35){$354=na():f~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$18,$18,0,1,0,'NONE',0,0,$19)|$13():s3|sym(tickerid,'1D','1D',0,1,0,'NONE',0,0,$19)|$14()|s216:$15($21,$22,$23,$26):s216~$28!$29!$30!$31!$32!$33!$34!$35!$36!$113!$38!$39!$40!$41!$116!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$124!$125!$131!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { diff --git a/scanner.data.simple.bonds.json b/scanner.data.simple.bonds.json index 9ecb90213..f418a60c7 100644 --- a/scanner.data.simple.bonds.json +++ b/scanner.data.simple.bonds.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~$351~$352-$352@1~na():f~v:if(!($352@1\u003c0)\u0026\u0026!($352\u003c0)){$354=($353/$352@1)*100~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$352!$353!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$9():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$21):t~sym($22,period,period,0,0,1,'NONE',0,0,$15)|$10()|s218:$11($17,$18,$19,$24):s218~$26!$27!$28!$29!$30!$31!$32!$33!$34!$111!$36!$37!$38!$39!$114!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$129!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;close~$0;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~#3~$351~$352-$352@1~na():f~v:if(!($352@1\u003c0)\u0026\u0026!($352\u003c0)){$354=($353/$352@1)*100~}~$354~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$352!$353!$356;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$14,$14,0,1,0,'NONE',0,0,$15)|$9():s3|t:str.substring(ticker,0,str.length(ticker):i-1):t~t:sc(t:syminfo.prefix,t:':',t:$21):t~sym($22,period,period,0,0,1,'NONE',0,0,$15)|$10()|s218:$11($17,$18,$19,$24):s218~$26!$27!$28!$29!$30!$31!$32!$33!$34!$111!$36!$37!$38!$39!$114!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$118!$119!$120!$121!$122!$123!$129!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236!$237!$238!$239!$240!$241!$242!$243", "isFake": false }, { diff --git a/scanner.data.simple.coin.json b/scanner.data.simple.coin.json index deac900f0..a29634d39 100644 --- a/scanner.data.simple.coin.json +++ b/scanner.data.simple.coin.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", "isFake": false }, { diff --git a/scanner.data.simple.crypto.json b/scanner.data.simple.crypto.json index 03c1e472c..b0e72b799 100644 --- a/scanner.data.simple.crypto.json +++ b/scanner.data.simple.crypto.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s217:$10($16,$17,$18):s217~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~syminfo.volumetype=='base'?volume:(syminfo.volumetype=='quote')\u0026\u0026close!=0?volume/close:na():f~syminfo.volumetype=='quote'?volume:syminfo.volumetype=='base'?volume*close:na():f~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s217:$10($16,$17,$18):s217~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234!$235!$236", "isFake": false }, { diff --git a/scanner.data.simple.json b/scanner.data.simple.json index deac900f0..a29634d39 100644 --- a/scanner.data.simple.json +++ b/scanner.data.simple.json @@ -4,7 +4,7 @@ { "id": "text", "type": "text", - "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", + "defval": "change(high)~(-change(low))~rma(tr,#0)~fixnan(100*rma($0\u003e$1\u0026\u0026$0\u003e0?$0:0,#0)/$2)~fixnan(100*rma($1\u003e$0\u0026\u0026$1\u003e0?$1:0,#0)/$2)~$3!$4;s2:$0(i:#0):s2~$0+$1~100*rma(abs($0-$1)/($2==0?1:$2),#1)~$3!$0!$1;close@1\u003clow?close@1:low;sum(tr,#0)~sum(tr,#1)~sum(tr,#2)~close-$2()~sum($3,#0)~sum($3,#1)~sum($3,#2)~na():f~v:if($0!=0\u0026\u0026$1!=0\u0026\u0026$2!=0){i:#2/#0~i:#2/#1~($4/$0)*$8~($5/$1)*$9~$6/$2~$7=($10+$11+$12)/($8+$9+1)~}~$7;avg(lowest(#0),highest(#0));$4(i:#0)~$4(i:#1)~avg($0,$1)~$4(i:#2)~$0!$1!$2!$3;na(#0)||na(#1)?na():f:#0==#1?0:#0\u003c#1?1:(-1);#0?1:#1?(-1):0;#0\u003c=0?na():f:#0;open~high~low~$0!$1!$2;sma(close,3)~sma(close,5)~sma(close,6)~sma(close,7)~sma(close,8)~sma(close,9)~sma(close,10)~sma(close,12)~sma(close,13)~sma(close,20)~sma(close,21)~sma(close,25)~sma(close,30)~sma(close,40)~sma(close,50)~sma(close,75)~sma(close,100)~sma(close,120)~sma(close,150)~sma(close,200)~sma(close,250)~sma(close,300)~ema(close,3)~ema(close,5)~ema(close,6)~ema(close,7)~ema(close,8)~ema(close,9)~ema(close,10)~ema(close,12)~ema(close,13)~ema(close,20)~ema(close,21)~ema(close,25)~ema(close,30)~ema(close,40)~ema(close,50)~ema(close,75)~ema(close,100)~ema(close,120)~ema(close,150)~ema(close,200)~ema(close,250)~ema(close,300)~rsi(close,14)~$44@1~rsi(close,2)~$46@1~rsi(close,3)~$48@1~rsi(close,5)~$50@1~rsi(close,7)~$52@1~rsi(close,9)~$54@1~rsi(close,21)~$56@1~rma(tr(1.0),14)~($58/close)*100~s3:$1(i:14,i:14):s3~$61@1~$62@1~s3:$1(i:9,i:9):s3~$66@1~$67@1~s3:$1(i:20,i:20):s3~$71@1~$72@1~s3:$1(i:50,i:50):s3~$76@1~$77@1~s3:$1(i:100,i:100):s3~$81@1~$82@1~2*stdev(close,20,1.0)~$9+$85~$9-$85~2*stdev(close,50,1.0)~$14+$88~$14-$88~$29~ema(close,26)~$91-$92~ema($93,9)~$93-$94~close-close@10~$96@1~close-close@14~$98@1~stoch(close,high,low,14)~sma($100,3)~sma($101,3)~$101@1~$102@1~$100@1~sma(volume,10)~volume/$106@1~sma(volume,30)~sma(volume,60)~sma(volume,90)~cci(hlc3,20)~$111@1~highest(20)~lowest(20)~avg($113,$114)~2*wma(close,4)~wma(close,9)~wma($116-$117,3)~sma(hl2,5)-sma(hl2,34)~$119@1~$119@2~100*(highestbars(high,15)+14)/14~100*(lowestbars(low,15)+14)/14~(volume*close)*syminfo.pointvalue~$31~atr(10)~$125+$126*2~$125-$126*2~sar(0.02,0.02,0.2)~mfi(hlc3,14)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($131,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($133,3)~highest(high,14)~(($135-close)/($135-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$138+$139~$3(i:7,i:14,i:28)~v:if(!na($141)){$141=$141*100~}~$141~s4:$5(i:9,i:26,i:52):s4~$146@25~$147@25~s4:$5(i:20,i:60,i:120):s4~$152@30~$153@30~vwma(close,20)~sma(high,14)~sma(low,14)~$157-$158~($159/close)*100~$36~close\u003c$161~close\u003e$161~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$164=$164+$6($6,close)~$165=$165+1~}~v:if(!na($9)){$164=$164+$6($9,close)~$165=$165+1~}~v:if(!na($12)){$164=$164+$6($12,close)~$165=$165+1~}~v:if(!na($14)){$164=$164+$6($14,close)~$165=$165+1~}~v:if(!na($16)){$164=$164+$6($16,close)~$165=$165+1~}~v:if(!na($19)){$164=$164+$6($19,close)~$165=$165+1~}~v:if(!na($28)){$164=$164+$6($28,close)~$165=$165+1~}~v:if(!na($31)){$164=$164+$6($31,close)~$165=$165+1~}~v:if(!na($34)){$164=$164+$6($34,close)~$165=$165+1~}~v:if(!na($36)){$164=$164+$6($36,close)~$165=$165+1~}~v:if(!na($38)){$164=$164+$6($38,close)~$165=$165+1~}~v:if(!na($41)){$164=$164+$6($41,close)~$165=$165+1~}~}~$6($118,close)~v:if(!na($179)){$164=$164+$179~$165=$165+1~}~$6($156,close)~v:if(!na($181)){$164=$164+$181~$165=$165+1~}~na():f~v:if(!(na($146)||na($147)||na(close)||na(close@1)||na($145)||na($144))){$183=$7($146\u003e$147\u0026\u0026close\u003e$146\u0026\u0026close\u003c$145\u0026\u0026close@1\u003c$144\u0026\u0026close\u003e$144,$147\u003e$146\u0026\u0026close\u003c$147\u0026\u0026close\u003e$145\u0026\u0026close@1\u003e$144\u0026\u0026close\u003c$144)~}~$183~v:if(!na($183)){$164=$164+$183~$165=$165+1~}~$164=$165\u003e0?$164/$165:na():f~$164~0.0~0.0~$44~v:if(!(na($190)||na($190@1))){$189=$189+1~$188=$188+$7($190\u003c30\u0026\u0026$190@1\u003c$190,$190\u003e70\u0026\u0026$190@1\u003e$190)~}~v:if(!(na($101)||na($102)||na($101@1)||na($102@1))){$189=$189+1~$188=$188+$7($101\u003c20\u0026\u0026$102\u003c20\u0026\u0026$101\u003e$102\u0026\u0026$101@1\u003c$102@1,$101\u003e80\u0026\u0026$102\u003e80\u0026\u0026$101\u003c$102\u0026\u0026$101@1\u003e$102@1)~}~$111~v:if(!(na($193)||na($193@1))){$189=$189+1~$188=$188+$7($193\u003c(-100)\u0026\u0026$193\u003e$193@1,$193\u003e100\u0026\u0026$193\u003c$193@1)~}~v:if(!(na($60)||na($61@1)||na($62@1)||na($61)||na($62))){$189=$189+1~$188=$188+$7($60\u003e20\u0026\u0026$61@1\u003c$62@1\u0026\u0026$61\u003e$62,$60\u003e20\u0026\u0026$61@1\u003e$62@1\u0026\u0026$61\u003c$62)~}~v:if(!(na($119)||na($119@1))){$189=$189+1~$188=$188+$7(crossover($119,0)||$119\u003e0\u0026\u0026$119@1\u003e0\u0026\u0026$119\u003e$119@1\u0026\u0026$119@2\u003e$119@1,crossunder($119,0)||$119\u003c0\u0026\u0026$119@1\u003c0\u0026\u0026$119\u003c$119@1\u0026\u0026$119@2\u003c$119@1)~}~v:if(!(na($96)||na($96@1))){$189=$189+1~$188=$188+$7($96\u003e$96@1,$96\u003c$96@1)~}~v:if(!(na($93)||na($94))){$189=$189+1~$188=$188+$7($93\u003e$94,$93\u003c$94)~}~na():f~v:if(!(na($162)||na($163)||na($133)||na($134)||na($133@1)||na($134@1))){$199=$7($162\u0026\u0026$133\u003c20\u0026\u0026$134\u003c20\u0026\u0026$133\u003e$134\u0026\u0026$133@1\u003c$134@1,$163\u0026\u0026$133\u003e80\u0026\u0026$134\u003e80\u0026\u0026$133\u003c$134\u0026\u0026$133@1\u003e$134@1)~}~$199~v:if(!na($199)){$189=$189+1~$188=$188+$199~}~na():f~v:if(!(na($136)||na($136@1))){$203=$7($136\u003c(-80)\u0026\u0026$136\u003e$136@1,$136\u003e(-20)\u0026\u0026$136\u003c$136@1)~}~$203~v:if(!na($203)){$189=$189+1~$188=$188+$203~}~na():f~v:if(!(na($163)||na($162)||na($139)||na($139@1)||na($138)||na($138@1))){$207=$7($163\u0026\u0026$139\u003c0\u0026\u0026$139\u003e$139@1,$162\u0026\u0026$138\u003e0\u0026\u0026$138\u003c$138@1)~}~$207~v:if(!na($207)){$189=$189+1~$188=$188+$207~}~na():f~v:if(!na($141)){$211=$7($141\u003e70,$141\u003c30)~}~$211~v:if(!na($211)){$189=$189+1~$188=$188+$211~}~$188=$189\u003e0?$188/$189:na():f~$188~0.0~0.0~v:if(!na($164)){$216=$216+$164~$217=$217+1~}~v:if(!na($188)){$216=$216+$188~$217=$217+1~}~$216=$217\u003e0?$216/$217:na():f~$216~$14~max(close,open)~min(close,open)~$222-$223~sma($224,14)~$224\u003c$225~$224\u003e$225~high-$222~$223-low~close\u003c$221~close\u003e$221~$228\u003e0*$224~$229\u003e0*$224~open\u003cclose~open\u003eclose~high-low~$224/2+$223~$228==$229||(abs($228-$229)/$229)*100\u003c100\u0026\u0026(abs($229-$228)/$228)*100\u003c100~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$223\u003ehl2\u0026\u0026$229\u003e=2.0*$224\u0026\u0026!$232){v:if_($230){$239=1.0~}_{v:if($231){$240=1.0~}~}~}~$239?1:0~$240?1:0~0.0~0.0~v:if($226\u0026\u0026$224\u003e0\u0026\u0026$222\u003chl2\u0026\u0026$228\u003e=2.0*$224\u0026\u0026!$233){v:if_($230){$246=1.0~}_{v:if($231){$247=1.0~}~}~}~$246?1:0~$247?1:0~0.0~0.0~v:if($227@2\u0026\u0026$226@1\u0026\u0026$227){v:if_($230\u0026\u0026$235@2\u0026\u0026$222@1\u003c$223@2\u0026\u0026$234\u0026\u0026$222\u003e=$237@2\u0026\u0026$222\u003c$222@2\u0026\u0026$222@1\u003c$223){$253=1.0~}_{v:if($231\u0026\u0026$234@2\u0026\u0026$223@1\u003e$222@2\u0026\u0026$235\u0026\u0026$223\u003c=$237@2\u0026\u0026$223\u003e$223@2\u0026\u0026$223@1\u003e$222){$254=1.0~}~}~}~$253?1:0~$254?1:0~$227\u0026\u0026$228\u003c=0*$224\u0026\u0026$229\u003c=0*$224~$260\u0026\u0026$234~$260\u0026\u0026$235~$262?1:0~$261?1:0~$236\u003e0\u0026\u0026$224\u003c=$236*5/100~$265\u0026\u0026$238~$265\u0026\u0026$228\u003c=$224~$265\u0026\u0026$229\u003c=$224~$266\u0026\u0026!$267\u0026\u0026!$268?1:0~$267?1:0~$268?1:0~$227@1\u0026\u0026$235@1\u0026\u0026$230@1\u0026\u0026$234\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$227@1\u0026\u0026$234@1\u0026\u0026$231@1\u0026\u0026$235\u0026\u0026$226\u0026\u0026high\u003c=$222@1\u0026\u0026low\u003e=$223@1?1:0~$229\u003e($236/100)*75?1:0~$228\u003e($236/100)*75?1:0~$229\u003e=($236/100)*34\u0026\u0026$228\u003e=($236/100)*34\u0026\u0026!$265~$276\u0026\u0026$234?1:0~$276\u0026\u0026$235?1:0~$236*5/100\u003e$228~$236*5/100\u003e$229~0.0~0.0~v:if($227\u0026\u0026$227@1\u0026\u0026$227@2){v:if($234\u0026\u0026$234@1\u0026\u0026$234@2){$281=close\u003eclose@1\u0026\u0026close@1\u003eclose@2\u0026\u0026open\u003cclose@1\u0026\u0026open\u003eopen@1\u0026\u0026open@1\u003cclose@2\u0026\u0026open@1\u003eopen@2\u0026\u0026$279\u0026\u0026$279@1\u0026\u0026$279@2~}~v:if($235\u0026\u0026$235@1\u0026\u0026$235@2){$282=close\u003cclose@1\u0026\u0026close@1\u003cclose@2\u0026\u0026open\u003eclose@1\u0026\u0026open\u003copen@1\u0026\u0026open@1\u003eclose@2\u0026\u0026open@1\u003copen@2\u0026\u0026$280\u0026\u0026$280@1\u0026\u0026$280@2~}~}~$281?1:0~$282?1:0~$230\u0026\u0026$234\u0026\u0026$227\u0026\u0026$235@1\u0026\u0026$226@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$231\u0026\u0026$235\u0026\u0026$227\u0026\u0026$234@1\u0026\u0026$226@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$230@2\u0026\u0026$235@2\u0026\u0026$265@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$234\u0026\u0026high@1\u003clow?1:0~$231@2\u0026\u0026$234@2\u0026\u0026$265@1\u0026\u0026high@2\u003clow@1\u0026\u0026$235\u0026\u0026low@1\u003ehigh?1:0~$266@2\u0026\u0026$266@1\u0026\u0026$266~$222@1\u003c$223~$223@1\u003e$222~$292\u0026\u0026$230@2\u0026\u0026$294@1\u0026\u0026$293?1:0~$292\u0026\u0026$231@2\u0026\u0026$293@1\u0026\u0026$294?1:0~$262@1\u0026\u0026$261\u0026\u0026high@1\u003clow?1:0~$261@1\u0026\u0026$262\u0026\u0026low@1\u003ehigh?1:0~vwap(hlc3)~v^t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~#0~#1~#2~$303@1~$304@1~$305@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($302,0)~v:if_($313!=$313@1){$309=$306~$312=close@1~$310=$307~$311=$308~$306=open~$307=high~$308=low~}_{$307=max($307,high)~$308=min($308,low)~}~($310+$311+$312)/3~$8($315)~$8($315*2-$311)~$8($315*2-$310)~$8($315+1*($310-$311))~$8($315-1*($310-$311))~$8($315+2*($310-$311))~$8($315-2*($310-$311))~$8($315)~$8($315+0.382*($310-$311))~$8($315-0.382*($310-$311))~$8($315+0.618*($310-$311))~$8($315-0.618*($310-$311))~$8($315+1*($310-$311))~$8($315-1*($310-$311))~($310+$311+$306*2)/4~$8($330)~$8($330*2-$311)~$8($330*2-$310)~$8($330+1*($310-$311))~$8($330-1*($310-$311))~$8($310+2*($330-$311))~$8($311-2*($310-$330))~$310+$311*2+$312~v:if($312==$309){$338=$310+$311+$312*2~}~v:if($312\u003e$309){$338=$310*2+$311+$312~}~$8($338/4)~$8($338/2-$311)~$8($338/2-$310)~$8($315)~$8($312+0.09166666666666667*($310-$311))~$8($312-0.09166666666666667*($310-$311))~$8($312+0.18333333333333335*($310-$311))~$8($312-0.18333333333333335*($310-$311))~$8($312+0.275*($310-$311))~$8($312-0.275*($310-$311))~$0!$1!$2!$3!$4!$5!$6!$7!$8!$9!$10!$11!$12!$13!$14!$15!$16!$17!$18!$19!$20!$21!$22!$23!$24!$25!$26!$27!$28!$29!$30!$31!$32!$33!$34!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$9!$86!$87!$14!$89!$90!$95!$93!$94!$96!$97!$98!$99!$101!$102!$103!$104!$100!$101!$105!$103!$106!$107!$108!$109!$110!$111!$112!$114!$113!$115!$118!$119!$120!$121!$122!$123!$124!$127!$128!$125!$129!$130!$132!$133!$134!$136!$137!$140!$143!$144!$145!$148!$149!$150!$151!$154!$155!$156!$159!$160!$179!$181!$185!$187!$201!$205!$209!$213!$215!$220!$244!$245!$251!$252!$258!$259!$263!$264!$269!$270!$271!$272!$273!$274!$275!$277!$278!$286!$287!$288!$289!$290!$291!$295!$296!$297!$298!$299!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$328!$329!$331!$332!$333!$334!$335!$336!$337!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350;t:if_(isintraday){t:interval\u003c=15?'1D':'1W'}_{t:isweekly||ismonthly?'12M':'1M'}~i:na():f~sym(tickerid,$13,$13,0,1,0,'NONE',0,0,$14)|$9():s3|s215:$10($16,$17,$18):s215~$20!$21!$22!$23!$24!$25!$26!$27!$28!$105!$30!$31!$32!$33!$108!$35!$36!$37!$38!$39!$40!$41!$42!$43!$44!$45!$46!$47!$48!$49!$50!$51!$52!$53!$54!$55!$56!$57!$58!$59!$60!$61!$62!$63!$64!$65!$66!$67!$68!$69!$70!$71!$72!$73!$74!$75!$76!$77!$78!$79!$80!$81!$82!$83!$84!$85!$86!$87!$88!$89!$90!$91!$92!$93!$94!$95!$96!$97!$98!$99!$100!$101!$102!$103!$104!$105!$106!$107!$108!$109!$110!$111!$112!$113!$114!$115!$116!$117!$123!$119!$120!$121!$122!$123!$124!$125!$126!$127!$128!$129!$130!$131!$132!$133!$134!$135!$136!$137!$138!$139!$140!$141!$142!$143!$144!$145!$146!$147!$148!$149!$150!$151!$152!$153!$154!$155!$156!$157!$158!$159!$160!$161!$162!$163!$164!$165!$166!$167!$168!$169!$170!$171!$172!$173!$174!$175!$176!$177!$178!$179!$180!$181!$182!$183!$184!$185!$186!$187!$188!$189!$190!$191!$192!$193!$194!$195!$196!$197!$198!$199!$200!$201!$202!$203!$204!$205!$206!$207!$208!$209!$210!$211!$212!$213!$214!$215!$216!$217!$218!$219!$220!$221!$222!$223!$224!$225!$226!$227!$228!$229!$230!$231!$232!$233!$234", "isFake": false }, { From 4c6a16fd8b2421a815babb4aa79e52a222115597 Mon Sep 17 00:00:00 2001 From: stimofeev-tv Date: Tue, 28 May 2024 12:52:57 +0300 Subject: [PATCH 25/25] NOVA-0: test add bond presets --- presets/bond.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 presets/bond.yaml diff --git a/presets/bond.yaml b/presets/bond.yaml new file mode 100644 index 000000000..af6e7a527 --- /dev/null +++ b/presets/bond.yaml @@ -0,0 +1,2 @@ +--- +presets: [] \ No newline at end of file