MC累積量設定 幫我看一下拜託 - 財經
By Genevieve
at 2016-04-25T22:49
at 2016-04-25T22:49
Table of Contents
※ 引述《xxyyzzxyz627 (MrWUYUAN)》之銘言:
: 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;
>>這邊缺End;
: if TPreTime_s<>TTime_s then begin
: TUVol=0;
: TDVol=0;
: end;
>>我沒看錯的話,你把這段歸零拿掉就好了
如果你是要做跨日從新計算,就把條件句改成:
if date<>date[1] then begin
這樣就好了
: 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);
: 上面的文法 只會出現當根累積量 請問要刪掉那些 才會變持續累積量呢 謝謝
--
: 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;
>>這邊缺End;
: if TPreTime_s<>TTime_s then begin
: TUVol=0;
: TDVol=0;
: end;
>>我沒看錯的話,你把這段歸零拿掉就好了
如果你是要做跨日從新計算,就把條件句改成:
if date<>date[1] then begin
這樣就好了
: 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);
: 上面的文法 只會出現當根累積量 請問要刪掉那些 才會變持續累積量呢 謝謝
--
Tags:
財經
All Comments
By Eartha
at 2016-04-30T01:37
at 2016-04-30T01:37
By Kyle
at 2016-05-04T00:43
at 2016-05-04T00:43
By Anonymous
at 2016-05-08T17:49
at 2016-05-08T17:49
By Una
at 2016-05-10T23:54
at 2016-05-10T23:54
By Isabella
at 2016-05-11T21:53
at 2016-05-11T21:53
By Skylar DavisLinda
at 2016-05-16T17:33
at 2016-05-16T17:33
By Sandy
at 2016-05-21T11:53
at 2016-05-21T11:53
Related Posts
MC累積量設定 幫我看一下拜託
By Victoria
at 2016-04-25T21:34
at 2016-04-25T21:34
有點無聊的交易檢討報告0425
By Elma
at 2016-04-25T15:10
at 2016-04-25T15:10
2016/04/24~04/30
By Freda
at 2016-04-25T08:20
at 2016-04-25T08:20
2016/04/25當週經濟數據小提醒
By Gilbert
at 2016-04-23T12:29
at 2016-04-23T12:29
有點弱的交易檢討報告0422
By Zenobia
at 2016-04-22T15:21
at 2016-04-22T15:21