VAR1:=90; VAR2:=80; VAR3:=70; VAR4:=10; VAR5:=VAR1+(100-VAR1)/2; VAR6:=(100-VAR1)/2; VAR7:=COST(VAR5); VAR9:=COST(VAR6); VAR8:=(VAR7-VAR9)/(VAR7+VAR9); 獲利比例:WINNER(CLOSE)*100,NODRAW; 倍:獲利比例/REF(獲利比例,1),NODRAW; DRAWTEXT(倍>2 AND 獲利比例>20,獲利比例,'出擊' ),COLORYELLOW; STICKLINE(獲利比例,獲利比例,0,2,1),COLORLIGRAY; STICKLINE(獲利比例>=VAR3,獲利比例,0,1,0),COLORLIGRAY; STICKLINE(獲利比例>=VAR2,獲利比例,0,1,0),COLORGREEN; STICKLINE(獲利比例>=VAR1,獲利比例,0,1,0),COLORRED; {STICKLINE(倍>2 AND 獲利比例>10,100,0,0.01,0),COLORLIGRAY;} 籌碼集中度:VAR8*100; STICKLINE(籌碼集中度<=VAR4,獲利比例/2,0,1,0),COLORYELLOW; JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); 主買(mǎi):=QJ0*IF(C<O,MIN(CLOSE,OPEN)-LOW,ABS(JJ-MIN(CLOSE,OPEN))); 主賣(mài):=QJ0*IF(C<O,(HIGH-JJ),(HIGH-MAX(OPEN,CLOSE))); V0:=VOL; 大單差:=(主買(mǎi)-主賣(mài)),LINETHICK; STICKLINE(獲利比例 AND 大單差>0,獲利比例,0,2,-1),COLOR4444DD; 市場(chǎng)成本:DMA(AMOUNT/(100*VOL),VOL/CAPITAL),NODRAW; 價(jià)格成本差:C-市場(chǎng)成本,NODRAW; 火箭發(fā)射:=CROSS(MACD.DIF#MONTH,MACD.DEA#MONTH); STICKLINE(火箭發(fā)射,37, 100, 0,0),COLORFF00FF; STICKLINE(火箭發(fā)射,89, 93, 4,0),COLORFF00FF; STICKLINE(火箭發(fā)射,89, 89, 5,0),COLORFF0000; STICKLINE(火箭發(fā)射,85, 80, 7,0),COLOR0000FF; STICKLINE(火箭發(fā)射,75, 89, 9,0),COLORFF00FF; STICKLINE(火箭發(fā)射,75, 75, 9,0),COLORFF0000; STICKLINE(火箭發(fā)射,67, 69, 9,1),COLORFF00FF; STICKLINE(火箭發(fā)射,59, 61, 9,1),COLORFF00FF; STICKLINE(火箭發(fā)射,51, 53, 9,1),COLORFF00FF; STICKLINE(火箭發(fā)射,43, 45, 9,1),COLORFF00FF; STICKLINE(火箭發(fā)射,39, 39, 9,0),COLORFF0000; STICKLINE(火箭發(fā)射,37, 39, 9,0),COLORFF00FF; STICKLINE(火箭發(fā)射,33, 37, 9,0),COLORFF00FF; STICKLINE(火箭發(fā)射,28, 33, 9,0),COLORFF00FF; STICKLINE(火箭發(fā)射,10, 28, 10,0),COLORFF00FF; STICKLINE(火箭發(fā)射,10, 10, 8,0),COLORFF0000; STICKLINE(火箭發(fā)射,8, 5, 8,0),COLOR00FFFF; STICKLINE(火箭發(fā)射,8, 75, 0.77,0),COLORFF00FF; STICKLINE(火箭發(fā)射,9, 5, 0.94,0),COLOR0000FF; STICKLINE(火箭發(fā)射,5, 0, 7,0),COLOR004080; STICKLINE(火箭發(fā)射,5, 0, 4,0),COLOR00FFFF; STICKLINE(火箭發(fā)射,-5, 0, 5,0),COLOR00FFFF; STICKLINE(火箭發(fā)射,-5, 0, 5,0),COLORFFFF00; STICKLINE(火箭發(fā)射,-10, -2.5, 6,0),COLOR0000FF; STICKLINE(火箭發(fā)射,-10, -7.55, 7,0),COLOR0000FF; STICKLINE(火箭發(fā)射,-15, -10, 8,0),COLOR0000FF; 主升線(xiàn):="MACD.DIF#WEEK"(12,26,9); A1:=CROSS(主升線(xiàn),0); STICKLINE(A1,37, 100, 0,0),COLOR0000FF; STICKLINE(A1,37, 39, 0.97,0),COLOR0000FF; STICKLINE(A1,33, 37, 1.06,0),COLOR0000FF; STICKLINE(A1,28, 33, 0.9,0),COLOR0000FF; STICKLINE(A1,10, 28, 1.41,0),COLOR0000FF; STICKLINE(A1,89, 93, 0.34,0),COLOR0000FF; STICKLINE(A1,75, 89, 0.84,0),COLOR0000FF; STICKLINE(A1,8, 75, 0.77,0),COLOR0000FF; STICKLINE(A1,9, 5, 0.94,0),COLOR0000FF; STICKLINE(A1,5, 0, 0.66,0),COLOR0000FF; STICKLINE(A1,-5, 0, 0.62,0),COLOR0000FF; STICKLINE(A1,-10, -2.5, 0.45,0),COLOR0000FF; STICKLINE(A1,-10, -7.55, 0.19,0),COLOR0000FF; STICKLINE(A1,-15, -10, 0.1,0),COLOR0000FF; STICKLINE(A1,8, 5, 0.43,0),COLOR00FFFF; STICKLINE(A1,5, 0, 0.19,0),COLORFF0080; STICKLINE(A1,-5, 0, 0.06,0),COLOR00FFFF; STICKLINE(A1,85, 80, 0.57,0),COLOR0000FF; STICKLINE(A1,67, 69, 0.19,0),COLORFF0080; STICKLINE(A1,59, 61, 0.19,0),COLOR0000FF; STICKLINE(A1,51, 53, 0.19,0),COLOR0000FF; STICKLINE(A1,43, 45, 0.30,0),COLOR0000FF; STICKLINE(A1,89, 89, 0.77,0),COLOR0000FF; STICKLINE(A1,75, 75, 0.77,0),COLOR0000FF; STICKLINE(A1,39, 39, 0.77,0),COLOR0000FF; STICKLINE(A1,10, 10, 1.16,0),COLOR0000FF; DRAWTEXT(A1,20,'--ZJ0'),COLORC08080; 周RSI金叉:=CROSS(RSI.RSI1#WEEK,RSI.RSI2#WEEK); STICKLINE(周RSI金叉,-18,-5,7,0),COLORBLUE; STICKLINE(周RSI金叉,0,-5,2,0),COLORWHITE; STICKLINE(周RSI金叉,0,5,2,0),COLORRED; STICKLINE(周RSI金叉,5,8,9,0),COLORC08080; STICKLINE(周RSI金叉,8,13,8,0),COLORC08080; STICKLINE(周RSI金叉,13,15,7,0),COLORC08080; STICKLINE(周RSI金叉,15,18,6,0),COLORC08080; STICKLINE(周RSI金叉,20,22,4,0),COLORC08080; STICKLINE(周RSI金叉,22,24,3,0),COLORC08080; STICKLINE(周RSI金叉,24,26,2,0),COLORC08080; STICKLINE(周RSI金叉,26,28,1,0),COLORC08080; STICKLINE(周RSI金叉,28,30,0,0),COLORC08080; DRAWTEXT(周RSI金叉,20,'--ZR'),COLORC08080; 月RSI金叉:=CROSS(RSI.RSI1#MONTH,RSI.RSI2#MONTH); STICKLINE(月RSI金叉,-15,0,7,0),COLORRED; STICKLINE(月RSI金叉,0,5,2,0),COLORRED; STICKLINE(月RSI金叉,5,8,7,0),COLORRED; STICKLINE(月RSI金叉,8,13,7,0),COLORRED; STICKLINE(月RSI金叉,15,20,7,0),COLORRED; STICKLINE(月RSI金叉,20,25,6,0),COLORRED; STICKLINE(月RSI金叉,25,30,4,0),COLORRED; STICKLINE(月RSI金叉,30,35,3,0),COLORRED; STICKLINE(月RSI金叉,35,40,2,0),COLORRED; STICKLINE(月RSI金叉,40,45,1,0),COLORRED; STICKLINE(月RSI金叉,45,50,0,0),COLORRED; DRAWTEXT(月RSI金叉,20,'---YR'),COLORRED; |
|
來(lái)自: 星宇光輝圖書(shū)館 > 《指標(biāo)》