指出上面的图不对的地方
突发奇想的一个思路,在序列模式下使用,楼主先验证下对不对
ll:hhvbars(h,10);
if ll=10 then hh:=hhv(h,10-1);
if ll=0 then hh:=ref(hhv(h,10-1),1);
if ll<10 and ll>0 then hh:=max(ref(hhv(h,10-ll),ll),hhv(h,10-(ll-1)));
hh1:hh;
不能络筒的归纳,我用枚举法写出来的10周期次高点,看看有没有高人能简化
ll:=hhvbars(h,10);
hhh:hhv(h,10);
h1:=hhv(h,10-1);
h2:=ref(hhv(h,10-1),1);
h_1:=max(ref(hhv(h,8),ll+1),hhv(h,ll));
h_2:=max(ref(hhv(h,7),ll+1),hhv(h,ll));
h_3:=max(ref(hhv(h,6),ll+1),hhv(h,ll));
h_4:=max(ref(hhv(h,5),ll+1),hhv(h,ll));
h_5:=max(ref(hhv(h,4),ll+1),hhv(h,ll));
h_6:=max(ref(hhv(h,3),ll+1),hhv(h,ll));
h_7:=max(ref(hhv(h,2),ll+1),hhv(h,ll));
h_8:=max(ref(hhv(h,1),ll+1),hhv(h,ll));
if ll=0 then hh:=h2;
if ll=1 then hh:=h_1;
if ll=2 then hh:=h_2;
if ll=3 then hh:=h_3;
if ll=4 then hh:=h_4;
if ll=5 then hh:=h_5;
if ll=6 then hh:=h_6;
if ll=7 then hh:=h_7;
if ll=8 then hh:=h_8;
if ll=9 then hh:=h1;
hh1:hh