作者xxyyzzxyz627 (MrWUYUAN)
看板Trading
标题[问题] MC累积量设定 帮我看一下拜托
时间Mon Apr 25 21:34:10 2016
inputs:VL(20) ;
vars : intrabarpersist TUpVol(0),intrabarpersist TDVol(0),
intrabarpersist TUpTicks(0),intrabarpersist TDownTicks(0),
intrabarpersist TPreTime_s(0),intrabarpersist TTime_s(0), intrabarpersist
TTimes_s(0), intrabarpersist TUVol(0),
TColor(0);
if LastBarOnChart_s then begin
TPreTime_s=TTime_s;
TTimes_s=BarNumber;
if TPreTime_s<>TTime_s then begin
TUVol=0;
TDVol=0;
end;
if UpTicks - TUpTicks >= VL then TUVol=TUVol+UpTicks-TUpTicks;
if DownTicks -TDownTicks >= VL then TDVol=TDVol+DownTicks-TDownTicks;
if TUVol > TDVol then TColor = Red else TColor = green ;
TUpTicks=UpTicks;
TDownTicks = DownTicks;
end;
Plot1(TUVol-TDVol,"",TColor);
上面的文法 只会出现当根累积量 请问要删掉那些 才会变持续累积量呢 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.227.196.98
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Trading/M.1461591252.A.114.html
1F:推 sonone: 我觉得你有些地方写的怪怪的,第一个if...begin後面没有En 04/25 22:32
2F:→ sonone: d。然後你是想问累积买量跟卖量吧? 04/25 22:33
3F:→ are2: 归零那边一定要先拿掉 04/26 10:06