老师帮忙修改成文化的指标 [文华财经]
-
咨询内容:
折线:ZIG(3,20);
前波峰值:=PEAK(3,20,1);
前波谷值:=TROUGH(3,20,1);
DRAWNUMBER(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100);
DRAWNUMBER(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100);
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'',LINETHICK3,COLOR00FFFF;
MA13:=EMA(C,13),COLOR0000FF;
DIR:=ABS(CLOSE-REF(CLOSE,10));
VIR:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER:=DIR/VIR;
CS:=ER*(0.8-2/24)+2/24;
CQ:=CS*CS;
STICKLINE(C>MA13,H,L,0,0),COLORRED;
YTX:EMA(DMA(CLOSE,CQ),2),COLORGREEN;
STICKLINE(C>MA13,C,O,-1,1),COLORRED;
STICKLINE(C=MA13,H,L,3,0),COLORCYAN;
BLU:IF(YTX/REF(YTX,1)>0.997,YTX,DRAWNULL),COLORBLUE,LINETHICK3;
STICKLINE(C<MA13,H,L,0,0),COLORCYAN;
STICKLINE(C<MA13,O,C,-1,1),COLORCYAN;
GUL:IF(YTX/REF(YTX,1)>1.001,YTX,DRAWNULL),COLORRED,LINETHICK3;
买线:=ZIG(3,10);
卖线:=MA(买线,3);
STICKLINE(CROSS(买线,卖线),O,C,7,0),COLOR00AAFF;
STICKLINE(买线<卖线,H,L,0,0),COLORGREEN;
STICKLINE(买线<卖线,C,O,3,0),COLOR007700;
STICKLINE(买线<卖线,C,O,3,0),COLOR008E00;
STICKLINE(买线<卖线,C,O,3,0),COLOR009900;
STICKLINE(买线<卖线,C,O,3,0),COLOR00A600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00B500;
STICKLINE(买线<卖线,C,O,3,0),COLOR00C600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00D500;
STICKLINE(买线<卖线,C,O,2,0),COLOR00E600;
STICKLINE(买线>=卖线,H,L,0,0),COLOR0000FF;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000A3;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000B7;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000C8;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000D9;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000CD;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000E9;
STICKLINE(买线>=卖线,C,O,2,0),COLOR0000EA;
STICKLINE(买线>=卖线,C,O,1,0),COLOR0000FF;来源:程序化99
-
文华技术人员:
参考:
折线:ZIGZAG(C,20,1);
前波峰值:=PEAK(C,20,1,1);
前波谷值:=TROUGH(C,20,1,1);
DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100,0);
DRAWNUMBER1(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,0);
PL5:=ZIGZAG(C,5,1);
EN1:=ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3);
EX1:=ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3);
PL10:=ZIGZAG(C,10,1);
EN2:=ZIGZAG(C,10,1)>REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)<=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)<=REF(ZIGZAG(C,10,1),3);
EX2:=ZIGZAG(C,10,1)<REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)>=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)>=REF(ZIGZAG(C,10,1),3);
PL20:=ZIGZAG(C,20,1);
EN3:=ZIGZAG(C,20,1)>REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)<=REF(ZIGZAG(C,20,1),2) AND REF(ZIGZAG(C,20,1),2)<=REF(ZIGZAG(C,20,1),3);
EX3:=ZIGZAG(C,20,1)<REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)>=REF(ZIGZAG(C,20,1),2) AND REF(ZIGZAG(C,20,1),2)>=REF(ZIGZAG(C,20,1),3);
PL40:=ZIGZAG(C,40,1);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'',LINETHICK3,COLOR00FFFF;
MA13:=EMA(C,13),COLOR0000FF;
DIR:=ABS(CLOSE-REF(CLOSE,10));
VIR:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER:=DIR/VIR;
CS:=ER*(0.8-2/24)+2/24;
CQ:=CS*CS;
STICKLINE(C>MA13,H,L,0,0),COLORRED;
YTX:EMA(DMA(CLOSE,CQ),2),COLORGREEN;
STICKLINE(C>MA13,C,O,-1,1),COLORRED;
STICKLINE(C=MA13,H,L,3,0),COLORCYAN;
BLU:IF(YTX/REF(YTX,1)>0.997,YTX,NULL),COLORBLUE,LINETHICK3;
STICKLINE(C<MA13,H,L,0,0),COLORCYAN;
STICKLINE(C<MA13,O,C,-1,1),COLORCYAN;
GUL:IF(YTX/REF(YTX,1)>1.001,YTX,NULL),COLORRED,LINETHICK3;
买线:=ZIGZAG(C,10,1);
卖线:=MA(买线,3);
STICKLINE(CROSS(买线,卖线),O,C,7,0),COLOR00AAFF;
STICKLINE(买线<卖线,H,L,0,0),COLORGREEN;
STICKLINE(买线<卖线,C,O,3,0),COLOR007700;
STICKLINE(买线<卖线,C,O,3,0),COLOR008E00;
STICKLINE(买线<卖线,C,O,3,0),COLOR009900;
STICKLINE(买线<卖线,C,O,3,0),COLOR00A600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00B500;
STICKLINE(买线<卖线,C,O,3,0),COLOR00C600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00D500;
STICKLINE(买线<卖线,C,O,2,0),COLOR00E600;
STICKLINE(买线>=卖线,H,L,0,0),COLOR0000FF;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000A3;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000B7;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000C8;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000D9;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000CD;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000E9;
STICKLINE(买线>=卖线,C,O,2,0),COLOR0000EA;
STICKLINE(买线>=卖线,C,O,1,0),COLOR0000FF;来源: WWW.CXH99.COM
-
文华客服:
可以在开始变色加上声音提示嘛
-
网友回复:
参考:
折线:ZIGZAG(C,20,1);
前波峰值:=PEAK(C,20,1,1);
前波谷值:=TROUGH(C,20,1,1);
DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前波峰值-REF(C,1))/前波峰值*100,0);
DRAWNUMBER1(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,0);
PL5:=ZIGZAG(C,5,1);
EN1:=ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3);
EX1:=ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3);
PL10:=ZIGZAG(C,10,1);
EN2:=ZIGZAG(C,10,1)>REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)<=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)<=REF(ZIGZAG(C,10,1),3);
EX2:=ZIGZAG(C,10,1)<REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)>=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)>=REF(ZIGZAG(C,10,1),3);
PL20:=ZIGZAG(C,20,1);
EN3:=ZIGZAG(C,20,1)>REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)<=REF(ZIGZAG(C,20,1),2) AND REF(ZIGZAG(C,20,1),2)<=REF(ZIGZAG(C,20,1),3);
EX3:=ZIGZAG(C,20,1)<REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)>=REF(ZIGZAG(C,20,1),2) AND REF(ZIGZAG(C,20,1),2)>=REF(ZIGZAG(C,20,1),3);
PL40:=ZIGZAG(C,40,1);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'',COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'',COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'',LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'',LINETHICK3,COLOR00FFFF;
MA13:=EMA(C,13),COLOR0000FF;
DIR:=ABS(CLOSE-REF(CLOSE,10));
VIR:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER:=DIR/VIR;
CS:=ER*(0.8-2/24)+2/24;
CQ:=CS*CS;
STICKLINE(C>MA13,H,L,0,0),COLORRED;
YTX:EMA(DMA(CLOSE,CQ),2),COLORGREEN;
STICKLINE(C>MA13,C,O,-1,1),COLORRED;
STICKLINE(C=MA13,H,L,3,0),COLORCYAN;
BLU:IF(YTX/REF(YTX,1)>0.997,YTX,NULL),COLORBLUE,LINETHICK3;
STICKLINE(C<MA13,H,L,0,0),COLORCYAN;
STICKLINE(C<MA13,O,C,-1,1),COLORCYAN;
GUL:IF(YTX/REF(YTX,1)>1.001,YTX,NULL),COLORRED,LINETHICK3;
买线:=ZIGZAG(C,10,1);
卖线:=MA(买线,3);
STICKLINE(CROSS(买线,卖线),O,C,7,0),COLOR00AAFF;
STICKLINE(买线<卖线,H,L,0,0),COLORGREEN;
STICKLINE(买线<卖线,C,O,3,0),COLOR007700;
STICKLINE(买线<卖线,C,O,3,0),COLOR008E00;
STICKLINE(买线<卖线,C,O,3,0),COLOR009900;
STICKLINE(买线<卖线,C,O,3,0),COLOR00A600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00B500;
STICKLINE(买线<卖线,C,O,3,0),COLOR00C600;
STICKLINE(买线<卖线,C,O,3,0),COLOR00D500;
STICKLINE(买线<卖线,C,O,2,0),COLOR00E600;
STICKLINE(买线>=卖线,H,L,0,0),COLOR0000FF;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000A3;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000B7;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000C8;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000D9;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000CD;
STICKLINE(买线>=卖线,C,O,3,0),COLOR0000E9;
STICKLINE(买线>=卖线,C,O,2,0),COLOR0000EA;
STICKLINE(买线>=卖线,C,O,1,0),COLOR0000FF;
折线>REF(折线,1) AND 折线>REFX(折线,1)||折线<REF(折线,1) AND 折线<REFX(折线,1),SOUND('';
- 网友回复: 加的声音怎么没响啊
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容