[問題] MC累積量設定 幫我看一下拜託
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://www.ptt.cc/bbs/Trading/M.1461591252.A.114.html
推
04/25 22:32, , 1F
04/25 22:32, 1F
→
04/25 22:33, , 2F
04/25 22:33, 2F
→
04/26 10:06, , 3F
04/26 10:06, 3F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):