由买买提看人间百态

topics

全部话题 - 话题: fastlength
(共0页)

发帖数: 1
1
【 以下文字转载自 BetterStock 俱乐部 】
发信人: drugbull (药牛), 信区: BetterStock
标 题: VolumeWeighted-MACD的公式,编程,及应用,代替常规MACD
发信站: BBS 未名空间站 (Sun Jun 17 18:36:30 2018, 美东)
declare lower;
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
def fastAvg = sum(data = (close * volume), length = fastLength)/sum(data = v
olume, length = fastLength);
def slowAvg = sum(data = (close * volume), length = slowLength)/sum(data = v
olume, length = slowLength);
plot Value = fastAvg - slowAvg;
plot Avg = ExpAver... 阅读全帖
(共0页)