{輪回線B} {請設(shè)置計算參數(shù): IS1T1: 1 (0.00--1.00) IS2T1: 1 (0.00--1.00) IS1T2: 1 (0.00--1.00) ISPX: 0 (0.00--1.00) ISGOLD: 0 (0.00--1.00) ISVOL: 0 (0.00--1.00) DFIX: 0 (0.00--21.00)} VAR0 := IF(DFIX = 0,IF(PERIOD = 0,13,IF((PERIOD = 1) OR (PERIOD = 2),7,IF(PERIOD = 3,5,IF(PERIOD = 5,3,1)))),DFIX); VAR1 := EMA(C,12) - EMA(C,26); VAR2 := EMA(VAR1,9); VAR3 := BARSLAST(LONGCROSS(VAR2,0,VAR0)); VAR4 := BARSLAST(LONGCROSS(0,VAR2,VAR0)); VAR5 := BARSLAST((LOW = LLV(LOW,VAR4)) AND (VAR2 < 0)); VAR6 := BARSLAST(HIGH = HHV(HIGH,VAR5)); VAR7 := LONGCROSS(0,VAR2,VAR0); VAR8 := BACKSET(VAR7,VAR6 + 1); VAR9 := VAR8 > REF(VAR8,1); VAR10 := BARSLAST((HIGH = HHV(HIGH,VAR3)) AND (VAR2 > 0)); VAR11 := BARSLAST(LOW = LLV(LOW,VAR10)); VAR12 := LONGCROSS(VAR2,0,VAR0); VAR13 := BACKSET(VAR12,VAR11 + 1); VAR14 := VAR13 > REF(VAR13,1); VAR15 := BARSLAST(VAR9); VAR16 := BARSLAST(VAR14); 距離 : IF(VAR9,VAR16,IF(VAR14,VAR15,DRAWNULL)),NODRAW; 力度 : IF(VAR9,(HHV(HIGH,VAR15 + 1)) - (LLV(LOW,VAR16 + 1)),IF(VAR14,(HHV(HIGH,VAR15 + 1)) - (LLV(LOW,VAR16 + 1)),DRAWNULL)),NODRAW; 均力 : IF(VAR9,((HHV(HIGH,VAR15 + 1)) - (LLV(LOW,VAR16 + 1))) / VAR16,IF(VAR14,((HHV(HIGH,VAR15 + 1)) - (LLV(LOW,VAR16 + 1))) / VAR15,DRAWNULL)),NODRAW; VAR17 := VAR14 OR VAR9; VAR18 := BARSLAST(VAR17); VAR19 := ((REF(VAR18,VAR18 + 1)) + VAR18) + 1; VAR20 := REF(VAR19,VAR19) + VAR19; VAR21 := REF(VAR19,VAR20) + VAR20; 糾偏率 : IF(VAR17,力度 / REF(力度,VAR19),DRAWNULL),NODRAW; 盤背率 : IF(VAR17,力度 / REF(力度,VAR20),DRAWNULL),NODRAW; MA5 : MA(C,5),NODRAW; MA10 : MA(C,10),NODRAW; MA21 : MA(C,21),NODRAW; MA60 : MA(C,60),NODRAW; MA120 : MA(C,120),NODRAW; MA250 : MA(C,250),NODRAW; VAR22 := BACKSET(VAR9 OR VAR14,MAX(VAR15,VAR16)); VAR23 := IF(VAR15 > VAR16,REF(LOW,VAR16) + (REF(均力,VAR16) * VAR16),REF(HIGH,VAR15) - (REF(均力,VAR15) * VAR15)); VAR24 := IF(VAR15 > VAR16,REF(LOW,VAR16) + ((REF(均力,VAR16) * 2) * VAR16),REF(HIGH,VAR15) - ((REF(均力,VAR15) * 2) * VAR15)); VAR25 := IF(VAR15 > VAR16,REF(LOW,VAR16) + ((REF(均力,VAR16) / 2) * VAR16),REF(HIGH,VAR15) - ((REF(均力,VAR15) / 2) * VAR15)); 角1:1:DRAWLINE((IS1T1 AND (VAR14 OR VAR9)) AND VAR22,IF(VAR15 > VAR16,LOW,HIGH),ISLASTBAR,VAR23,0),DOTLINE,COLORWHITE; 角2:1:DRAWLINE((IS2T1 AND (VAR14 OR VAR9)) AND VAR22,IF(VAR15 > VAR16,LOW,HIGH),ISLASTBAR,VAR24,0),DOTLINE,COLORC0C000; WWWX1 := DRAWLINE((IS2T1 AND (VAR14 OR VAR9)) AND VAR22,IF(VAR15 > VAR16,LOW,HIGH),ISLASTBAR,VAR24,0),DOTLINE,COLORC0C000; DRAWLINE((IS1T2 AND (VAR14 OR VAR9)) AND VAR22,IF(VAR15 > VAR16,LOW,HIGH),ISLASTBAR,VAR25,0),DOTLINE,COLORLIGREEN; WWWX2 := DRAWLINE((IS1T2 AND (VAR14 OR VAR9)) AND VAR22,IF(VAR15 > VAR16,LOW,HIGH),ISLASTBAR,VAR25,0),DOTLINE,COLORLIGREEN; DRAWLINE(VAR14,LOW,VAR9,HIGH,0),COLORMAGENTA; WWWX3 := DRAWLINE(VAR14,LOW,VAR9,HIGH,0),COLORMAGENTA; DRAWLINE(VAR9,HIGH,VAR14,LOW,0),COLORGREEN; VAR26 := BACKSET(ISLASTBAR,BARSLAST(VAR17) + 1); VAR27 := VAR26 > REF(VAR26,1); VAR28 := BARSLAST(VAR27); VAR29 := IF(VAR14,(REF(HIGH,VAR19) - LOW) / VAR19,0); VAR30 := IF(VAR14,(REF(HIGH,VAR19) - REF(LOW,VAR20)) / (VAR20 - VAR19),0); VAR31 := IF(VAR14,(REF(HIGH,VAR21) - REF(LOW,VAR20)) / (VAR21 - VAR20),0); VAR32 := IF(VAR9,(HIGH - REF(LOW,VAR19)) / VAR19,0); VAR33 := IF(VAR9,(REF(HIGH,VAR20) - REF(LOW,VAR19)) / (VAR20 - VAR19),0); VAR34 := IF(VAR9,(REF(HIGH,VAR20) - REF(LOW,VAR21)) / (VAR21 - VAR20),0); VAR35 := BACKSET(ISLASTBAR,BARSLAST(VAR14) + 1); VAR36 := VAR35 > REF(VAR35,1); VAR37 := IF(REF(VAR36,1),1,0); VAR38 := BARSLAST(VAR36); VAR39 := VAR38 - VAR28; VAR40 := BACKSET(ISLASTBAR,BARSLAST(VAR9) + 1); VAR41 := VAR40 > REF(VAR40,1); VAR42 := IF(REF(VAR41,1),1,0); VAR43 := BARSLAST(VAR41); DRAWLINE((ISPX AND VAR36) AND (VAR38 = VAR28),LOW,VAR37,REF(LOW,1) + REF(VAR30,1),1),COLORYELLOW; DRAWLINE((ISPX AND VAR41) AND (VAR43 = VAR28),HIGH,VAR42,REF(HIGH,1) - REF(VAR33,1),1),COLORYELLOW; VAR44 := IF(CURRBARSCOUNT = 1,(((VOL * 240) / FROMOPEN) / REF(VOL,1)) - 1,VOL / REF(VOL,1)); VAR45 := IF(C >= OPEN,0,VOL); VAR46 := (((((((VAR44 >= 1.9) AND (VAR44 <= 3)) AND (REFX(C,1) > OPEN)) AND (REFX(C,2) > OPEN)) AND (REFX(C,3) > OPEN)) AND ((REFX(VAR45,1) / VOL) < 1)) AND ((REFX(VAR45,2) / VOL) < 1)) AND ((REFX(VAR45,3) / VOL) < 1); VAR47 := MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)); VAR48 := IF(VAR47 >= C,OPEN,VAR47); STICKLINE((ISVOL AND VAR46) AND (C > OPEN),OPEN,C,2,0),COLORYELLOW; DRAWLINE((ISVOL AND VAR46) AND (C > OPEN),VAR47,REF(VAR46 AND (C > OPEN),15),REF(VAR47,15),0),DOTLINE,COLORYELLOW; DRAWNUMBER((ISVOL AND VAR46) AND (C > OPEN),VAR47,VAR47),COLORYELLOW; VAR49 := BACKSET(ISLASTBAR,(BARSLAST(VAR14 OR VAR9)) + 1); VAR50 := VAR49 > REF(VAR49,1); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW,REF(VAR14,7),REF(LOW,7),0),DOTLINE,COLORLIGRAY; DRAWNUMBER((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.191),LOW + ((REF(HIGH,VAR19) - LOW) * 0.191)); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.191),REF(VAR14,7),REF(LOW + ((REF(HIGH,VAR19) - LOW) * 0.191),7),0),DOTLINE,COLORGRAY; DRAWNUMBER((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.382),LOW + ((REF(HIGH,VAR19) - LOW) * 0.382)); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.382),REF(VAR14,7),REF(LOW + ((REF(HIGH,VAR19) - LOW) * 0.382),7),0),DOTLINE,COLORC0C000; DRAWNUMBER((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.5),LOW + ((REF(HIGH,VAR19) - LOW) * 0.5)); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.5),REF(VAR14,7),REF(LOW + ((REF(HIGH,VAR19) - LOW) * 0.5),7),0),DOTLINE,COLORLIGREEN; DRAWNUMBER((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.618),LOW + ((REF(HIGH,VAR19) - LOW) * 0.618)); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.618),REF(VAR14,7),REF(LOW + ((REF(HIGH,VAR19) - LOW) * 0.618),7),0),DOTLINE,COLOR808000; DRAWNUMBER((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.809),LOW + ((REF(HIGH,VAR19) - LOW) * 0.809)); DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + ((REF(HIGH,VAR19) - LOW) * 0.809),REF(VAR14,7),REF(LOW + ((REF(HIGH,VAR19) - LOW) * 0.809),7),0),DOTLINE,COLOR8080FF; DRAWLINE((ISGOLD AND VAR50) AND VAR14,LOW + (REF(HIGH,VAR19) - LOW),REF(VAR14,7),REF(LOW + (REF(HIGH,VAR19) - LOW),7),0),DOTLINE,COLORLIMAGENTA; DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH,REF(VAR9,15),REF(HIGH,15),0),DOTLINE,COLORLIMAGENTA; DRAWNUMBER((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.191),HIGH - ((HIGH - REF(LOW,VAR19)) * 0.191)); DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.191),REF(VAR9,15),REF(HIGH - ((HIGH - REF(LOW,VAR19)) * 0.191),15),0),DOTLINE,COLOR8080FF; DRAWNUMBER((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.382),HIGH - ((HIGH - REF(LOW,VAR19)) * 0.382)); DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.382),REF(VAR9,15),REF(HIGH - ((HIGH - REF(LOW,VAR19)) * 0.382),15),0),DOTLINE,COLOR808000; DRAWNUMBER((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.5),HIGH - ((HIGH - REF(LOW,VAR19)) * 0.5)); DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.5),REF(VAR9,15),REF(HIGH - ((HIGH - REF(LOW,VAR19)) * 0.5),15),0),DOTLINE,COLORLIGREEN; DRAWNUMBER((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.618),HIGH - ((HIGH - REF(LOW,VAR19)) * 0.618)); DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.618),REF(VAR9,15),REF(HIGH - ((HIGH - REF(LOW,VAR19)) * 0.618),15),0),DOTLINE,COLORC0C000; DRAWNUMBER((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.809),HIGH - ((HIGH - REF(LOW,VAR19)) * 0.809)); DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - ((HIGH - REF(LOW,VAR19)) * 0.809),REF(VAR9,15),REF(HIGH - ((HIGH - REF(LOW,VAR19)) * 0.809),15),0),DOTLINE,COLORGRAY; DRAWLINE((ISGOLD AND VAR50) AND VAR9,HIGH - (HIGH - REF(LOW,VAR19)),REF(VAR9,15),REF(HIGH - (HIGH - REF(LOW,VAR19)),15),0),DOTLINE,COLORLIGRAY; STICKLINE(((C - REF(C,1)) / REF(C,1)) > 0.05,MAX(OPEN,C) - ((ABS(OPEN - C)) / 3),MAX(OPEN,C) - (((ABS(OPEN - C)) * 2) / 3),2.5,0),COLORYELLOW; STICKLINE(((C - REF(C,1)) / REF(C,1)) > 0.095,MAX(OPEN,C) - ((ABS(OPEN - C)) / 3),MAX(OPEN,C) - (((ABS(OPEN - C)) * 2) / 3),2.5,0),COLORMAGENTA; STICKLINE(((C - REF(C,1)) / REF(C,1)) < -0.05,MAX(OPEN,C) - ((ABS(OPEN - C)) / 3),MAX(OPEN,C) - (((ABS(OPEN - C)) * 2) / 3),2.5,0),COLORBLUE; STICKLINE(((C - REF(C,1)) / REF(C,1)) < -0.095,MAX(OPEN,C) - ((ABS(OPEN - C)) / 3),MAX(OPEN,C) - (((ABS(OPEN - C)) * 2) / 3),2.5,0),COLORGREEN;股票論壇 www.55188.com |
|