//逐K模式 公式目标为条件成立时画趋势线 可是不显示画线 为什么
if hhh>0 and qwe>0 then
begin
syc:hhh-qwe+1;
DRAWLINE(BARPOS=syc ,h , BARPOS=hhh,h ,1 );
end
贴下完整代码。我本地用定值替换hhh,qwe 正常显示。
RUNMODE:0;n:=5;
hhh:if(ref(h,n)=hhv(h,2*n),BARPOS-n,0);
qwe:SUMBARS( hhh>0,2 );
if hhh>0 and qwe>0 then
begin
syc:hhh-qwe+1;
DRAWLINE(BARPOS=syc ,h , BARPOS=hhh,h ,1 );
end