老师这个指标在黄金上小时正常原油上不怎么显示 [博易POBO]
咨询内容:
M:=1;
A111:=BARSTATUS=2 ;
C1:=BACKSET(A111,N);
D1:=FILTER(C1,N-1);
//STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFAAFF;
//STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000000;
A11:=(CLOSE+HIGH+LOW)/(3);
VAR11:=EMA(CLOSE,3);
VAR22:=EMA(CLOSE,8);
MA211:=EMA(CLOSE,21);
A1:=(CLOSE+HIGH+LOW)/(3);
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,8);
MA21:=EMA(CLOSE,21);
VAR19:=ZIG(C,5,1)>REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)<=REF(ZIG(C,5,1),2);
VAR1A:=ZIG(C,5,1)<REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)>=REF(ZIG(C,5,1),2);
//{青色变盘K线}
//STICKLINE(VAR1A,C,O,8,0),COLORBLACK;
//STICKLINE(VAR1A,C,O,7,0),COLORBLACK;
STICKLINE(VAR1A,C,O,6,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,5,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,4,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,3,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,0,0),COLORMAGENTA;
DRAWLINE(VAR1A,H,VAR1A,L,COLORMAGENTA);
//{粉红变盘K线}
//STICKLINE(VAR19,C,O,8,0),COLORBLACK;
//STICKLINE(VAR19,C,O,7,0),COLORBLACK;
//STICKLINE(VAR19,C,O,6,0),COLORBLACK;
STICKLINE(VAR19,C,O,5,0),COLORFF8000;
STICKLINE(VAR19,C,O,4,0),COLORFF8000;
STICKLINE(VAR19,C,O,3,0),COLORFF8000;
STICKLINE(VAR19,C,O,0,0),COLORFF8000;
DRAWLINE(VAR19,L,VAR19,H,COLORFF8000);
{跳空(跳高)缺口图示}
VR1:=100*(LOW-REF(HIGH,1))/REF(HIGH,1);
VR5:=100*(HIGH-REF(LOW,1))/REF(LOW,1);
//{缺口图示}
//STICKLINE1(VR1>0,LOW,REF(HIGH,1),4,0),COLORRED,LINETHICK6;
//STICKLINE1(VR5<0,HIGH,REF(LOW,1),4,0),COLORGREEN,LINETHICK6;
//{跳空(跳高)缺口图示}
//VR1:=100*(LOW-REF(HIGH,1))/REF(HIGH,1),COLORRED;
//VR5:=100*(HIGH-REF(LOW,1))/REF(LOW,1),COLORRED;
//{缺口图示}
STICKLINE(VR1>0,LOW,REF(HIGH,1),7,1);
STICKLINE(VR5<0,HIGH,REF(LOW,1),7,1);
//{向上跳空缺口}
N2:=BARSLAST(L>REF(H,1))+1;
CON2:=COUNT(REF(H,N2)<C,N2);
//STICKLINE(CON2&&N2>1,REF(H,N2),LLV(L,N2),10,0),COLOR540000,ALIGN1;
//{向下跳空缺口}
N1:=BARSLAST(H<REF(L,1))+1;
CON1:=COUNT(REF(L,N1)>C,N1);
//STICKLINE(CON1&&N1>1,REF(L,N1),HHV(H,N1),10,0),COLOR006000,ALIGN1;
<!-- 咨询内容:
老师这个指标在黄金上小时正常原油上不怎么显示
N:=1;M:=1;
A111:=BARSTATUS=2 ;
C1:=BACKSET(A111,N);
D1:=FILTER(C1,N-1);
//STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFAAFF;
//STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000000;
A11:=(CLOSE+HIGH+LOW)/(3);
VAR11:=EMA(CLOSE,3);
VAR22:=EMA(CLOSE,8);
MA211:=EMA(CLOSE,21);
A1:=(CLOSE+HIGH+LOW)/(3);
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,8);
MA21:=EMA(CLOSE,21);
VAR19:=ZIG(C,5,1)>REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)<=REF(ZIG(C,5,1),2);
VAR1A:=ZIG(C,5,1)<REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)>=REF(ZIG(C,5,1),2);
//{青色变盘K线}
//STICKLINE(VAR1A,C,O,8,0),COLORBLACK;
//STICKLINE(VAR1A,C,O,7,0),COLORBLACK;
STICKLINE(VAR1A,C,O,6,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,5,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,4,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,3,0),COLORMAGENTA;
STICKLINE(VAR1A,C,O,0,0),COLORMAGENTA;
DRAWLINE(VAR1A,H,VAR1A,L,COLORMAGENTA);
//{粉红变盘K线}
//STICKLINE(VAR19,C,O,8,0),COLORBLACK;
//STICKLINE(VAR19,C,O,7,0),COLORBLACK;
//STICKLINE(VAR19,C,O,6,0),COLORBLACK;
STICKLINE(VAR19,C,O,5,0),COLORFF8000;
STICKLINE(VAR19,C,O,4,0),COLORFF8000;
STICKLINE(VAR19,C,O,3,0),COLORFF8000;
STICKLINE(VAR19,C,O,0,0),COLORFF8000;
DRAWLINE(VAR19,L,VAR19,H,COLORFF8000);
{跳空(跳高)缺口图示}
VR1:=100*(LOW-REF(HIGH,1))/REF(HIGH,1);
VR5:=100*(HIGH-REF(LOW,1))/REF(LOW,1);
//{缺口图示}
//STICKLINE1(VR1>0,LOW,REF(HIGH,1),4,0),COLORRED,LINETHICK6;
//STICKLINE1(VR5<0,HIGH,REF(LOW,1),4,0),COLORGREEN,LINETHICK6;
//{跳空(跳高)缺口图示}
//VR1:=100*(LOW-REF(HIGH,1))/REF(HIGH,1),COLORRED;
//VR5:=100*(HIGH-REF(LOW,1))/REF(LOW,1),COLORRED;
//{缺口图示}
STICKLINE(VR1>0,LOW,REF(HIGH,1),7,1);
STICKLINE(VR5<0,HIGH,REF(LOW,1),7,1);
//{向上跳空缺口}
N2:=BARSLAST(L>REF(H,1))+1;
CON2:=COUNT(REF(H,N2)<C,N2);
//STICKLINE(CON2&&N2>1,REF(H,N2),LLV(L,N2),10,0),COLOR540000,ALIGN1;
//{向下跳空缺口}
N1:=BARSLAST(H<REF(L,1))+1;
CON1:=COUNT(REF(L,N1)>C,N1);
//STICKLINE(CON1&&N1>1,REF(L,N1),HHV(H,N1),10,0),COLOR006000,ALIGN1;
<!-- 咨询内容:
附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 以主图叠加方式保存 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容