From e158ee3e760046f83e598877760f3edf2442bde0 Mon Sep 17 00:00:00 2001 From: stimofeev Date: Mon, 12 Feb 2024 12:08:24 +0300 Subject: [PATCH] HBS-4254: fix MACD pine --- links/common.pine.link | 3 +-- 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.5.json | 2 +- scanner.data.simple.coin.json | 2 +- scanner.data.simple.crypto.5.json | 2 +- scanner.data.simple.crypto.json | 2 +- scanner.data.simple.json | 2 +- 13 files changed, 13 insertions(+), 14 deletions(-) diff --git a/links/common.pine.link b/links/common.pine.link index 16fb05798..9f786ffc4 100644 --- a/links/common.pine.link +++ b/links/common.pine.link @@ -179,7 +179,7 @@ plot(lowerBB50, title='BB.lower_50') // study(title="Moving Average Convergence/Divergence", shorttitle="MACD") fastMAMACD = EMA12 -slowMAMACD = EMA25 +slowMAMACD = ta.ema(close, 26) macdMACD = fastMAMACD - slowMAMACD signalMACD = ta.ema(macdMACD, 9) histMACD = macdMACD - signalMACD @@ -255,7 +255,6 @@ 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 = EMA20 rangemaKltChnl = ta.atr(10) diff --git a/scanner.data.bonds.json b/scanner.data.bonds.json index 59f6c73f2..10e4a58b6 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,i:1826)~time_tradingday/1000~#0~$418~$419-$419@1~na():f~v:if(!($419@1\u003c0)\u0026\u0026!($419\u003c0)){$421=($420/$419@1)*100~}~$421~timenow-86400000~$11(time,$424,i:1)~close~v:if(n==0){$426=$426+$426@365*0~}~$426@$425~$426@$388~$426@$407~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$417!$419!$420!$423!$428!$429!$430;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_(#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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,i:1826)~time_tradingday/1000~#0~$418~$419-$419@1~na():f~v:if(!($419@1\u003c0)\u0026\u0026!($419\u003c0)){$421=($420/$419@1)*100~}~$421~timenow-86400000~$11(time,$424,i:1)~close~v:if(n==0){$426=$426+$426@365*0~}~$426@$425~$426@$388~$426@$407~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$417!$419!$420!$423!$428!$429!$430;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 8545c1069..1ab8865b9 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~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~((close-open@4)/open@4)*100~#0~$14(close,open,$394,i:7)~#1~$14(close,open,$386,i:30)~#2~$14(close,open,$379,i:90)~#3~$14(close,open,$373,i:180)~#4~timenow-31536000000~$11(time,$414,i:365)~$14(close,open,$415,i:365)~#5~$14(close,open,$365,i:1826)~#6~$15(close,open)~#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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$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~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~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~((close-open@4)/open@4)*100~#0~$14(close,open,$394,i:7)~#1~$14(close,open,$386,i:30)~#2~$14(close,open,$379,i:90)~#3~$14(close,open,$373,i:180)~#4~timenow-31536000000~$11(time,$414,i:365)~$14(close,open,$415,i:365)~#5~$14(close,open,$365,i:1826)~#6~$15(close,open)~#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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$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 ad53f8798..c68e7a1d6 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~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~((close-open@4)/open@4)*100~#0~$14(close,open,$394,i:7)~#1~$14(close,open,$386,i:30)~#2~$14(close,open,$379,i:90)~#3~$14(close,open,$373,i:180)~#4~timenow-31536000000~$11(time,$414,i:365)~$14(close,open,$415,i:365)~#5~$14(close,open,$365,i:1826)~#6~$15(close,open)~#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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$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~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~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~((close-open@4)/open@4)*100~#0~$14(close,open,$394,i:7)~#1~$14(close,open,$386,i:30)~#2~$14(close,open,$379,i:90)~#3~$14(close,open,$373,i:180)~#4~timenow-31536000000~$11(time,$414,i:365)~$14(close,open,$415,i:365)~#5~$14(close,open,$365,i:1826)~#6~$15(close,open)~#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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$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 c11032655..52a4e9803 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$417!$418;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_(#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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$417!$418;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 82d76c90b..7485f269b 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$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!$449!$450;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_(#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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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($300)~v:if_($308!=$308@1){$304=$301~$307=close@1~$305=$302~$306=$303~$301=open~$302=high~$303=low~}_{$302=max($302,high)~$303=min($303,low)~}~($305+$306+$307)/3~$8($310)~$8($310*2-$306)~$8($310*2-$305)~$8($310+1*($305-$306))~$8($310-1*($305-$306))~$8($310+2*($305-$306))~$8($310-2*($305-$306))~$8($310)~$8($310+0.382*($305-$306))~$8($310-0.382*($305-$306))~$8($310+0.618*($305-$306))~$8($310-0.618*($305-$306))~$8($310+1*($305-$306))~$8($310-1*($305-$306))~($305+$306+$301*2)/4~$8($325)~$8($325*2-$306)~$8($325*2-$305)~$8($325+1*($305-$306))~$8($325-1*($305-$306))~$8($305+2*($325-$306))~$8($306-2*($305-$325))~$305+$306*2+$307~v:if($307==$304){$333=$305+$306+$307*2~}~v:if($307\u003e$304){$333=$305*2+$306+$307~}~$8($333/4)~$8($333/2-$306)~$8($333/2-$305)~$8($310)~$8($307+0.09166666666666667*($305-$306))~$8($307-0.09166666666666667*($305-$306))~$8($307+0.18333333333333335*($305-$306))~$8($307-0.18333333333333335*($305-$306))~$8($307+0.275*($305-$306))~$8($307-0.275*($305-$306))~v^high~v^time/1000~v^low~v:if(high\u003e$346){$346=high~$347=time/1000~$348=low~}~v:if(low\u003c$348){$348=low~}~$346~$347~$346~$347~$348~v^low~v^time/1000~v:if(low\u003c$356){$356=low~$357=time/1000~}~$356~$357~$356~$357~v^open~timenow-157766400000~$11(time,$364,i:1826)~timenow-94608000000~$11(time,$366,i:1095)~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~timenow-31536000000~$11(time,$406,i:365)~$15(close,open)~((close-open@4)/open@4)*100~$14(close,open,$396,i:7)~$14(close,open,$388,i:30)~$14(close,open,$381,i:90)~$14(close,open,$375,i:180)~$14(close,open,$407,i:365)~$14(close,open,$367,i:1095)~$14(close,open,$365,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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$311!$312!$313!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$326!$327!$328!$329!$330!$331!$332!$336!$337!$338!$339!$340!$341!$342!$343!$344!$345!$351!$352!$353!$354!$355!$359!$360!$361!$362!$363!$370!$371!$372!$373!$376!$377!$378!$379!$382!$383!$384!$385!$390!$391!$392!$393!$398!$400!$402!$403!$404!$405!$409!$410!$411!$412!$413!$414!$415!$416!$408!$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!$449!$450;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 }, { diff --git a/scanner.data.simple.5.json b/scanner.data.simple.5.json index 5d29297f2..b762d8d66 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$350~$12(i:$351,i:$349,#3)~v:if($11(i:$350)\u003e35){$352=na():f~}~$352~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$354;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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$350~$12(i:$351,i:$349,#3)~v:if($11(i:$350)\u003e35){$352=na():f~}~$352~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$354;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 }, { diff --git a/scanner.data.simple.bonds.json b/scanner.data.simple.bonds.json index f52f235d3..16d7fa37b 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~#3~$349~$350-$350@1~na():f~v:if(!($350@1\u003c0)\u0026\u0026!($350\u003c0)){$352=($351/$350@1)*100~}~$352~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$350!$351!$354;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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~#3~$349~$350-$350@1~na():f~v:if(!($350@1\u003c0)\u0026\u0026!($350\u003c0)){$352=($351/$350@1)*100~}~$352~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$350!$351!$354;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 }, { diff --git a/scanner.data.simple.coin.5.json b/scanner.data.simple.coin.5.json index 8e0dc93df..00246e046 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~#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($349)~na():f~v:if(!na($349)\u0026\u0026!na($352)){$353=$349-$352~}~$353~na():f~v:if(!na($353)\u0026\u0026$352!=0){$356=($353/abs($352))*100~}~$356~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($359)){$360=close-$359~}~$360~na():f~v:if_(na($360)||$359==0||$359\u003c0\u0026\u0026close\u003e0){}_{$363=($360/abs($359))*100~}~$363~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$355!$358!$359!$362!$365;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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~#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($349)~na():f~v:if(!na($349)\u0026\u0026!na($352)){$353=$349-$352~}~$353~na():f~v:if(!na($353)\u0026\u0026$352!=0){$356=($353/abs($352))*100~}~$356~$11(close)~na():f~v:if(!na(close)\u0026\u0026!na($359)){$360=close-$359~}~$360~na():f~v:if_(na($360)||$359==0||$359\u003c0\u0026\u0026close\u003e0){}_{$363=($360/abs($359))*100~}~$363~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$349!$350!$351!$352!$355!$358!$359!$362!$365;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 }, { diff --git a/scanner.data.simple.coin.json b/scanner.data.simple.coin.json index 951d295ba..dd0c0c439 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$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|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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$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|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 }, { diff --git a/scanner.data.simple.crypto.5.json b/scanner.data.simple.crypto.5.json index d8d0b9b6b..e8a1c363a 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$350~$12(i:$351,i:$349,#3)~v:if($11(i:$350)\u003e35){$352=na():f~}~$352~#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($355)~na():f~v:if(!na($355)\u0026\u0026!na($358)){$359=$355-$358~}~$359~na():f~v:if(!na($359)\u0026\u0026$358!=0){$362=($359/abs($358))*100~}~$362~$15(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!$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$354!$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,$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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~v^i:(interval*60)*1000~v^i:1440/interval~v^i:11*$350~$12(i:$351,i:$349,#3)~v:if($11(i:$350)\u003e35){$352=na():f~}~$352~#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($355)~na():f~v:if(!na($355)\u0026\u0026!na($358)){$359=$355-$358~}~$359~na():f~v:if(!na($359)\u0026\u0026$358!=0){$362=($359/abs($358))*100~}~$362~$15(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!$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$341!$342!$343!$344!$345!$346!$347!$348!$354!$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,$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 }, { diff --git a/scanner.data.simple.crypto.json b/scanner.data.simple.crypto.json index ca847c6bf..fa2358077 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$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!$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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$339!$340!$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!$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 }, { diff --git a/scanner.data.simple.json b/scanner.data.simple.json index 951d295ba..dd0c0c439 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~$33~$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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$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|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)~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)~sum(hlc3\u003ehlc3@1?hlc3*volume:0,14)~sum(hlc3\u003chlc3@1?hlc3*volume:0,14)~100.0-100.0/(1.0+$129/$130)~!(close==low\u0026\u0026close==high||high==low)?((close-low-(high-close))/(high-low))*volume:0~sum($132,20)/sum(volume,20)~sma(stoch($44,$44,$44,14),3)~sma($134,3)~highest(high,14)~(($136-close)/($136-lowest(low,14)))*(-100)~roc(close,9)~high-$30~low-$30~$139+$140~$3(i:7,i:14,i:28)~v:if(!na($142)){$142=$142*100~}~$142~s4:$5(i:9,i:26,i:52):s4~$147@25~$148@25~s4:$5(i:20,i:60,i:120):s4~$153@30~$154@30~vwma(close,20)~sma(high-low,14)~$36~close\u003c$159~close\u003e$159~0.0~0.0~v:if(!na(close)){v:if(!na($6)){$162=$162+$6($6,close)~$163=$163+1~}~v:if(!na($9)){$162=$162+$6($9,close)~$163=$163+1~}~v:if(!na($12)){$162=$162+$6($12,close)~$163=$163+1~}~v:if(!na($14)){$162=$162+$6($14,close)~$163=$163+1~}~v:if(!na($16)){$162=$162+$6($16,close)~$163=$163+1~}~v:if(!na($19)){$162=$162+$6($19,close)~$163=$163+1~}~v:if(!na($28)){$162=$162+$6($28,close)~$163=$163+1~}~v:if(!na($31)){$162=$162+$6($31,close)~$163=$163+1~}~v:if(!na($34)){$162=$162+$6($34,close)~$163=$163+1~}~v:if(!na($36)){$162=$162+$6($36,close)~$163=$163+1~}~v:if(!na($38)){$162=$162+$6($38,close)~$163=$163+1~}~v:if(!na($41)){$162=$162+$6($41,close)~$163=$163+1~}~}~$6($117,close)~v:if(!na($177)){$162=$162+$177~$163=$163+1~}~$6($157,close)~v:if(!na($179)){$162=$162+$179~$163=$163+1~}~na():f~v:if(!(na($147)||na($148)||na(close)||na(close@1)||na($146)||na($145))){$181=$7($147\u003e$148\u0026\u0026close\u003e$147\u0026\u0026close\u003c$146\u0026\u0026close@1\u003c$145\u0026\u0026close\u003e$145,$148\u003e$147\u0026\u0026close\u003c$148\u0026\u0026close\u003e$146\u0026\u0026close@1\u003e$145\u0026\u0026close\u003c$145)~}~$181~v:if(!na($181)){$162=$162+$181~$163=$163+1~}~$162=$163\u003e0?$162/$163:na():f~$162~0.0~0.0~$44~v:if(!(na($188)||na($188@1))){$187=$187+1~$186=$186+$7($188\u003c30\u0026\u0026$188@1\u003c$188,$188\u003e70\u0026\u0026$188@1\u003e$188)~}~v:if(!(na($100)||na($101)||na($100@1)||na($101@1))){$187=$187+1~$186=$186+$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($191)||na($191@1))){$187=$187+1~$186=$186+$7($191\u003c(-100)\u0026\u0026$191\u003e$191@1,$191\u003e100\u0026\u0026$191\u003c$191@1)~}~v:if(!(na($59)||na($60@1)||na($61@1)||na($60)||na($61))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$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))){$187=$187+1~$186=$186+$7($95\u003e$95@1,$95\u003c$95@1)~}~v:if(!(na($92)||na($93))){$187=$187+1~$186=$186+$7($92\u003e$93,$92\u003c$93)~}~na():f~v:if(!(na($160)||na($161)||na($134)||na($135)||na($134@1)||na($135@1))){$197=$7($160\u0026\u0026$134\u003c20\u0026\u0026$135\u003c20\u0026\u0026$134\u003e$135\u0026\u0026$134@1\u003c$135@1,$161\u0026\u0026$134\u003e80\u0026\u0026$135\u003e80\u0026\u0026$134\u003c$135\u0026\u0026$134@1\u003e$135@1)~}~$197~v:if(!na($197)){$187=$187+1~$186=$186+$197~}~na():f~v:if(!(na($137)||na($137@1))){$201=$7($137\u003c(-80)\u0026\u0026$137\u003e$137@1,$137\u003e(-20)\u0026\u0026$137\u003c$137@1)~}~$201~v:if(!na($201)){$187=$187+1~$186=$186+$201~}~na():f~v:if(!(na($161)||na($160)||na($140)||na($140@1)||na($139)||na($139@1))){$205=$7($161\u0026\u0026$140\u003c0\u0026\u0026$140\u003e$140@1,$160\u0026\u0026$139\u003e0\u0026\u0026$139\u003c$139@1)~}~$205~v:if(!na($205)){$187=$187+1~$186=$186+$205~}~na():f~v:if(!na($142)){$209=$7($142\u003e70,$142\u003c30)~}~$209~v:if(!na($209)){$187=$187+1~$186=$186+$209~}~$186=$187\u003e0?$186/$187:na():f~$186~0.0~0.0~v:if(!na($162)){$214=$214+$162~$215=$215+1~}~v:if(!na($186)){$214=$214+$186~$215=$215+1~}~$214=$215\u003e0?$214/$215:na():f~$214~$14~max(close,open)~min(close,open)~$220-$221~sma($222,14)~$222\u003c$223~$222\u003e$223~high-$220~$221-low~close\u003c$219~close\u003e$219~$226\u003e0*$222~$227\u003e0*$222~open\u003cclose~open\u003eclose~high-low~$222/2+$221~$226==$227||(abs($226-$227)/$227)*100\u003c100\u0026\u0026(abs($227-$226)/$226)*100\u003c100~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$221\u003ehl2\u0026\u0026$227\u003e=2.0*$222\u0026\u0026!$230){v:if_($228){$237=1.0~}_{v:if($229){$238=1.0~}~}~}~$237?1:0~$238?1:0~0.0~0.0~v:if($224\u0026\u0026$222\u003e0\u0026\u0026$220\u003chl2\u0026\u0026$226\u003e=2.0*$222\u0026\u0026!$231){v:if_($228){$244=1.0~}_{v:if($229){$245=1.0~}~}~}~$244?1:0~$245?1:0~0.0~0.0~v:if($225@2\u0026\u0026$224@1\u0026\u0026$225){v:if_($228\u0026\u0026$233@2\u0026\u0026$220@1\u003c$221@2\u0026\u0026$232\u0026\u0026$220\u003e=$235@2\u0026\u0026$220\u003c$220@2\u0026\u0026$220@1\u003c$221){$251=1.0~}_{v:if($229\u0026\u0026$232@2\u0026\u0026$221@1\u003e$220@2\u0026\u0026$233\u0026\u0026$221\u003c=$235@2\u0026\u0026$221\u003e$221@2\u0026\u0026$221@1\u003e$220){$252=1.0~}~}~}~$251?1:0~$252?1:0~$225\u0026\u0026$226\u003c=0*$222\u0026\u0026$227\u003c=0*$222~$258\u0026\u0026$232~$258\u0026\u0026$233~$260?1:0~$259?1:0~$234\u003e0\u0026\u0026$222\u003c=$234*5/100~$263\u0026\u0026$236~$263\u0026\u0026$226\u003c=$222~$263\u0026\u0026$227\u003c=$222~$264\u0026\u0026!$265\u0026\u0026!$266?1:0~$265?1:0~$266?1:0~$225@1\u0026\u0026$233@1\u0026\u0026$228@1\u0026\u0026$232\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$225@1\u0026\u0026$232@1\u0026\u0026$229@1\u0026\u0026$233\u0026\u0026$224\u0026\u0026high\u003c=$220@1\u0026\u0026low\u003e=$221@1?1:0~$227\u003e($234/100)*75?1:0~$226\u003e($234/100)*75?1:0~$227\u003e=($234/100)*34\u0026\u0026$226\u003e=($234/100)*34\u0026\u0026!$263~$274\u0026\u0026$232?1:0~$274\u0026\u0026$233?1:0~$234*5/100\u003e$226~$234*5/100\u003e$227~0.0~0.0~v:if($225\u0026\u0026$225@1\u0026\u0026$225@2){v:if($232\u0026\u0026$232@1\u0026\u0026$232@2){$279=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$277\u0026\u0026$277@1\u0026\u0026$277@2~}~v:if($233\u0026\u0026$233@1\u0026\u0026$233@2){$280=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$278\u0026\u0026$278@1\u0026\u0026$278@2~}~}~$279?1:0~$280?1:0~$228\u0026\u0026$232\u0026\u0026$225\u0026\u0026$233@1\u0026\u0026$224@1\u0026\u0026close\u003e=open@1\u0026\u0026open\u003c=close@1\u0026\u0026(close\u003eopen@1||open\u003cclose@1)?1:0~$229\u0026\u0026$233\u0026\u0026$225\u0026\u0026$232@1\u0026\u0026$224@1\u0026\u0026close\u003c=open@1\u0026\u0026open\u003e=close@1\u0026\u0026(close\u003copen@1||open\u003eclose@1)?1:0~$228@2\u0026\u0026$233@2\u0026\u0026$263@1\u0026\u0026low@2\u003ehigh@1\u0026\u0026$232\u0026\u0026high@1\u003clow?1:0~$229@2\u0026\u0026$232@2\u0026\u0026$263@1\u0026\u0026high@2\u003clow@1\u0026\u0026$233\u0026\u0026low@1\u003ehigh?1:0~$264@2\u0026\u0026$264@1\u0026\u0026$264~$220@1\u003c$221~$221@1\u003e$220~$290\u0026\u0026$228@2\u0026\u0026$292@1\u0026\u0026$291?1:0~$290\u0026\u0026$229@2\u0026\u0026$291@1\u0026\u0026$292?1:0~$260@1\u0026\u0026$259\u0026\u0026high@1\u003clow?1:0~$259@1\u0026\u0026$260\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~$301@1~$302@1~$303@1~v^0.0~v^0.0~v^0.0~v^0.0~timeV5($300)~v:if_($311!=$311@1){$307=$304~$310=close@1~$308=$305~$309=$306~$304=open~$305=high~$306=low~}_{$305=max($305,high)~$306=min($306,low)~}~($308+$309+$310)/3~$8($313)~$8($313*2-$309)~$8($313*2-$308)~$8($313+1*($308-$309))~$8($313-1*($308-$309))~$8($313+2*($308-$309))~$8($313-2*($308-$309))~$8($313)~$8($313+0.382*($308-$309))~$8($313-0.382*($308-$309))~$8($313+0.618*($308-$309))~$8($313-0.618*($308-$309))~$8($313+1*($308-$309))~$8($313-1*($308-$309))~($308+$309+$304*2)/4~$8($328)~$8($328*2-$309)~$8($328*2-$308)~$8($328+1*($308-$309))~$8($328-1*($308-$309))~$8($308+2*($328-$309))~$8($309-2*($308-$328))~$308+$309*2+$310~v:if($310==$307){$336=$308+$309+$310*2~}~v:if($310\u003e$307){$336=$308*2+$309+$310~}~$8($336/4)~$8($336/2-$309)~$8($336/2-$308)~$8($313)~$8($310+0.09166666666666667*($308-$309))~$8($310-0.09166666666666667*($308-$309))~$8($310+0.18333333333333335*($308-$309))~$8($310-0.18333333333333335*($308-$309))~$8($310+0.275*($308-$309))~$8($310-0.275*($308-$309))~$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!$131!$133!$134!$135!$137!$138!$141!$144!$145!$146!$149!$150!$151!$152!$155!$156!$157!$158!$177!$179!$183!$185!$199!$203!$207!$211!$213!$218!$242!$243!$249!$250!$256!$257!$261!$262!$267!$268!$269!$270!$271!$272!$273!$275!$276!$284!$285!$286!$287!$288!$289!$293!$294!$295!$296!$297!$314!$315!$316!$317!$318!$319!$320!$321!$322!$323!$324!$325!$326!$327!$329!$330!$331!$332!$333!$334!$335!$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|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 }, {