通达信高低操作主图指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
N:=1;

 

XOPEN:=(REF(O,N)+REF(C,N))/2;

XCLOSE:=CLOSE;

XHIGH:=MAX(HIGH,XOPEN);

XLOW:=MIN(LOW,XOPEN);

VOLALITY:=MA(XHIGH-XLOW,8);

高线:MA(XCLOSE,5)+VOLALITY/2;

低线:MA(XCLOSE,5)-VOLALITY/2;

BU:=CROSS(XCLOSE,高线);

SEL:=CROSS(低线,XCLOSE);

VAR1:=BARSLAST(BU);

VAR2:=BARSLAST(SEL); 

高线升:IF(高线 > REF(高线,1),高线,DRAWNULL),COLORRED,LINETHICK2;

高线降:IF(高线 < REF(高线,1),高线,DRAWNULL),COLORGREEN,LINETHICK2;

低线升:IF(低线 > REF(低线,1),低线,DRAWNULL),COLORMAGENTA,LINETHICK2;

低线降:IF(低线 < REF(低线,1),低线,DRAWNULL),COLORGREEN,LINETHICK2;

买:DRAWICON(REF(VAR1,1) > VAR2 AND VAR1=0,低线*0.99,1);

卖:DRAWICON(REF(VAR2,1) > VAR1 AND VAR2=0,高线*1.01,2);

STICKLINE(XCLOSE > XOPEN AND VAR1 < VAR2,XCLOSE,XOPEN ,3,0 ),COLORRED;

STICKLINE(XCLOSE > XOPEN AND VAR1 < VAR2,XHIGH,XCLOSE ,0.5,0 ),COLORRED;

STICKLINE(XCLOSE > XOPEN AND VAR1 < VAR2,XOPEN,XLOW ,0.5,0 ),COLORRED;

STICKLINE(XCLOSE <=XOPEN AND VAR1 < VAR2,XCLOSE,XOPEN ,3,0 ),COLORYELLOW;

STICKLINE(XCLOSE <=XOPEN AND VAR1 < VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;

STICKLINE(XCLOSE <=XOPEN AND VAR1 < VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;

STICKLINE(XCLOSE <=XOPEN AND VAR1 > VAR2,XCLOSE ,XOPEN ,3,0 ),COLORGREEN;

STICKLINE(XCLOSE <=XOPEN AND VAR1 > VAR2,XOPEN ,XHIGH ,0.5,0 ),COLORGREEN;

STICKLINE(XCLOSE <=XOPEN AND VAR1 > VAR2,XCLOSE,XLOW ,0.5,0 ),COLORGREEN;

STICKLINE(XCLOSE > XOPEN AND VAR1 > VAR2,XCLOSE ,XOPEN ,3,0 ),COLORMAGENTA;

STICKLINE(XCLOSE > XOPEN AND VAR1 > VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORMAGENTA;

STICKLINE(XCLOSE > XOPEN AND VAR1 > VAR2,XOPEN,XLOW ,0.5,0 ),COLORMAGENTA;

 


选股票看什么指标最好 >股票指标网