兩個指標(biāo)請教師幫改成文化能用的。謝謝 [文華財(cái)經(jīng)]
- 咨詢內(nèi)容:
MA1:MA(CLOSE,M1);{設(shè)定均線}
MA2:=MA(CLOSE,M2);{設(shè)定均線}
DRAWKLINE(H,O,L,C);{寫K線}
STICKLINE(MA1>=REF(MA1,1),H,L,0,0),COLOR0000FF;{均線上行,標(biāo)記影線}
STICKLINE(MA1>=REF(MA1,1) AND (C>=O),O,C,3,1),COLOR0000FF;{均線上行,標(biāo)記陽線}
STICKLINE(MA1>=REF(MA1,1)AND (C<=O),O,C,3,0),COLOR0000FF;{均線上行,標(biāo)記陰線}
STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13,H,L,0,0),COLOR00FFFF;{做頂,標(biāo)記影線}
STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C>=O),O,C,3,1),COLOR00FFFF;{做頂,標(biāo)記陽線}
STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C<=O),O,C,3,0),COLOR00FFFF;{做頂,標(biāo)記陰線}
STICKLINE(MA1<REF(MA1,1),H,L,0,0),COLOR00FF00;{均線下行,標(biāo)記影線}
STICKLINE(MA1<REF(MA1,1) AND (C>=O),O,C,3,1),COLOR00FF00;{均線下行,標(biāo)記陽線}
STICKLINE(MA1<REF(MA1,1) AND (C<=O),O,C,3,0),COLOR00FF00;{均線下行,標(biāo)記陰線};
STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15,H,L,0,0),COLORFF00FF;{做底,標(biāo)記影線}
STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C>=O),O,C,3,1),COLORFF00FF;{做底,標(biāo)記陽線}
STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C<=O),O,C,3,0),COLORFF00FF;{做底,標(biāo)記陰線};
==============================
MA1:MA(CLOSE,M1);
VAR1:HHV(MA1,3),COLOR00AA00;
VAR2:HHV(VAR1,2),COLOR00BB00;
VAR3:HHV(VAR2,2),COLOR00CC00,LINETHICK2;
VAR4:LLV(MA1,3),COLOR0000AA;
VAR5:LLV(VAR4,2),COLOR0000BB;
VAR6:LLV(VAR5,2),COLOR0000CC,LINETHICK2;
IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MA1<=REF(MA1,1),MA1,DRAWNULL),COLORWHITE,LINETHICK2; - 文華技術(shù)人員:
這樣編寫。
MA1:MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
DRAWKLINE(H,O,L,C);
STICKLINE1(MA1>=REF(MA1,1),H,L,0,0),COLOR0000FF;
STICKLINE1(MA1>=REF(MA1,1) AND (C>=O),O,C,3,1),COLOR0000FF;
STICKLINE1(MA1>=REF(MA1,1) AND (C<=O),O,C,3,0),COLOR0000FF;
STICKLINE1(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13,H,L,0,0),COLOR00FFFF;
STICKLINE1(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C>=O),O,C,3,1),COLOR00FFFF;
STICKLINE1(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C<=O),O,C,3,0),COLOR00FFFF;
STICKLINE1(MA1<REF(MA1,1),H,L,0,0),COLOR00FF00;
STICKLINE1(MA1<REF(MA1,1) AND (C>=O),O,C,3,1),COLOR00FF00;
STICKLINE1(MA1<REF(MA1,1) AND (C<=O),O,C,3,0),COLOR00FF00;
STICKLINE1(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15,H,L,0,0),COLORFF00FF;
STICKLINE1(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C>=O),O,C,3,1),COLORFF00FF;
STICKLINE1(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C<=O),O,C,3,0),COLORFF00FF;注:需要在參數(shù)欄中對M1,M2定義一下。
- 文華客服:
第二個
MA1:MA(CLOSE,M1);
VAR1:HHV(MA1,3),COLOR00AA00;
VAR2:HHV(VAR1,2),COLOR00BB00;
VAR3:HHV(VAR2,2),COLOR00CC00,LINETHICK2;
VAR4:LLV(MA1,3),COLOR0000AA;
VAR5:LLV(VAR4,2),COLOR0000BB;
VAR6:LLV(VAR5,2),COLOR0000CC,LINETHICK2;
IF(MA1>=REF(MA1,1),MA1,NULL),COLORMAGENTA,LINETHICK2;
IF(MA1<=REF(MA1,1),MA1,NULL),COLORWHITE,LINETHICK2;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容