前期本人在论坛下载一个指标,通过一段时间使用发现股价当日收盘价突破攻击线就会有很好的短线机会。求哪位大神帮帮忙改为选股指标,拜托了
以下源码,主图,可以加入主图公式中,
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
MM:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST(CURRBARSCOUNT MM+T1 AND H T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST(CURRBARSCOUNT MM+T2 AND HIGH T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
攻击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH,1),COLOR00FFFF,LINETHICK2;
DRAWTEXT(ISLASTBAR, T3HIGH, '攻击线')LINETHICK2,COLOR00FFFF;
选股
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
MM:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST(CURRBARSCOUNT MM+T1 AND H T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST(CURRBARSCOUNT MM+T2 AND HIGH T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
XG:CLOSE T3HIGH AND BARSLAST(REF(CLOSE T3HIGH,1))