-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindicatorsmap.json
1068 lines (1068 loc) · 43.7 KB
/
indicatorsmap.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"APO": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Absolute Price Oscillator (APO)"
},
"code": "var values = inputSource('Source', \"close\");\nvar short_period = inputNumber('Short Period', 10);\nvar long_period = inputNumber('Long Period', 20);\nvar apoResults = apo({\n short_period,\n long_period,\n values\n});\nplot('apo', apoResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffcdd2')\n});"
},
"AD": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Accumulation Distribution Line (AD)"
},
"code": "var {\n high,\n low,\n close,\n volume\n} = this.data;\nvar adResults = ad({\n high,\n low,\n close,\n volume\n});\nplot('ad', adResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffebee')\n});"
},
"ADOSC": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Chaikin Oscillator CO(ADOSC)"
},
"code": "var {\n high,\n low,\n close,\n volume\n} = this.data;\nvar short_period = inputNumber('Short Period', 2);\nvar long_period = inputNumber('Long Period', 5);\nvar adResults = adosc({\n short_period,\n long_period,\n high,\n low,\n close,\n volume\n});\nplot('adosc', adResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffcdd2')\n});"
},
"AVOL": {
"meta": {
"overlay": false,
"name": "Annual Volatility (AVOL)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('Source', 'close');\nvar period = inputNumber('Period', 10);\nvar results = volatility({\n values,\n period\n});\nplot(`volatility`, results, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('Color', '#448AFF'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"AROON": {
"meta": {
"overlay": false,
"name": "Aroon (AROON)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
-10,
110
],
"useFixedRange": true
},
"code": "var {\n high,\n low\n} = this.data;\nvar period = inputNumber('Period', 14);\nvar {\n aroon_up,\n aroon_down\n} = aroon({\n period,\n high,\n low\n});\nplot('Arron Down', aroon_down, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Down Color', '#9D4A4A')\n});\nplot('Arron Up', aroon_up, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Up Color', '#4A9D4A')\n});"
},
"AROONOSC": {
"meta": {
"overlay": false,
"name": "Aroon Oscillator (AROONOSC)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
-110,
110
],
"useFixedRange": true
},
"code": "var {\n high,\n low\n} = this.data;\nvar period = inputNumber('Period', 14);\nvar results = aroonosc({\n period,\n high,\n low\n});\nvar fillColor = results.map(val => {\n return val > 0 ? inputColor('Up Color', '#4A9D4A') : inputColor('Down Color', '#9D4A4A');\n});\nfill('aroonosc', results, results.map(r => 0), {\n fillColor,\n lineWidth: inputLineWidth('LineWidth', 2),\n strokeBorder: true\n});"
},
"ADX": {
"meta": {
"overlay": false,
"useOwnScale": false,
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Average Directional Index (ADX)"
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nvar period = inputNumber('Period', 5);\nvar adx_results = adx({\n period,\n high,\n low,\n close\n});\nplot('adx', adx_results, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('LineWidth', 2),\n strokeColor: inputColor('Color', '#ef9a9a')\n});\n// if(inputBoolean('Plot DM', false)) {\n// var { plus_dm, minus_dm } = dm({ high, low, period});\n// var fillColor = plus_dm.map((pdm, index)=> {\n// return pdm > minus_dm[index] ? inputColor('Plus DM Color ', '#4A9D4A') : inputColor('Minus DM Color ', '#9D4A4A');\n// })\n// fill('dm', plus_dm, minus_dm, { fillColor , opacity : inputOpacity('Band Opacity', 0.3), strokeBorder : false })\n// }"
},
"ADXR": {
"meta": {
"overlay": false,
"useOwnScale": false,
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Average Directional Movement Rating (ADXR)"
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nvar period = inputNumber('Period', 5);\nvar adxr_results = adxr({\n period,\n high,\n low,\n close\n});\nplot('adx', adxr_results, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('LineWidth', 2),\n strokeColor: inputColor('Color', '#ef9a9a')\n});"
},
"ATR": {
"meta": {
"overlay": false,
"name": "Average True Range (ATR)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "let {\n high,\n low,\n close\n} = this.data;\nlet period = inputNumber('Period', 14);\nlet strokeColor = inputColor('Color', '#64B5F6');\nlet atrValues = atr({\n high,\n low,\n close,\n period\n});\nplot('ATR', atrValues, {\n strokeColor\n});"
},
"AO": {
"meta": {
"overlay": false,
"name": "Awesome Oscillator (AO)",
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low\n} = this.data;\nvar gainingAbove = inputColor('Gainging Above Color', \"#4A9D4A\");\nvar losingAbove = inputColor('Losing Above Color', \"#4AF94A\");\nvar gainingBelow = inputColor('Gainging Below Color', \"#F94A4A\");\nvar losingBelow = inputColor('Losing Below Color', \"#9D4A4A\");\nvar aoResults = ao({\n high,\n low\n});\nvar aoColor = aoResults.map((val, index) => {\n return val > 0 ? val > aoResults[index + 1] ? gainingAbove : losingAbove : val > aoResults[index + 1] ? gainingBelow : losingBelow;\n});\nplot('Histogram', aoResults, {\n strokeColor: aoColor,\n plotType: AvailablePlotType.Histogram,\n opacity: inputOpacity('Histogram Opacity', 1)\n});"
},
"BOP": {
"meta": {
"overlay": false,
"name": "Balance of Power (BOP)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n open,\n high,\n low,\n close\n} = this.data;\nvar results = bop({\n open,\n high,\n low,\n close\n});\nplot('bop', results, {\n strokeColor: inputColor('Color', '#e57373')\n});"
},
"BB": {
"meta": {
"overlay": true,
"name": "Bollinger Bands (BB)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var input = {\n period: inputNumber('Period', 14),\n values: inputSource('Source', 'close'),\n stddev: inputNumber('Standard Deviation', 2)\n};\nlet {\n bbands_lower,\n bbands_middle,\n bbands_upper\n} = bbands(input);\nplot('ma', bbands_middle);\nlet fillStyle = {\n opacity: inputOpacity('Band Opacity', 0.1),\n lineWidth: inputLineWidth('Line Width', 1),\n fillColor: inputColor('Fill Color', '#fff9c4'),\n strokeBorder: inputBoolean('Stroke Border', true),\n strokeColor: inputColor('Stroke Color', 'red')\n};\nfill('bands', bbands_upper, bbands_lower, fillStyle);"
},
"CVI": {
"meta": {
"overlay": false,
"name": "Chaikins Volatility Index (CVI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low\n} = this.data;\nvar period = inputNumber('Period', 14);\nvar color = inputColor('Color', '#f44336');\nvar results = cvi({\n high,\n low,\n period\n});\nplot('cvi', results, {\n strokeColor: color,\n lineWidth: inputLineWidth('LineWidth', 2)\n});"
},
"CMO": {
"meta": {
"overlay": false,
"name": "Chande Momentum Oscillator (CMO)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('Source', \"close\");\nvar period = inputNumber('Period', 14);\nvar color = inputColor('Color', '#f44336');\nvar results = cmo({\n values,\n period\n});\nplot('cmo', results, {\n strokeColor: color,\n lineWidth: inputLineWidth('LineWidth', 2)\n});"
},
"CCI": {
"meta": {
"overlay": false,
"name": "Commodity Channel Index (CCI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nvar period = inputNumber('Period', 14);\nvar results = cci({\n high,\n low,\n close,\n period\n});\nplot('CCI', results, {\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ef5350')\n});"
},
"DPO": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Detrended Price Oscillator (DPO)"
},
"code": "var values = inputSource('Source', \"close\");\nvar period = inputNumber('Period', 21);\nvar dpoResults = dpo({\n period,\n values\n});\nplot('dpo', dpoResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#e1bee7')\n});"
},
"DEMA": {
"meta": {
"overlay": true,
"name": "Double EMA (DEMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar emaperiod = inputNumber('Period', 9);\nvar emacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar emavalues = dema({\n period: emaperiod,\n values: mainput\n});\nplot('EMA', emavalues, {\n strokeColor: emacolor,\n lineWidth: lineWidth\n});"
},
"EOM": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Ease of movement (EOM)"
},
"code": "var {\n high,\n low,\n volume\n} = this.data;\nvar emvResults = emv({\n high,\n low,\n volume\n});\nplot('emv', emvResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffebee')\n});"
},
"EMA": {
"meta": {
"overlay": true,
"name": "Exponential Moving Average (EMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar emaperiod = inputNumber('Period', 9);\nvar emacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar emavalues = ema({\n period: emaperiod,\n values: mainput\n});\nplot('EMA', emavalues, {\n strokeColor: emacolor,\n lineWidth: lineWidth\n});"
},
"FA": {
"meta": {
"overlay": true,
"name": "Fishnet Average (FA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "let {\n close\n} = this.data;\nlet fishNetPeriod = inputString('Fishnet', '5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200');\nvar periods = fishNetPeriod.split(',');\nperiods.forEach(period => {\n plot('period', sma({\n values: close,\n period: parseInt(period)\n }), {\n strokeColor: inputColor('Color', '#C58EFF')\n });\n});"
},
"FOSC": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Forecast Oscillator (FOSC)"
},
"code": "var values = inputSource('Source', \"close\");\nvar period = inputNumber('Period', 14);\nvar foscResults = fosc({\n period,\n values\n});\nvar strokeColor = foscResults.map((fosc, index) => {\n return fosc > 0 ? inputColor('Up Color ', '#4A9D4A') : inputColor('Down Color ', '#9D4A4A');\n});\nplot('fosc', foscResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: strokeColor\n});"
},
"HMA": {
"meta": {
"overlay": true,
"name": "Hull Moving Average (HMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar hmaperiod = inputNumber('Period', 9);\nvar hmacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar hmavalues = hma({\n period: hmaperiod,\n values: mainput\n});\nplot('hma', hmavalues, {\n strokeColor: hmacolor,\n lineWidth: lineWidth\n});"
},
"IC": {
"meta": {
"overlay": true,
"name": "Ichimoku Cloud (IC)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nvar conversionPeriod = inputNumber('Conversion Period', 9);\nvar basePeriod = inputNumber('Base Period', 26);\nvar spanPeriod = inputNumber('Span Period', 52);\nvar displacement = inputNumber('Displacement', 26);\nvar chickuSpanColor = inputColor('Chiku Span', 'grey');\nvar conversionLineColor = inputColor('Conversion Line', 'blue');\nvar baseLineColor = inputColor('Base Line', 'red');\nvar spanAColor = inputColor('SPAN A', this.styles.upColor);\nvar spanBColor = inputColor('SPAN B', this.styles.downColor);\nvar ichimokuResults = ichimokucloud({\n conversionPeriod,\n basePeriod,\n spanPeriod,\n displacement,\n high,\n low\n});\nvar conversions = [];\nvar bases = [];\nvar spanAs = [];\nvar spanBs = [];\nichimokuResults.forEach((result, index) => {\n conversions.push(result.conversion);\n bases.push(result.base);\n spanAs.push(result.spanA);\n spanBs.push(result.spanB);\n});\nplot('ChikuSpan', close, {\n strokeColor: chickuSpanColor\n}, {\n offset: -displacement\n});\nplot('ConversionLine', conversions, {\n strokeColor: conversionLineColor\n});\nplot('BaseLine', bases, {\n strokeColor: baseLineColor\n});\nplot('Leading Span A', spanAs, {\n strokeColor: spanAColor\n}, {\n offset: displacement\n});\nplot('Leading Span B', spanBs, {\n strokeColor: spanBColor\n}, {\n offset: displacement\n});\nvar cloudFillColor = spanAs.map((mac, index) => {\n return spanAs[index] > spanBs[index] ? this.styles.upColor : this.styles.downColor;\n});\nfill('Cloud', spanAs, spanBs, {\n fillColor: cloudFillColor,\n opacity: 0.2\n}, {\n offset: displacement\n});"
},
"KAMA": {
"meta": {
"overlay": true,
"name": "Kaufman Adaptive Moving Avg (KAMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar kamaperiod = inputNumber('Period', 21);\nvar kamacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar kamavalues = kama({\n period: kamaperiod,\n values: mainput\n});\nplot('kama', kamavalues, {\n strokeColor: kamacolor,\n lineWidth: lineWidth\n});"
},
"KC": {
"meta": {
"overlay": true,
"name": "Keltner Channels (KC)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nvar useSMA = inputBoolean('Use SMA', false);\nvar maPeriod = inputNumber('MA Period', 20);\nvar atrPeriod = inputNumber('ATR Period', 10);\nvar multiplier = inputNumber('ATR Multiplier', 1);\nvar color = inputColor('Color ', '#42a5f5');\nvar opacity = inputOpacity('Opacity', 0.2);\nvar kcOutput = keltnerchannels({\n high,\n low,\n close,\n useSMA,\n maPeriod,\n atrPeriod,\n multiplier\n});\nvar middle = [];\nvar upper = [];\nvar lower = [];\nkcOutput.forEach(data => {\n middle.push(data.middle);\n upper.push(data.upper);\n lower.push(data.lower);\n});\nplot('Base', middle, {\n strokeColor: color\n});\nplot('Upper', upper, {\n strokeColor: color\n});\nplot('Lower', lower, {\n strokeColor: color\n});\nfill('Channel', upper, lower, {\n fillColor: color,\n opacity: opacity\n});"
},
"KVO": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Klinger Volume Oscillator (KVO)"
},
"code": "var {\n high,\n low,\n close,\n volume\n} = this.data;\nvar short_period = inputNumber('Short Period', 34);\nvar long_period = inputNumber('Long Period', 55);\nvar signalPeriod = inputNumber('Signal Period', 13);\nvar kvoResults = kvo({\n short_period,\n long_period,\n high,\n low,\n close,\n volume\n});\nvar signal = ema({\n values: kvoResults,\n period: signalPeriod\n});\nplot('kvo', kvoResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffebee')\n});\nplot('signal', signal, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Signal Color', 'green')\n});"
},
"LINREG": {
"meta": {
"overlay": true,
"name": "Linear Regression (LINREG)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar linregperiod = inputNumber('Period', 50);\nvar linregcolor = inputColor('Color', '#e57373');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar linregvalues = linreg({\n period: linregperiod,\n values: mainput\n});\nplot('linreg', linregvalues, {\n strokeColor: linregcolor,\n lineWidth: lineWidth\n});"
},
"MFI": {
"meta": {
"overlay": false,
"name": "Money Flow Index (MFI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var period = inputNumber('MFI Period', 14);\nvar overBought = inputNumber('Over Bought', 80);\nvar overSold = inputNumber('Over Sold', 20);\nvar bandOpacity = inputOpacity('Band Opacity', 0.1);\nvar bandColor = inputColor('Band Color');\nhfill('Range', overSold, overBought, {\n opacity: bandOpacity,\n lineWidth: {\n value: 2\n },\n fillColor: bandColor,\n strokeBorder: inputBoolean('Stroke Band', true),\n strokeColor: bandColor\n});\nvar {\n high,\n low,\n close,\n volume\n} = this.data;\nvar mfiValues = mfi({\n high,\n low,\n close,\n volume,\n period\n});\nplot(`MFI`, mfiValues, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('MFI Color'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"MASS": {
"meta": {
"overlay": false,
"name": "Mass Index (MASS)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low\n} = this.data;\nvar period = inputNumber('Period', 10);\nplot('Mass', mass({\n high,\n low,\n period\n}), {\n strokeColor: inputColor('Color', '#f5f5f5'),\n lineWidth: inputLineWidth('LineWidth', 2)\n});"
},
"MEDPRICE": {
"meta": {
"overlay": true,
"name": "Median Price (MEDPRICE)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('Value 1', 'high');\nvar values1 = inputSource('Value 2', 'low');\nvar med = medprice({\n high: values,\n low: values1\n});\nplot('med', med, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#f44336')\n});"
},
"MOM": {
"meta": {
"overlay": false,
"name": "Momentum (MOM)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource(\"Source\", \"close\");\n;\nvar period = inputNumber('Period', 10);\nplot('mom', mom({\n values,\n period\n}), {\n strokeColor: inputColor('Color', '#f5f5f5'),\n lineWidth: inputLineWidth('LineWidth', 2)\n});"
},
"MACD": {
"meta": {
"overlay": false,
"name": "Moving Average Convergence Divergence (MACD)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var plotSignalAndMacd = inputBoolean('Plot Signal and MACD', true);\nvar result = macd({\n values: inputSource('Source', 'close'),\n short_period: inputNumber('Fast Period', 10),\n long_period: inputNumber('Slow Period', 26),\n signal_period: inputNumber('Signal Period', 9)\n});\nvar {\n macd_histogram,\n macd_signal\n} = result;\nvar MACD = result.macd;\nvar histogramColor = macd_histogram.map((val, index) => {\n return val > 0 ? val > macd_histogram[index + 1] ? '#4A9D4A' : '#4AF94A' : val > macd_histogram[index + 1] ? '#F94A4A' : '#9D4A4A';\n});\nplot('Histogram', macd_histogram, {\n strokeColor: histogramColor,\n plotType: AvailablePlotType.Histogram,\n opacity: inputOpacity('Histogram Opacity', 1)\n});\nif (plotSignalAndMacd) {\n plot('MACD', MACD, {\n lineWidth: inputLineWidth('Macd Size', 2),\n strokeColor: inputColor('MACD Color', '#FA6B49'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n });\n plot('Signal', macd_signal, {\n lineWidth: inputLineWidth('Signal Size', 1),\n strokeColor: inputColor('Signal Color', '#569553'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n });\n}"
},
"NVI": {
"meta": {
"overlay": false,
"name": "Negative Volume Index (NVI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n close,\n volume\n} = this.data;\nplot('nvi', nvi({\n close,\n volume\n}), {\n strokeColor: inputColor('Color', 'green'),\n plotType: inputPlotType('Plot Type', AvailablePlotType.Histogram)\n});"
},
"OBV": {
"meta": {
"overlay": false,
"name": "Onbalance Volume (OBV)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n close,\n volume\n} = this.data;\nplot('obv', obv({\n close,\n volume\n}), {\n strokeColor: inputColor('Color', 'green'),\n plotType: inputPlotType('Plot Type', AvailablePlotType.Line)\n});"
},
"ORDERFLOW": {
"meta": {
"overlay": false,
"internal": true,
"type": "OrderFlow",
"name": "OrderFlow (ORDERFLOW)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var code = \"Code not available for Orderflow\";"
},
"PSAR": {
"meta": {
"overlay": true,
"name": "Parabolic SAR (PSAR)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var high = this.data.high;\nvar low = this.data.high;\nvar acceleration_factor_step = inputNumber('AF Step', 0.02);\nvar acceleration_factor_maximum = inputNumber('AF Max', 0.2);\nvar psar_values = psar({\n high,\n low,\n acceleration_factor_maximum,\n acceleration_factor_step\n});\nplot('psar_values', psar_values, {\n plotType: AvailablePlotType.Circle,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#f44336')\n});"
},
"PPO": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Percentage Price Oscillator (PPO)"
},
"code": "var values = inputSource('Source', \"close\");\nvar short_period = inputNumber('Short Period', 10);\nvar long_period = inputNumber('Long Period', 20);\nvar ppoResults = ppo({\n short_period,\n long_period,\n values\n});\nplot('ppo', ppoResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffcdd2')\n});"
},
"PVI": {
"meta": {
"overlay": false,
"name": "Positive Volume Index (PVI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n close,\n volume\n} = this.data;\nplot('pvi', pvi({\n close,\n volume\n}), {\n strokeColor: inputColor('Color', 'green'),\n plotType: inputPlotType('Plot Type', AvailablePlotType.Histogram)\n});"
},
"QSTICK": {
"meta": {
"overlay": false,
"name": "Qstick (QSTICK)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n open,\n close\n} = this.data;\nvar period = inputNumber('Period', 8);\nvar emaPeriod = inputNumber('EMA Period', 5);\nvar color = inputColor('Color', '#f44336');\nvar results = qstick({\n open,\n close,\n period\n});\nplot('qstick', results, {\n strokeColor: color,\n plotType: AvailablePlotType.Histogram,\n lineWidth: inputLineWidth('LineWidth', 2)\n});\nplot('ema', ema({\n values: results,\n period: emaPeriod\n}), {\n strokeColor: inputColor('EMA Color'),\n lineWidth: inputLineWidth('EMA Line Width', 1)\n});"
},
"ROCR": {
"meta": {
"overlay": false,
"name": "Rate of Change Ratio(ROCR)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('Source', 'close');\nvar period = inputNumber('Period', 14);\nvar rocrValues = rocr({\n values,\n period\n});\nplot(`rocr`, rocrValues, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('Color'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"ROC": {
"meta": {
"overlay": false,
"name": "Rate of Change (ROC)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('ROC Source', 'close');\nvar period = inputNumber('ROC Period', 14);\nvar rocValues = roc({\n values,\n period\n});\nplot(`roc`, rocValues, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('ROC Color'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"RSI": {
"meta": {
"overlay": false,
"name": "Relative Strength Index (RSI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
-20,
120
],
"useFixedRange": false
},
"code": "var values = inputSource('RSI Source', 'close');\nvar period = inputNumber('RSI Period', 14);\nvar overBought = inputNumber('Over Bought', 70);\nvar overSold = inputNumber('Over Sold', 30);\nvar bandOpacity = inputOpacity('Band Opacity', 0.1);\nvar bandColor = inputColor('Band Color', 'pink');\nhfill('Range', overSold, overBought, {\n opacity: bandOpacity,\n lineWidth: {\n value: 2\n },\n fillColor: bandColor,\n strokeBorder: inputBoolean('Stroke Band', true),\n strokeColor: bandColor\n});\nvar rsiValues = rsi({\n values,\n period\n});\nplot(`RSI`, rsiValues, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('RSI Color'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"SMA": {
"meta": {
"overlay": true,
"name": "Simple Moving Average (SMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar smaperiod = inputNumber('Period', 50);\nvar smacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar smavalues = sma({\n period: smaperiod,\n values: mainput\n});\nplot('SMA', smavalues, {\n strokeColor: smacolor,\n lineWidth: lineWidth\n});"
},
"STOCH": {
"meta": {
"overlay": false,
"name": "Stochastic Oscillator (STOCH)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "let {\n high,\n low,\n close\n} = this.data;\nlet kstrokeColor = inputColor('%k color', '#64B5F6');\nlet dstrokeColor = inputColor('%d color', '#9575CD');\nlet kslow = inputNumber('%K slow Period', 3);\nlet k = inputNumber('%K Period', 14);\nlet d = inputNumber('%d Period', 3);\nlet stochasticValues = stoch({\n high,\n low,\n close,\n \"%k_slowing_period\": kslow,\n \"%k_period\": k,\n \"%d_period\": d\n});\nplot('stoch %k', stochasticValues.stoch_k, {\n strokeColor: kstrokeColor\n});\nplot('stoch %d', stochasticValues.stoch_d, {\n strokeColor: dstrokeColor\n});\nvar overBought = inputNumber('Upper Band', 80);\nvar overSold = inputNumber('Lower Band', 20);\nvar bandColor = inputColor('Band Color', 'pink');\nhfill('Range', overSold, overBought, {\n opacity: 0.2,\n lineWidth: {\n value: 2\n },\n fillColor: bandColor,\n strokeBorder: inputBoolean('Stroke Band', true),\n strokeColor: bandColor\n});"
},
"STOCHRSI": {
"meta": {
"overlay": false,
"name": "Stochastic RSI (STOCHRSI)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
120
],
"useFixedRange": false
},
"code": "let kPeriod = inputNumber('K', 3);\nlet dPeriod = inputNumber('D', 3);\nlet values = inputSource('RSI Source', 'close');\nlet rsiPeriod = inputNumber('RSI Period', 14);\nlet stochasticPeriod = inputNumber('Stochastic Period', 14);\nvar inputStochasticRSI = {\n values,\n stochasticPeriod,\n kPeriod,\n dPeriod,\n rsiPeriod\n};\nvar result = stochasticrsi(inputStochasticRSI);\nvar rangestart = inputNumber('Range End', 80);\nvar rangeend = inputNumber('Range Start', 20);\nvar bandOpacity = inputOpacity('Band Opacity', 0.1);\nvar bandColor = inputColor('Band Color', 'pink');\nlet k = [];\nlet d = [];\nresult.forEach(data => {\n k.push(data.k);\n d.push(data.d);\n});\nplot('k', k, {\n strokeColor: inputColor('K Color', 'blue')\n});\nplot('d', d, {\n strokeColor: inputColor('D Color', 'orange')\n});\nhfill('Range', rangestart, rangeend, {\n opacity: bandOpacity,\n lineWidth: {\n value: 2\n },\n fillColor: bandColor,\n strokeBorder: inputBoolean('Stroke Band', true),\n strokeColor: bandColor\n});"
},
"TEMA": {
"meta": {
"overlay": true,
"name": "Triple EMA (TEMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var emaList = [8, 21, 200];\nvar mainput = inputSource('Source', 'close');\nvar defaultColors = ['rgb(76, 175, 80)', 'rgb(41, 98, 255)', 'rgb(255, 235, 59)'];\nvar defaultWidth = [1, 1.5, 2];\nemaList.forEach((period, index) => {\n let emaperiod = inputNumber('EMA Period ' + index, period);\n let emacolor = inputColor('EMA Color ' + period, defaultColors[index]);\n let lineWidth = inputLineWidth('Line Width ' + period, defaultWidth[index]);\n let smavalues = ema({\n period: emaperiod,\n values: mainput\n });\n plot('EMA ' + period, smavalues, {\n strokeColor: emacolor,\n lineWidth: lineWidth\n });\n});"
},
"TRIX": {
"meta": {
"overlay": false,
"name": "TRIX (TRIX)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
-20,
120
],
"useFixedRange": false
},
"code": "var values = inputSource('Source', 'close');\nvar period = inputNumber('Period', 18);\nvar results = trix({\n values,\n period\n});\nplot(`trix`, results, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('Trix Color', '#5C6BC0'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"TSF": {
"meta": {
"overlay": true,
"name": "Time Series Forecast (TSF)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar timeseriesperiod = inputNumber('Period', 50);\nvar timeseriescolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar timeseriesvalues = tsf({\n period: timeseriesperiod,\n values: mainput\n});\nplot('timeseries', timeseriesvalues, {\n strokeColor: timeseriescolor,\n lineWidth: lineWidth\n});"
},
"TRIMA": {
"meta": {
"overlay": true,
"name": "Triangular Moving Average (TRIMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar trimaperiod = inputNumber('Period', 50);\nvar trimacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar trimavalues = trima({\n period: trimaperiod,\n values: mainput\n});\nplot('trima', trimavalues, {\n strokeColor: trimacolor,\n lineWidth: lineWidth\n});"
},
"TR": {
"meta": {
"overlay": false,
"name": "True Range (TR)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var {\n high,\n low,\n close\n} = this.data;\nplot('tr', tr({\n high,\n low,\n close\n}), {\n strokeColor: inputColor('Color', '#42A5F5'),\n plotType: inputPlotType('Plot Type', AvailablePlotType.Line)\n});"
},
"ULTOSC": {
"meta": {
"overlay": false,
"name": "Ultimate Oscillator (ULTOSC)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "let {\n high,\n low,\n close\n} = this.data;\nlet color = inputColor('Color', '#5C6BC0');\nlet short_period = inputNumber('Short Period', 7);\nlet medium_period = inputNumber('Medium Period', 14);\nlet long_period = inputNumber('Long Period', 28);\nlet results = ultosc({\n high,\n low,\n close,\n short_period,\n long_period,\n medium_period\n});\nplot('utlosc', results, {\n strokeColor: color\n});"
},
"VWAP": {
"meta": {
"overlay": true,
"name": "Volume Weighted Average Price (VWAP)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "let lineWidth = inputLineWidth('Line Width', 2);\nlet strokeColor = inputColor('Color', '#e57373');\nlet {\n open,\n high,\n low,\n close,\n volume\n} = this.data;\nlet plotvalues = vwap({\n high,\n low,\n close,\n volume\n});\nplot('vwap', plotvalues, {\n lineWidth,\n strokeColor\n});"
},
"VHF": {
"meta": {
"overlay": false,
"name": "Vertical Horizontal Filter (VHF)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var values = inputSource('VHF Source', 'close');\nvar period = inputNumber('VHF Period', 28);\nvar vhfValues = vhf({\n values,\n period\n});\nplot(`vhf`, vhfValues, {\n lineWidth: {\n value: 1\n },\n strokeColor: inputColor('VHF Color', '#448AFF'),\n plotType: AvailablePlotType.Line,\n opacity: 1\n});"
},
"VIDYA": {
"meta": {
"overlay": true,
"name": "Variable Index Dynamic Average (VIDYA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar short_period = inputNumber('Short Period', 2);\nvar long_period = inputNumber('Long Period', 5);\nvar alpha = inputNumber('Alpha', 0.2);\nvar vidyacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar vidyavalues = vidya({\n short_period,\n long_period,\n alpha: alpha,\n values: mainput\n});\nplot('vidya', vidyavalues, {\n strokeColor: vidyacolor,\n lineWidth: lineWidth\n});"
},
"VOLUME": {
"meta": {
"overlay": true,
"name": "Volume (VOLUME)",
"useOwnScale": true,
"scaleRange": [
0,
30
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var showAverageVolume = inputBoolean('Show Average Volume', true);\nvar volumeAveragePeriod = inputNumber('Average Period', 20);\nvar upColor = inputColor('Up Color', HelperUtil.readCssVar(document.body, '--theme-up-color'));\nvar downColor = inputColor('Down Color', HelperUtil.readCssVar(document.body, '--theme-down-color'));\nlet {\n open,\n close,\n volume\n} = this.data;\nvar strokeColor = Array.from(volume).map((_, index) => {\n return open[index] > close[index] ? downColor : upColor;\n});\nplot('Volume ', volume, {\n plotType: AvailablePlotType.Histogram,\n strokeColor,\n opacity: 0.3\n});\nif (showAverageVolume) {\n plot('Volume SMA', sma({\n values: volume,\n period: volumeAveragePeriod\n }), {\n plotType: AvailablePlotType.Area,\n opacity: .1\n });\n}"
},
"VO": {
"meta": {
"overlay": false,
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false,
"name": "Volume Oscillator (VO)"
},
"code": "var {\n volume\n} = this.data;\nvar short_period = inputNumber('Short Period', 5);\nvar long_period = inputNumber('Long Period', 10);\nvar voscResults = vosc({\n short_period,\n long_period,\n volume\n});\nplot('vosc', voscResults, {\n plotType: AvailablePlotType.Line,\n lineWidth: inputLineWidth('Line Width', 2),\n strokeColor: inputColor('Color', '#ffcdd2')\n});"
},
"VP": {
"meta": {
"overlay": false,
"internal": true,
"type": "VolumeProfileIndicator",
"name": "Volume Profile (VP)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var code = \"Code not available for Orderflow\";"
},
"VWMA": {
"meta": {
"overlay": true,
"name": "Volume Weighted Moving Average (VWMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar vwmaperiod = inputNumber('Period', 50);\nvar vwmacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar vwmavalues = vwma({\n period: vwmaperiod,\n volume: this.data.volume,\n close: mainput\n});\nplot('vwma', vwmavalues, {\n strokeColor: vwmacolor,\n lineWidth: lineWidth\n});"
},
"WMA": {
"meta": {
"overlay": true,
"name": "Weighted Moving Average (WMA)",
"useOwnScale": false,
"scaleRange": [
0,
0
],
"fixedRange": [
0,
0
],
"useFixedRange": false
},
"code": "var mainput = inputSource('Source', 'close');\nvar wmaperiod = inputNumber('Period', 50);\nvar wmacolor = inputColor('Color', 'purple');\nvar lineWidth = inputLineWidth('Line Width', 2);\nvar wmavalues = wma({\n period: wmaperiod,\n values: mainput\n});\nplot('wma', wmavalues, {\n strokeColor: wmacolor,\n lineWidth: lineWidth\n});"
},
"WILDERS": {