A股小妖女 发表于 2024-3-31 07:35:00

通达信变盘周期划线主图指标

<p data-first-child >通达信变盘周期划线主图指标        </p><p >N:=6000;<br/>高:=REFDATE(HHV(H,N),DATE); <br/>低:=REFDATE(LLV(L,N),DATE);<br/> H11:=高-(高-低)*1.000;<br/> H10:=高-(高-低)*0.875;<br/> H9:=高-(高-低)*0.750;<br/> H8:=高-(高-低)*0.666;<br/> H7:=高-(高-低)*0.625;<br/> H6:=高-(高-低)*0.500;<br/> H5:=高-(高-低)*0.375;<br/> H4:=高-(高-低)*0.333;<br/> H3:=高-(高-低)*0.250;<br/> H2:=高-(高-低)*0.125;<br/> H1:=高-(高-低)*0.000;<br/> STICKLINE(CURRBARSCOUNT=18,高,高,120,1),COLORGREEN;<br/> STICKLINE(CURRBARSCOUNT=18,H1,H1,120,1),COLORCYAN;<br/> STICKLINE(CURRBARSCOUNT=18,H2,H2,120,1),COLORCCCCCC;<br/> DRAWTEXT(CURRBARSCOUNT=10,H1,'0.000'),COLORCYAN;<br/> DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.125'),COLORFFFFFF;<br/> DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.250'),COLORYELLOW;<br/> DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.333'),COLORLIRED;<br/> DRAWTEXT(CURRBARSCOUNT=10,H5,' 0.375'),COLORGREEN;<br/> DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.500'),COLORMAGENTA;<br/> DRAWTEXT(CURRBARSCOUNT=10,H7,' 0.625'),COLORRED;<br/> DRAWTEXT(CURRBARSCOUNT=10,H8,' 0.666'),COLORRED;<br/> DRAWTEXT(CURRBARSCOUNT=10,H9,' 0.750'),COLORGREEN;<br/> DRAWTEXT(CURRBARSCOUNT=10,H10,' 0.875'),COLORMAGENTA;<br/> DRAWTEXT(CURRBARSCOUNT=10,H11,' 1.000'),COLORGREEN;<br/> STICKLINE(CURRBARSCOUNT=18,H3,H3,120,1),COLORYELLOW;<br/> STICKLINE(CURRBARSCOUNT=18,H4,H4,120,1),COLORLIRED;<br/> STICKLINE(CURRBARSCOUNT=18,H6,H6,120,1),COLORGREEN;<br/> STICKLINE(CURRBARSCOUNT=18,H5,H5,120,1),COLORMAGENTA;<br/> STICKLINE(CURRBARSCOUNT=18,低,低,120,1),COLORRED;<br/> STICKLINE(CURRBARSCOUNT=18,H7,H7,120,1),COLORRED;<br/> STICKLINE(CURRBARSCOUNT=18,H8,H8,120,1),COLORRED;<br/> STICKLINE(CURRBARSCOUNT=18,H9,H9,120,1),COLORRED;<br/> STICKLINE(CURRBARSCOUNT=18,H10,H10,120,1),COLORRED;<br/> STICKLINE(CURRBARSCOUNT=18,H11,H11,120,1),COLORRED;<br/> DRAWTEXT(CURRBARSCOUNT=35,高*0.99,CON2STR(高,2)),COLORGREEN;<br/> DRAWTEXT(CURRBARSCOUNT=35,H11,CON2STR(H11,2)),COLORLIRED;<br/> DRAWTEXT(CURRBARSCOUNT=35,H10,CON2STR(H10,2)),COLORLIRED;<br/> DRAWTEXT(CURRBARSCOUNT=35,H9,CON2STR(H9,2)),COLORMAGENTA;<br/> DRAWTEXT(CURRBARSCOUNT=35,H8,CON2STR(H8,2)),COLORRED;<br/> DRAWTEXT(CURRBARSCOUNT=35,H1,CON2STR(H1,2)),COLORCYAN;<br/> DRAWTEXT(CURRBARSCOUNT=35,H2,CON2STR(H2,2)),COLORFFFFFF;<br/> DRAWTEXT(CURRBARSCOUNT=35,H3,CON2STR(H3,2)),COLORYELLOW;<br/> DRAWTEXT(CURRBARSCOUNT=35,H6,CON2STR(H6,2)),COLORGREEN;<br/> DRAWTEXT(CURRBARSCOUNT=35,H4,CON2STR(H4,2)),COLORLIRED;<br/> DRAWTEXT(CURRBARSCOUNT=35,H5,CON2STR(H5,2)),COLORMAGENTA;<br/> DRAWTEXT(CURRBARSCOUNT=35,H7,CON2STR(H7,2)),COLORRED;<br/>低点:=800;<br/>高点:=800;<br/>时间:=1;<br/>价格:=1;<br/>调点:=1; <br/> PURC:=CONST(FINDHIGH(H,0,高点*10,1));<br/> PLZ:=CONST(BARSLAST(PURC=H))+1;<br/>顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));<br/> QQT:=CONST(FINDLOW(L,0,低点*10,1));<br/> PLL:=CONST(BARSLAST(QQT=L))+1;<br/>低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));<br/> ATM:=时间=2 OR 时间=2;<br/> QTM:=时间=1 OR 时间=1;<br/> BTM:=时间=1 OR 时间=1 OR 时间=1;<br/> AAZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.809),DRAWNULL);<br/> ABZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.5),DRAWNULL);<br/> ACZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.618),DRAWNULL);<br/> ADZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.382),DRAWNULL);<br/> AEZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.236),DRAWNULL);<br/> AFZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1),DRAWNULL);<br/> AGZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.809),DRAWNULL);<br/> AHZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.5),DRAWNULL);<br/> AIZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.618),DRAWNULL);<br/> AJZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.382),DRAWNULL);<br/> AKZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.236),DRAWNULL);<br/> ALZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2),DRAWNULL);<br/> AMZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.236),DRAWNULL);<br/> ANZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.382),DRAWNULL);<br/> AOZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.5),DRAWNULL);<br/> APZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.618),DRAWNULL);<br/> AQZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.809),DRAWNULL);<br/> ARZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*3),DRAWNULL);</p><p ><b>欢迎大家自行尝试!    关于指标大家可以私信找我免费领取!</b></p>
页: [1]
查看完整版本: 通达信变盘周期划线主图指标