喜笑顏開(kāi):
C1:=C; C2:=REF(C,1); C3:=REF(C,2); STICKLINE(C1>C2 ANDC2>C3,C1,C2,3,0),COLORRED; STICKLINE(C1<C2 ANDC2<C3,C1,C2,3,0),COLORGREEN; STICKLINE(C1>C2 AND C2<C3 ANDC1>C3,C1,C3,3,0),COLORRED; STICKLINE(C1>C2 AND C2<C3 ANDC1>C3,C3,C2,3,0),COLORGREEN; STICKLINE(C1<C2 AND C2>C3 ANDC1<C3,C2,C3,3,0),COLORRED; STICKLINE(C1<C2 AND C2>C3 ANDC1<C3,C1,C3,3,0),COLORGREEN; STICKLINE(C1<C2 AND C2>C3 ANDC1>=C3,C1,C2,3,0),COLORRED; STICKLINE(C1>C2 AND C2<C3 ANDC1<=C3,C1,C2,3,0),COLORGREEN; STICKLINE(C1=C2 ANDC1<C3,C1*1.002,C2,2,0),COLORGREEN; STICKLINE(C2=C3 ANDC1>C2,C1,C3,3,0),COLORRED; STICKLINE(C1=C2 ANDC1>C3,C1*1.002,C2,3,0),COLORRED; STICKLINE(C2=C3 ANDC1<C2,C1,C3,3,0),COLORGREEN; {MA5:MA(CLOSE,5),COLORYELLOW;}BOLL:"BOLL-M".BOLL; UB:"BOLL-M".UB; LB:"BOLL-M".LB; 注意:因?yàn)?#8220;BOLL-M"是通達(dá)信系統(tǒng)指標(biāo),,最后三句是引用該指標(biāo)的數(shù)據(jù),。 好山好水: MID : MA(CLOSE,20); UPPER: MID + 2*STD(CLOSE,20); LOWER: MID -2*STD(CLOSE,20);STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),3,1),COLORRED;STICKLINE(CLOSE<REF(C,1),CLOSE,REF(C,1),3,0),COLORGREEN;STICKLINE(REF(C,1)>=REF(C,2) ANDCLOSE<REF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),3,1),COLORRED;STICKLINE(REF(C,1)<REF(C,2) ANDCLOSE>=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),3,0),COLORGREEN; 龍騰虎躍: BOLL:MA(CLOSE,N); UPPER:BOLL+2*STD(CLOSE,N); LOWER:BOLL-2*STD(CLOSE,N);VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1)AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) ANDCLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1)AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1)AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) ANDCLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1)AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1)AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) ANDCLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(VAR1 ORVAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA ORVARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;{紅1}VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1)AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1)AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1)AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1)AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1)AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(VARD ORVARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 ORVAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,1),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,2),COLOR00FF00{98FD};STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10FFFF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR93FF22;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR24FF22;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;{IF(PMA=REF(PMA,1),PMA,DRAWNULL),COLORRED;}IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2; 附件
|
|