总额:=AMOUNT; 买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L)); 买%:=买/AMOUNT*100; 流入:=AMOUNT*买%/10000000000; 流出:=AMOUNT/100000000-流入; 净流:=流入-流出; 总额3:=SUM(AMOUNT,3); 流入3:=SUM(流入,3); 流出3:=SUM(流出,3); 净流3:=SUM(流入-流出,3); 总额5:=SUM(AMOUNT,5); 流入5:=SUM(流入,5); 流出5:=SUM(流出,5); 净流5:=SUM(流入-流出,5); 总额10:=SUM(AMOUNT,10); 流入10:=SUM(流入,10); 流出10:=SUM(流出,10); 净流10:=SUM(流入-流出,10); 画:=CONST(FINDHIGH(总额10,0,190,1)); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,30,0),ABS(画),DRAWNULL),RGB(0,30,50),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,27,26),CONST(总额),DRAWNULL),RGB(150,10,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,26,25),CONST(流入*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,24),CONST(流出*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,20,19),CONST(总额3),DRAWNULL),RGB(150,10,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,19,18),CONST(流入3*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,18,17),CONST(流出3*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,13,12),CONST(总额5),DRAWNULL),RGB(150,10,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,12,11),CONST(流入5*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,11,10),CONST(流出5*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,6,5),CONST(总额10),DRAWNULL),RGB(150,10,0),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,5,4),CONST(流入10*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL); DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,4,3),CONST(流出10*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL); DRAWTEXT(CURRBARSCOUNT=30,画*0.89,'总额亿'),COLORRED; DRAWTEXT(CURRBARSCOUNT=30,画*0.78,'流入亿'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=30,画*0.67,'流出亿'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=30,画*0.57,'净流亿'),COLOR0099FF; DRAWTEXT(CURRBARSCOUNT=24,画*0.95,'1日'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=18,画*0.95,'3日'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=12,画*0.95,'5日'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=6,画*0.95,'10日'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=30,画*0.015,'(一)'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=23,画*0.015,'(三)'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=16,画*0.015,'(五)'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=9,画*0.015,'(十)'),COLORMAGENTA; DRAWNUMBER(CURRBARSCOUNT=25,画*0.89,CONST(总额/100000000)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=25,画*0.78,CONST(流入)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=25,画*0.67,CONST(流出)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=25,画*0.56,CONST(净流)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=19,画*0.89,CONST(总额3/100000000)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=19,画*0.78,CONST(流入3)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=19,画*0.67,CONST(流出3)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=19,画*0.56,CONST(净流3)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=13,画*0.89,CONST(总额5/100000000)), COLORDDFFFF; DRAWNUMBER(CURRBARSCOUNT=13,画*0.78,CONST(流入5)), COLORDDFFFF; DRAWNUMBER(CURRBARSCOUNT=13,画*0.67,CONST(流出5)), COLORDDFFFF; DRAWNUMBER(CURRBARSCOUNT=13,画*0.56,CONST(净流5)), COLORDDFFFF; DRAWNUMBER(CURRBARSCOUNT=7,画*0.89,CONST(总额10/100000000)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=7,画*0.78,CONST(流入10)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=7,画*0.67,CONST(流出10)),COLORYELLOW; DRAWNUMBER(CURRBARSCOUNT=7,画*0.56,CONST(净流10)),COLORYELLOW;
总额赋值:成交额(元)
买赋值:如果开盘价=CAND(收盘价-昨收)/昨收*100>9.8,返回成交额(元),否则返回成交额(元)/((最高价-最低价)*2-开盘价-收盘价的绝对值)*(收盘价-最低价)
买%赋值:买/成交额(元)*100
流入赋值:成交额(元)*买%/10000000000
流出赋值:成交额(元)/100000000-流入
净流赋值:流入-流出
总额3赋值:成交额(元)的3日累和
流入3赋值:流入的3日累和
流出3赋值:流出的3日累和
净流3赋值:流入-流出的3日累和
总额5赋值:成交额(元)的5日累和
流入5赋值:流入的5日累和
流出5赋值:流出的5日累和
净流5赋值:流入-流出的5日累和
总额10赋值:成交额(元)的10日累和
流入10赋值:流入的10日累和
流出10赋值:流出的10日累和
净流10赋值:流入-流出的10日累和
画赋值:总额10在0日前的190天内第1个最高价的最后一日取值设为常数
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
画带状线
当满足条件到最后交易的周期=30时,在画*0.89位置书写文字,画红色
当满足条件到最后交易的周期=30时,在画*0.78位置书写文字,画洋红色
当满足条件到最后交易的周期=30时,在画*0.67位置书写文字,画青色
当满足条件到最后交易的周期=30时,在画*0.57位置书写文字,COLOR0099FF
当满足条件到最后交易的周期=24时,在画*0.95位置书写文字,画洋红色
当满足条件到最后交易的周期=18时,在画*0.95位置书写文字,画洋红色
当满足条件到最后交易的周期=12时,在画*0.95位置书写文字,画洋红色
当满足条件到最后交易的周期=6时,在画*0.95位置书写文字,画洋红色
当满足条件到最后交易的周期=30时,在画*0.015位置书写文字,画洋红色
当满足条件到最后交易的周期=23时,在画*0.015位置书写文字,画洋红色
当满足条件到最后交易的周期=16时,在画*0.015位置书写文字,画洋红色
当满足条件到最后交易的周期=9时,在画*0.015位置书写文字,画洋红色
当满足条件到最后交易的周期=25时,在画*0.89位置书写数字,画黄色
当满足条件到最后交易的周期=25时,在画*0.78位置书写数字,画黄色
当满足条件到最后交易的周期=25时,在画*0.67位置书写数字,画黄色
当满足条件到最后交易的周期=25时,在画*0.56位置书写数字,画黄色
当满足条件到最后交易的周期=19时,在画*0.89位置书写数字,画黄色
当满足条件到最后交易的周期=19时,在画*0.78位置书写数字,画黄色
当满足条件到最后交易的周期=19时,在画*0.67位置书写数字,画黄色
当满足条件到最后交易的周期=19时,在画*0.56位置书写数字,画黄色
当满足条件到最后交易的周期=13时,在画*0.89位置书写数字, COLORDDFFFF
当满足条件到最后交易的周期=13时,在画*0.78位置书写数字, COLORDDFFFF
当满足条件到最后交易的周期=13时,在画*0.67位置书写数字, COLORDDFFFF
当满足条件到最后交易的周期=13时,在画*0.56位置书写数字, COLORDDFFFF
当满足条件到最后交易的周期=7时,在画*0.89位置书写数字,画黄色
当满足条件到最后交易的周期=7时,在画*0.78位置书写数字,画黄色
当满足条件到最后交易的周期=7时,在画*0.67位置书写数字,画黄色
当满足条件到最后交易的周期=7时,在画*0.56位置书写数字,画黄色
有话要说...