老师,求助! [文华财经]
-
咨询内容:
主趋势线:EMA(EMA(C,55),55),COLORRED,LINETHICK3;B:=主趋势线>REF(主趋势线,1);IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK3;AA:=EMA(C,13) > EMA(C,55);BB:=EMA(C,13) < EMA(C,55);CC:= EMA(C,13) > EMA(C,89);CC1:=EMA(C,13) < EMA(C,89);DD:=CLOSE<OPEN;STICKLINE1(AA,H,MAX(C,O),0,0),COLORRED;STICKLINE1(AA,L,MIN(C,O),0,0),COLORRED;STICKLINE1(AA,O,C,3,1),COLORRED;STICKLINE1(AA AND DD,O,C,3,0),COLORRED;STICKLINE1(BB,H,MAX(C,O),0,0),COLORGREEN;STICKLINE1(BB,L,MIN(C,O),0,0),COLORGREEN;STICKLINE1(BB,O,C,3,1),COLORGREEN;STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;STICKLINE1(BB AND CC,H,MAX(C,O),0,1),COLORWHITE;STICKLINE1(BB AND CC,L,MIN(C,O),0,1),COLORWHITE;STICKLINE1(BB AND CC,O,C,3,1),COLORWHITE;STICKLINE1(BB AND CC AND DD,O,C,3,0),COLORWHITE;STICKLINE1(AA AND CC1,H,MAX(C,O),0,0),COLORWHITE;STICKLINE1(AA AND CC1,L,MIN(C,O),0,0),COLORWHITE;STICKLINE1(AA AND CC1,O,C,3,1),COLORWHITE;STICKLINE1(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;AAA:=REFX1(HHV(C,90),10000);CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '色K线做多,绿色K线做空,白色K线观望。 ',COLORYELLOW;
DRAWGBK(C>0,RGB(0,0,89),RGB(0,89,0),1);DRAWNUMBER1(ISLASTBAR,H,C,2),COLORWHITE;
每次做单带好止损白色支撑压力线:EMA(CLOSE,255),COLORWHITE, LINETHICK3;AS:=(C*3+O+H+L)/6;XJ:=(AS+0.618*REF(AS,1)+0.382*REF(AS,2)+0.236*REF(AS,3)+0.146*REF(AS,4))/2.382;HLX:=EMA(HHV(XJ,3),15);LLX:=EMA(LLV(XJ,3),15);CH:=CROSS(XJ,HLX);CL:=CROSS(LLX,XJ);CHH:=BARSLAST(CH);CLL:=BARSLAST(CL);YF1:=(CHH<CLL OR CH) AND NOT(CL);YF2:=(CHH>CLL OR CL) AND NOT(CH);TF:=IF(YF1,LLX,HLX);TFB:=(HLX+LLX)/2;XJK:=SMA(EMA(XJ,3),3,1);ZWSH:=(HHV(XJ,2)+HHV(XJ,3)+HHV(XJ,4)+HHV(XJ,5))/4;SH:=EMA(ZWSH,21);ZWSL:=(LLV(XJ,2)+LLV(XJ,3)+LLV(XJ,4)+LLV(XJ,5))/4;SL:=EMA(ZWSL,21);SCH:=CROSS(XJ,SH);SCL:=CROSS(SL,XJ);SHH:=BARSLAST(SCH);SLL:=BARSLAST(SCL);SF1:=(SHH<SLL OR SCH) AND NOT(SCL);SF2:=(SHH>SLL OR SCL) AND NOT(SCH);TFS:=IF(SF1,SL,SH);TFBS:=(SL+SH)/2;{K线}KX1:=(CLOSE>=OPEN) AND XJ>=TFS;KX2:=(CLOSE<OPEN) AND XJ>=TFS;KX3:=(CLOSE>=OPEN) AND XJ<TFS;KX4:=(CLOSE<OPEN) AND XJ<TFS;
MA13:EMA(C,13),COLORLIGHTRED,LINETHICK3;MA55:EMA(C,55);MA89:EMA(C,89),LINETHICK4;MA160:EMA(C,160),LINETHICK3,COLORCYAN;IF(MA13>MA89,MA89,NULL),COLORMAGENTA,LINETHICK4;IF(MA55>MA89,MA89,NULL),COLORRED,LINETHICK4;IF(MA13<MA89,MA89,NULL),COLORMAGENTA,LINETHICK4;IF(MA55<MA89,MA89,NULL),COLORGREEN,LINETHICK4;
FILLRGN1(MA89>MAX(MA13,MA55),MIN(MA13,MA55),MA89),COLORBLUE;FILLRGN1(MIN(MA13,MA55)>MA89,MAX(MA55,MA13),MA89),COLORYELLOW;FILLRGN1(MIN(MA13,MA55)>MA89,MIN(MA55,MA13),MA89),COLORBLACK;FILLRGN1(MA13<MA89&&MA89<MA55,MA13,MA89),COLORMAGENTA;FILLRGN1(MA13>MA89&&MA89>MA55,MA55,MA89),COLORMAGENTA;CROSS(MA55,MA89)||CROSS(MA89,MA55),SOUND(''; 老师,帮我把黄色和蓝色的区域去掉,当k线变红时在k线下方显示字体“多”,当k线变绿时在上方显示“空”来源:程序化99
-
文华技术人员:
参考:
主趋势线:EMA(EMA(C,55),55),COLORRED,LINETHICK3; B:=主趋势线>REF(主趋势线,1); IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK3; AA:=EMA(C,13) > EMA(C,55); BB:=EMA(C,13) < EMA(C,55); CC:= EMA(C,13) > EMA(C,89); CC1:=EMA(C,13) < EMA(C,89); DD:=CLOSE<OPEN; STICKLINE1(AA,H,MAX(C,O),0,0),COLORRED; STICKLINE1(AA,L,MIN(C,O),0,0),COLORRED; STICKLINE1(AA,O,C,3,1),COLORRED; STICKLINE1(AA AND DD,O,C,3,0),COLORRED; STICKLINE1(BB,H,MAX(C,O),0,0),COLORGREEN; STICKLINE1(BB,L,MIN(C,O),0,0),COLORGREEN; STICKLINE1(BB,O,C,3,1),COLORGREEN; STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN; STICKLINE1(BB AND CC,H,MAX(C,O),0,1),COLORWHITE; STICKLINE1(BB AND CC,L,MIN(C,O),0,1),COLORWHITE; STICKLINE1(BB AND CC,O,C,3,1),COLORWHITE; STICKLINE1(BB AND CC AND DD,O,C,3,0),COLORWHITE; STICKLINE1(AA AND CC1,H,MAX(C,O),0,0),COLORWHITE; STICKLINE1(AA AND CC1,L,MIN(C,O),0,0),COLORWHITE; STICKLINE1(AA AND CC1,O,C,3,1),COLORWHITE; STICKLINE1(AA AND CC1 AND DD,O,C,3,0),COLORWHITE; AAA:=REFX1(HHV(C,90),10000); CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '色K线做多,绿色K线做空,白色K线观望。 ',COLORYELLOW;
DRAWGBK(C>0,RGB(0,0,89),RGB(0,89,0),1); DRAWNUMBER1(ISLASTBAR,H,C,2),COLORWHITE;
每次做单带好止损白色支撑压力线:EMA(CLOSE,255),COLORWHITE, LINETHICK3; AS:=(C*3+O+H+L)/6; XJ:=(AS+0.618*REF(AS,1)+0.382*REF(AS,2)+0.236*REF(AS,3)+0.146*REF(AS,4))/2.382; HLX:=EMA(HHV(XJ,3),15); LLX:=EMA(LLV(XJ,3),15); CH:=CROSS(XJ,HLX); CL:=CROSS(LLX,XJ); CHH:=BARSLAST(CH); CLL:=BARSLAST(CL); YF1:=(CHH<CLL OR CH) AND NOT(CL); YF2:=(CHH>CLL OR CL) AND NOT(CH); TF:=IF(YF1,LLX,HLX); TFB:=(HLX+LLX)/2; XJK:=SMA(EMA(XJ,3),3,1); ZWSH:=(HHV(XJ,2)+HHV(XJ,3)+HHV(XJ,4)+HHV(XJ,5))/4; SH:=EMA(ZWSH,21); ZWSL:=(LLV(XJ,2)+LLV(XJ,3)+LLV(XJ,4)+LLV(XJ,5))/4; SL:=EMA(ZWSL,21); SCH:=CROSS(XJ,SH); SCL:=CROSS(SL,XJ); SHH:=BARSLAST(SCH); SLL:=BARSLAST(SCL); SF1:=(SHH<SLL OR SCH) AND NOT(SCL); SF2:=(SHH>SLL OR SCL) AND NOT(SCH); TFS:=IF(SF1,SL,SH); TFBS:=(SL+SH)/2; {K线} KX1:=(CLOSE>=OPEN) AND XJ>=TFS; KX2:=(CLOSE<OPEN) AND XJ>=TFS; KX3:=(CLOSE>=OPEN) AND XJ<TFS; KX4:=(CLOSE<OPEN) AND XJ<TFS;
MA13:EMA(C,13),COLORLIGHTRED,LINETHICK3; MA55:EMA(C,55); MA89:EMA(C,89),LINETHICK4; MA160:EMA(C,160),LINETHICK3,COLORCYAN; IF(MA13>MA89,MA89,NULL),COLORMAGENTA,LINETHICK4; IF(MA55>MA89,MA89,NULL),COLORRED,LINETHICK4; IF(MA13<MA89,MA89,NULL),COLORMAGENTA,LINETHICK4; IF(MA55<MA89,MA89,NULL),COLORGREEN,LINETHICK4;
FILLRGN1(MA13<MA89&&MA89<MA55,MA13,MA89),COLORMAGENTA; FILLRGN1(MA13>MA89&&MA89>MA55,MA55,MA89),COLORMAGENTA; CROSS(MA55,MA89)||CROSS(MA89,MA55),SOUND('';
DRAWTEXT(CROSS(AA,0.5),L,'',VALIGN0; DRAWTEXT(CROSS(BB&&NOT(CC),0.5),H,'';
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 或微信号:cxh99cxh99 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容