猎杀线改为通达信预警或选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

请老师将这个猎杀线改为通达信预警或选股--码源:MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);T1:=CONST(LLVBARS(LOW,10)); T1HIGH:=CONST(REF(HIGH,T1)); CC:=CONST(CURRBARSCOUNT); T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1 AND H>T1HIGH)); T2HIGH:=CONST(REF(HIGH,T2)); T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2 AND HIGH>T2HIGH)); T3HIGH:=CONST(REF(HIGH,T3)); 猎击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR0000FF; DRAWTEXT(ISLASTBAR, T3HIGH, '猎击线')LINETHICK1,COLOR0000FF;

解答:

 CC:=CONST(CURRBARSCOUNT); 

T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1 AND H>T1HIGH)); 
T2HIGH:=CONST(REF(HIGH,T2)); 
T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2 AND HIGH>T2HIGH)); 
T3HIGH:=CONST(REF(HIGH,T3)); 
猎击线:CROSS(C,DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1));

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