[問題] MC累積量設定 幫我看一下拜託

看板Trading (金融交易)作者 (MrWUYUAN)時間9年前 (2016/04/25 21:34), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/2 (看更多)
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
我覺得妳有些地方寫的怪怪的,第一個if...begin後面沒有En
04/25 22:32, 1F

04/25 22:33, , 2F
d。然後你是想問累積買量跟賣量吧?
04/25 22:33, 2F

04/26 10:06, , 3F
歸零那邊一定要先拿掉
04/26 10:06, 3F
文章代碼(AID): #1N7XpK4K (Trading)
文章代碼(AID): #1N7XpK4K (Trading)