一位群友給了我個(gè)選股公式問能否編個(gè)主圖指標(biāo),說(shuō)是”必殺線“,說(shuō)指標(biāo)很多人喜歡在找這個(gè)源碼公式 看了這個(gè)選股公式和編成主圖指標(biāo)是還不錯(cuò),主圖指標(biāo)可以加入任何主圖指標(biāo)公式里 選股公式源碼: 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)); C>=T3HIGH AND REF(C,1)<T3HIGH AND DYNAINFO(17)>2; 根據(jù)這個(gè)編成主圖公式指標(biāo)
本帖隱藏的內(nèi)容N:=10; T1:=CONST(LLVBARS(LOW,N)); T1HIGH:=CONST(REF(HIGH,T1)); CC:=CONST(CURRBARSCOUNT); T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH))); T2HIGH:=CONST(REF(HIGH,T2)); T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH))); T3HIGH:=CONST(REF(HIGH,T3)); 必殺線 RAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK3,COLOR0000FF; DRAWTEXT(ISLASTBAR, T3HIGH, ' 必殺線')LINETHICK1,COLORYELLOW;
補(bǔ)充內(nèi)容 (2012-3-18 15:27): 顯示公式笑臉的改成: 必殺線RAWLINE
補(bǔ)充內(nèi)容 (2012-3-18 15:29): 有笑臉的照符小圖改定 |