【通达信免费源码】趋势操盘指标 副图 波段 趋势 操盘控盘
VAR1:=180;
VAR2:=BARSLAST(CURRBARSCOUNT=VAR1);
VAR3:=CONST(IF(ISLASTBAR=1,HHV(HIGH,VAR2),0));
VAR4:=CONST(IF(ISLASTBAR=1,LLV(LOW,VAR2),0));
VAR5:=VAR3-VAR4;
VAR6:=IF(CURRBARSCOUNT<=VAR1/2,VAR3,DRAWNULL);
VAR7:=IF(CURRBARSCOUNT<=VAR1,VAR3,DRAWNULL);
VAR8:=IF(CURRBARSCOUNT<=VAR1,VAR4,DRAWNULL);
VAR9:=IF(CURRBARSCOUNT<=VAR1,VAR4+VAR5/2,DRAWNULL);
VAR10:=IF(CURRBARSCOUNT<=VAR1/2,VAR4,DRAWNULL);
VAR11:=IF(CURRBARSCOUNT<=VAR1/2,VAR3,DRAWNULL);
VAR12:=IF(CURRBARSCOUNT<=VAR1/2,VAR4+VAR5*0.191,DRAWNULL);
VAR13:=IF(CURRBARSCOUNT<=VAR1/2,VAR4+VAR5*0.382,DRAWNULL);
VAR14:=IF(CURRBARSCOUNT<=VAR1/2,VAR4+VAR5/2,DRAWNULL);
VAR15:=IF(CURRBARSCOUNT<=VAR1/2,VAR4+VAR5*0.618,DRAWNULL);
VAR16:=IF(CURRBARSCOUNT<=VAR1/2,VAR4+VAR5*0.809,DRAWNULL);
VAR17:=IF(CURRBARSCOUNT<=VAR1/2,(CLOSE/LLV(LOW,VAR2)-1)*100,DRAWNULL);
VAR18:=BARSLAST(LOW=VAR4);
VAR19:=IF(CURRBARSCOUNT<=VAR1/2,CONST(IF(ISLASTBAR=1,HHV(HIGH,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL);
VAR20:=IF(CURRBARSCOUNT<=VAR1/2,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL);
DRAWBAND(VAR12,RGB(38,38,38),VAR10,RGB(0,0,0));
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.09,71),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.3,72),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.45,73),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.55,74),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR4+VAR5/3,75),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR4+VAR5/10,76),COLORWHITE;
高压:REFDATE(VAR7,DATE),DOTLINE,COLORCYAN;
压力线:REFDATE(VAR16,DATE),DOTLINE,COLOR008000;
警示线:REFDATE(VAR15,DATE),DOTLINE,COLORYELLOW;
突破线:REFDATE(VAR14,DATE),DOTLINE,COLORGREEN;
强势线:REFDATE(VAR13,DATE),DOTLINE,COLORRED;
支撑线:REFDATE(VAR12,DATE),DOTLINE,COLORWHITE;
低线:REFDATE(VAR10,DATE),DOTLINE,COLORYELLOW;
上升均斜:EMA(SLOPE(CLOSE,15)*20+CLOSE,30),COLORBLUE;
VAR21:=CONST(LLVBARS(LOW,25));
VAR22:=CONST(REF(HIGH,VAR21));
VAR23:=CONST(CURRBARSCOUNT);
VAR24:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR21 AND HIGH>VAR22));
VAR25:=CONST(REF(HIGH,VAR24));
VAR26:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR24 AND HIGH>VAR25));
VAR27:=CONST(REF(HIGH,VAR26));
强牛:DRAWLINE(CURRBARSCOUNT=VAR26+1,VAR27,ISLASTBAR,VAR27,1),NODRAW,COLORRED,LINETHICK2;
DRAWTEXT(ISLASTBAR,VAR27,81),COLORRED;
VAR28:=BARSLAST(LLVBARS(LOW,25)=0);
VAR29:=CONST(REF(REF(VAR28,1),VAR28)+VAR28+1);
VAR30:=CONST(REF(HIGH,VAR29));
VAR31:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR29 AND HIGH>VAR30));
VAR32:=CONST(REF(HIGH,VAR31));
VAR33:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR31 AND HIGH>VAR32));
VAR34:=CONST(REF(HIGH,VAR33));
牛底:DRAWLINE(CURRBARSCOUNT=VAR33+1,VAR34,ISLASTBAR,VAR34,1),NODRAW,COLORRED,LINETHICK2;
DRAWTEXT(ISLASTBAR,VAR34,82),COLORRED;
VAR35:=20;
VAR36:=CONST(LLVBARS(LOW,VAR35));
VAR37:=CONST(REF(HIGH,VAR36));
VAR38:=CONST(CURRBARSCOUNT);
VAR39:=CONST(BARSLAST(CURRBARSCOUNT>VAR38+VAR36 AND HIGH>VAR37));
VAR40:=CONST(REF(HIGH,VAR39));
VAR41:=CONST(BARSLAST(CURRBARSCOUNT>VAR38+VAR39 AND HIGH>VAR40));
VAR42:=CONST(REF(HIGH,VAR41));
VAR43:=DRAWLINE(CURRBARSCOUNT=VAR41+1,VAR42,ISLASTBAR,VAR42,1);
VAR44:=DRAWTEXT(ISLASTBAR,VAR42,83);
VAR45:=MA(CLOSE,10);
VAR46:=MA(CLOSE,54);
VAR47:=(CLOSE-VAR46)/VAR46<0.1;
VAR48:=(CLOSE-VAR45)/VAR45<0.3;
VAR49:=(VAR47=1 AND VAR48=1)*0.2;
VAR50:=(VAR49=0 AND REF(VAR49,1)=0.2 AND REF(COUNT(VAR49=0.2,10)=10,1)=1)*1;
QWE:DRAWTEXT(VAR50,OPEN,84),COLORWHITE;
平台:REF(OPEN,BARSLAST(VAR50)),NODRAW,COLORRED;
VAR51:=MA(CLOSE,5);
VAR52:=MA(CLOSE,10);
月21:MA(CLOSE,21),COLORYELLOW;
年207:MA(CLOSE,207),COLORRED,LINETHICK2;
VAR53:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR54:=REF(VAR53,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR55:=REF(VAR54,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR56:=REF(VAR55,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR57:=REF(VAR56,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR58:=REF(VAR57,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR59:=REF(VAR58,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR60:=REF(VAR59,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR61:=REF(VAR60,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR62:=REF(VAR61,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR63:=REF(VAR62,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR64:=REF(VAR63,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(VAR53 OR VAR54 OR VAR55 OR VAR56 OR VAR57 OR VAR58 OR VAR59 OR VAR60 OR VAR61 OR VAR62 OR VAR63 OR VAR64,CLOSE,REF(CLOSE,1),3,1),COLORRED;
VAR65:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR66:=REF(VAR65,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR67:=REF(VAR66,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR68:=REF(VAR67,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR69:=REF(VAR68,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR70:=REF(VAR69,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR71:=REF(VAR70,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR72:=REF(VAR71,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR73:=REF(VAR72,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR74:=REF(VAR73,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR75:=REF(VAR74,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR76:=REF(VAR75,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VAR65 OR VAR66 OR VAR67 OR VAR68 OR VAR69 OR VAR70 OR VAR71 OR VAR72 OR VAR73 OR VAR74 OR VAR75 OR VAR76,CLOSE,REF(CLOSE,1),3,0),COLORGREEN;
VAR77:=REF(VAR65 OR VAR66 OR VAR67 OR VAR68 OR VAR69 OR VAR70 OR VAR71 OR VAR72 OR VAR73 OR VAR74 OR VAR75 OR VAR76,1) AND VAR53;
STICKLINE(VAR77,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORGREEN;
VAR78:=REF(VAR53 OR VAR54 OR VAR55 OR VAR56 OR VAR57 OR VAR58 OR VAR59 OR VAR60 OR VAR61 OR VAR62 OR VAR63 OR VAR64,1) AND VAR65;
STICKLINE(VAR78,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORRED;
VAR79:=IF(CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND LOW<REF(LOW,1) AND LOW>REF(LOW,2),REF(CLOSE,2),IF(CLOSE>REF(CLOSE,1),CLOSE,REF(CLOSE,1)));
宝一:IF(VAR78,REF(VAR79,1),VAR79),NODRAW;
VAR80:=IF(OPEN>REF(OPEN,1) AND REF(OPEN,1)>REF(OPEN,2) AND HIGH>REF(HIGH,1) AND HIGH<REF(HIGH,2),REF(OPEN,2),IF(CLOSE<REF(CLOSE,1),CLOSE,REF(CLOSE,1)));
VAR81:=IF(VAR77,REF(VAR80,1),VAR80);
VAR82:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
VAR83:=DRAWTEXT(VAR82 AND CLOSE>REF(OPEN,2),LOW*0.98,275);
机构:(L2_AMO(0,0)-L2_AMO(0,1))/10000,NODRAW,COLORBLUE;
大户:(L2_AMO(1,0)-L2_AMO(1,1))/10000,NODRAW,COLORYELLOW;
主资金:(L2_AMO(0,0)-L2_AMO(0,1))/10000+(L2_AMO(1,0)-L2_AMO(1,1))/10000,NODRAW,COLORRED;
机大进:STICKLINE(机构>0 AND 大户>0,LOW-0.1,(LOW-0.4+LOW-0.4)/2,3.2,0),COLORMAGENTA;
大户进:STICKLINE(大户>0 AND 机构<0,LOW-0.1,(LOW-0.4+LOW-0.4)/2,3.2,0),COLORYELLOW;
机进:STICKLINE(机构>0 AND 大户<0,LOW-0.1,(LOW-0.4+LOW-0.4)/2,3.2,0),COLORBLUE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!