以下是通达信低吸源码副图(无源码的请下载附件导入)
均价:=SUM(AMOUNT,0)/SUM(VOL,0)/100;
LL:=C<REF(C,1) AND C/均价<(1-0.008);
LL1:=CROSS(SUM(LL,0),0.5);
BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);
Y1:=BARSLAST(BB1);
底1:=REF(C,Y1+1);
LL2:=CROSS(SUM(LL AND C<底1*0.99,0),0.5);
BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);
低吸:BB1 OR BB2 ;
|