作者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/m.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