| | | | 以下是通达信FXT主图指标
通达信FXT主图指标
源码
N:=6;Q:=3;
多头线:(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW-LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)),COLOR0099FF;
空头线:LLV(多头线,8),COLORGREEN;
C-C*0.2,COLORWHITE;
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLOREA91B5;
支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLOR3791B5;
{STICKLINE(VAR2,HIGH,HIGH*1.01,5,0),COLOR00E40E;}
DRAWTEXT(VAR2,HIGH*1.01,'跌'),COLOR00E40E;
{STICKLINE(VAR4,LOW,LOW*0.99,5,0),COLOR00E40E;}
DRAWTEXT(VAR4,LOW*0.99,'停'),COLOR00E40E;
VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));
{POLYLINE(VAR5,VAR5),COLORFF00FF;}
VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW
VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGHREF(LOW,1)
AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)
VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW
VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGHREF(LOW,1)
AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)
{坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.01,5,0),COLOR0000FF;}
DRAWTEXT(CROSS(VAR6,0.9),HIGH*1.01,'坚定'),COLORMAGENTA;
{STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.99,5,0),COLOR0000FF;}
DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'停定'),COLOR0000FF;
{犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.01,5,0),COLOR00E5E9;}
DRAWTEXT(CROSS(VAR7,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;
{STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.99,5,0),COLOR00E5E9;}
DRAWTEXT(CROSS(VARA,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;
{等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.01,5,0),COLORFF4100;}
DRAWTEXT(CROSS(VAR8,0.9),HIGH*1.01,'等待'),COLORFF4100;
{STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.99,5,0),COLORFF4100;}
DRAWTEXT(CROSS(VARB,0.9),HIGH*1.01,'等待'),COLORFF4100;
现价:CLOSE,POINTDOT,COLORRED;
| | | | |
|