以下是通达信20日箱体K线主图指标源码(无源码的请下载附件导入)
HH:=FINDHIGH(H,0,20,1);
LL:=FINDLOW(L,0,20,1);
AC:=REFX(C,9);AO:=REF(O,10);AH:=REFX(HH,9);AL:=REFX(LL,9);
Q1:=MOD(BARSCOUNT(C)-CONST(MOD(BARSCOUNT(C),20)),20)+1;
STICKLINE(AC>=AO AND Q1=12,AC,AO,82,0),COLORLIRED;
STICKLINE(AC>=AO AND Q1=12,AH,AL,1,0),COLORLIRED;
STICKLINE(AC<AO AND Q1=12,AC,AO,82,0),COLORLIGREEN;
STICKLINE(AC<AO AND Q1=12,AH,AL,1,0),COLORLIGREEN;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
822255973.jpg
|