讓這三根線顯示出價位數(shù)字嗎 [文華財經(jīng)]
-
咨詢內(nèi)容:
?OO:=VALUEWHEN(DAYBARPOS=1,O);ZG:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-REF(OO,DAYBARPOS),COLORRED,NODRAW;ZD:=REF(OO,DAYBARPOS)-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORGREEN,NODRAW;A1:=MAX(ZG,ZD);ZG1:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))-REF(OO,SUMBARS(DAYBARPOS=1,2)),COLORRED,NODRAW;ZD1:=REF(OO,SUMBARS(DAYBARPOS=1,2))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,2)),COLORGREEN,NODRAW;A2:=MAX(ZG1,ZD1);ZG2:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))-REF(OO,SUMBARS(DAYBARPOS=1,3)),COLORRED,NODRAW;ZD2:=REF(OO,SUMBARS(DAYBARPOS=1,3))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,3)),COLORGREEN,NODRAW;A3:=MAX(ZG2,ZD2);AA:=MIN1(A1,A2,A3);多單目標(biāo):REFX1((OO+AA),9999),COLORRED;空單目標(biāo):REFX1((OO-AA),9999),COLORGREEN;方向線:REFX1((OO),9999),COLORYELLOW;?
XX:=BACKSET(ISLASTBAR,DAYBARPOS);
DD:CROSS(EVERY(ISUP&&L>方向線,2),0.5)&&XX,WORD(0,'',VALIGN0;KK:CROSS(EVERY(ISDOWN&&H<方向線,2),0.5)&&XX,WORD(1,'';
EVERY(ISDOWN,3)&&COUNT(EVERY(ISDOWN,3),BARSLAST(DD))=1,WORD(1,'多';EVERY(ISUP,3)&&COUNT(EVERY(ISUP,3),BARSLAST(KK))=1,WORD(1,'空';
文件名:4k5`ton)afb%z7%j77v6(y.png?
?來源:程序化99
-
文華技術(shù)人員:
?參考:
?OO:=VALUEWHEN(DAYBARPOS=1,O); ZG:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-REF(OO,DAYBARPOS),COLORRED,NODRAW; ZD:=REF(OO,DAYBARPOS)-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORGREEN,NODRAW; A1:=MAX(ZG,ZD); ZG1:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))-REF(OO,SUMBARS(DAYBARPOS=1,2)),COLORRED,NODRAW; ZD1:=REF(OO,SUMBARS(DAYBARPOS=1,2))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,2)),COLORGREEN,NODRAW; A2:=MAX(ZG1,ZD1); ZG2:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))-REF(OO,SUMBARS(DAYBARPOS=1,3)),COLORRED,NODRAW; ZD2:=REF(OO,SUMBARS(DAYBARPOS=1,3))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,3)),COLORGREEN,NODRAW; A3:=MAX(ZG2,ZD2); AA:=MIN1(A1,A2,A3); 多單目標(biāo):REFX1((OO+AA),9999),COLORRED; DRAWNUMBER(ISLASTBAR,多單目標(biāo),多單目標(biāo),0,COLORRED),VALIGN1,ALIGN0; 空單目標(biāo):REFX1((OO-AA),9999),COLORGREEN; DRAWNUMBER(ISLASTBAR,空單目標(biāo),空單目標(biāo),0,COLORGREEN),VALIGN1,ALIGN0;
方向線:REFX1((OO),9999),COLORYELLOW;? DRAWNUMBER(ISLASTBAR,方向線,方向線,0,COLORYELLOW),VALIGN1,ALIGN0;
XX:=BACKSET(ISLASTBAR,DAYBARPOS);
DD:CROSS(EVERY(ISUP&&L>方向線,2),0.5)&&XX,WORD(0,'',VALIGN0; KK:CROSS(EVERY(ISDOWN&&H<方向線,2),0.5)&&XX,WORD(1,'';
EVERY(ISDOWN,3)&&COUNT(EVERY(ISDOWN,3),BARSLAST(DD))=1,WORD(1,'多'; EVERY(ISUP,3)&&COUNT(EVERY(ISUP,3),BARSLAST(KK))=1,WORD(1,'空';
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號:cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容