typescript thinkorswim WaveTrend Oscillator

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript thinkorswim WaveTrend Oscillator相关的知识,希望对你有一定的参考价值。

# Ben Fasoli
# Last updated: 12/21/2016
# 
# Ported from LazyBear's Pine script port
#   https://www.tradingview.com/u/LazyBear/
#
# For an introduction, watch
#   https://www.youtube.com/watch?v=7vhIsk51_Ro
#   https://www.youtube.com/watch?v=MqJ1czF220M

def ap = hlc3;
def esa = ExpAverage(ap, 10);
def d = ExpAverage(AbsValue(ap - esa), 10);
def ci = (ap - esa) / (0.015 * d);
def tci = ExpAverage(ci, 21);

def wt1 = Round(tci, 1);
def wt2 = Average(wt1, 4);

plot WT_Fast = wt1;
plot WT_Slow = wt2;
plot WT_Diff = wt1 - wt2;
plot Zero = 0;
plot OS1 = -60;
plot OS2 = -53;
plot OB1 = 60;
plot OB2 = 53;

WT_Fast.SetDefaultColor(Color.CYAN);
WT_Slow.SetDefaultColor(Color.RED);
WT_Diff.SetDefaultColor(Color.ORANGE);
Zero.SetDefaultColor(Color.GRAY);
OS1.SetDefaultColor(Color.GREEN);
OS2.SetDefaultColor(Color.GREEN);
OB1.SetDefaultColor(Color.RED);
OB2.SetDefaultColor(Color.RED);

以上是关于typescript thinkorswim WaveTrend Oscillator的主要内容,如果未能解决你的问题,请参考以下文章

华三wa5320如何设置上网

花式WA

linux wa%过高,iostat查看io状况

linux wa%过高,iostat查看io状况

javascript 移动WA.js的业务规则

PHP WA1