陽漲幅:=4;
陽倍量:=2;
GF:=2;
單陽:=C>O*(1+陽漲幅/100) AND vol>REF(VOL,1)*陽倍量;
DRAWTEXT(CURRBARSCOUNT< 100 AND 單陽,L*0.998,'陽'),COLOR00FFFF;
高不破價:=REF(C,BArslAST(單陽));
中不破價:=REF((C+L)/2,BARSLAST(單陽));
低不破價:=REF(L,BARSLAST(單陽));
單陽不破:=CURRBARSCOUNT< 100 AND BARSLAST(單陽)< 11 AND (LLV(L,BARSLAST(單陽))>低不破價 OR LLV(L,BARSLAST(單陽))=低不破價);
陽低:IF(單陽不破 AND GF>=1,低不破價,DRAWNULL),COLORRED;
FU:=C-陽低;
低到當前幅度%:FU/陽低*100,NODRAW,COLOR00FFFF;
陽高:HHV(H,BARSLAST(單陽)),NODRAW,COLOR00DD00;
FUGA:=陽高-C;
高到當前幅度%:FUGA/陽高*100,NODRAW,COLORFFFF00;
DRAWTEXT(BARSLAST(單陽)=1 AND 單陽不破,低不破價*0.998,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=2 AND 單陽不破,低不破價*0.998,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=3 AND 單陽不破,低不破價*0.998,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=4 AND 單陽不破,低不破價*0.998,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=5 AND 單陽不破,低不破價*0.998,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=6 AND 單陽不破,低不破價*0.998,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=7 AND 單陽不破,低不破價*0.998,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=8 AND 單陽不破,低不破價*0.998,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=9 AND 單陽不破,低不破價*0.998,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=10 AND 單陽不破,低不破價*0.998,'10'),COLORGREEN;
低價A:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)*0.191),DRAWNULL);
低價B:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)*0.381),DRAWNULL);
低價C:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)*0.50),DRAWNULL);
低價D:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)*0.618),DRAWNULL);
低價E:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)*0.809),DRAWNULL);
低價F:=IF(單陽不破 AND GF>=1,(陽低+(陽高 - 陽低)),DRAWNULL);
DRAWBAND(陽低,RGB(80,0,0),低價A,RGB(110,11,115));
DRAWBAND(低價A,RGB(80,0,0),低價B,RGB(66,166,66));
DRAWBAND(低價B,RGB(80,0,0),低價C,RGB(77,77,77));
DRAWBAND(低價C,RGB(80,0,0),低價D,RGB(88,88,88));
DRAWBAND(低價D,RGB(80,0,0),低價E,RGB(6,55,66));
DRAWBAND(低價E,RGB(80,90,0),低價F,RGB(99,55,66));
實體幅度2:=REF((O+(C-O)*0.667),BARSLAST(單陽));
實體幅度1:=REF((O+(C-O)*0.333),BARSLAST(單陽));
幅度的1二:=REF((L+(H-L)/2),BARSLAST(單陽));
幅度:IF(單陽不破 AND GF>=1,幅度的1二,DRAWNULL),COLOR209FFF,DOTLINE;
幅度A:IF(單陽不破 AND GF>=1,實體幅度2,DRAWNULL),COLORFFFF00,DOTLINE;
幅度B:IF(單陽不破 AND GF>=1,實體幅度1,DRAWNULL),COLORFFFF00,DOTLINE;
低價1:IF(單陽不破 AND GF>=1,陽低*1.03,DRAWNULL),COLOR00FF00;
低價2:IF(單陽不破 AND GF>=1,陽低*1.05,DRAWNULL),COLOR00FF00;
低價3:IF(單陽不破 AND GF>=2,陽低*1.08,DRAWNULL),COLOR00FF00;
低價4:IF(單陽不破 AND GF>=2,陽低*1.13,DRAWNULL),COLOR00FF00;
STICKLINE(C>=O,C,O,3,0),COLOR0000FF;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
DRAWTEXT(ISLASTBAR AND GF>=1,陽低*1.03,'3'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=1,陽低*1.05,'5'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=2,陽低*1.08,'8'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=2,陽低*1.13,'13'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND GF>=1,低價A*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低價B*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低價C*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低價D*1.0025,'←■'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,低價E*1.0025,'←■'),COLOR208FFF;
兩天:=LLV(L,BARSLAST(單陽))>低不破價 OR LLV(L,BARSLAST(單陽))=低不破價;
一般:=LLV(L,BARSLAST(單陽)-2)>低不破價 OR LLV(L,BARSLAST(單陽)-2)=低不破價;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(單陽)< 9 AND 兩天 AND 一般,低不破價*1.001,'^'),LINETHICK2,COLOR88FF00;
較強:=LLV(L,BARSLAST(單陽)-2)>中不破價 OR LLV(L,BARSLAST(單陽)-2)=中不破價;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(單陽)< 9 AND 兩天 AND 較強,中不破價,'^'),LINETHICK2,COLOR208FFF;
最強:=LLV(L,BARSLAST(單陽)-3)>高不破價 OR LLV(L,BARSLAST(單陽)-2)=高不破價;
DRAWTEXT(CURRBARSCOUNT< 100 AND BARSLAST(單陽)< 9 AND 兩天 AND 最強,高不破價,'^'),LINETHICK2,COLOR0FFFFF;
STICKLINE(C=C,O+((C-O)*0.667),(O+(C-O)*0.667),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)*0.333),(O+(C-O)*0.333),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),2,0),COLOR00FFFF,LINETHICK1;
STICKLINE(C=C,L+((H-L)/2),(L+(H-L)/2),2.5,0),COLOR208FFF,LINETHICK1;
DRAWTEXT(BARSLAST(單陽)=1 AND 單陽不破,低不破價*0.998,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=2 AND 單陽不破,低不破價*0.998,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=3 AND 單陽不破,低不破價*0.998,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=4 AND 單陽不破,低不破價*0.998,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=5 AND 單陽不破,低不破價*0.998,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=6 AND 單陽不破,低不破價*0.998,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=7 AND 單陽不破,低不破價*0.998,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=8 AND 單陽不破,低不破價*0.998,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=9 AND 單陽不破,低不破價*0.998,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=10 AND 單陽不破,低不破價*0.998,'10'),COLORGREEN;