VARIABLE:多价=0,多盈=0;
生命:=wma(c,200);
上:=c>生命;
下:=生命<c;
//n上:=barslast(cross(c,生命));
a1:=ref(c,1);
a2:=ref(多盈,barslast(下));
if cross(c,生命) then 多价:=a1;
if 上 then begin
多盈:=c-多价;
end;
pp:多盈;
PARTLINE(下,pp),LINETHICK4,colorgreen;
PARTLINE(上,pp),LINETHICK4,colorred;
怎么把 红色线段部分不停的叠加上去,就像ASSET一样
请版主帮忙
谢谢
PARTLINE(上,sum(pp,0)),LINETHICK4,colorred;
红色累加的话,把最后一句改成这样