9qihuo.com
我们只提供有用的干货

老师指标修改下填充指标 (文华财经)

投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
//2天内大量高低线后段
A:="HOUR$1$VOL";//1-4小时
K2:=SUMBARS(A<>REF(A,1),5);//1-4小时
VV2:="HOUR$1$V";//小时
HH2:="HOUR$1$H";//小时
LL2:="HOUR$1$L";//小时
OO2:="HOUR$1$O";//小时
CC2:="HOUR$1$C";//小时

//K2:=SUMBARS(DAYBARPOS=1,5);//10日
//VV2:="DAY$1$V";//日
//HH2:="DAY$1$H";//日
//LL2:="DAY$1$L";//日
//OO2:="DAY$1$O";//日
//CC2:="DAY$1$C";//日

//K2:=SUMBARS(WEEKDAY<REF(WEEKDAY,1),2);//5周
//VV2:="WEEK$1$V";
//HH2:="WEEK$1$H";
//LL2:="WEEK$1$L";
//OO2:="WEEK$1$O";
//CC2:="WEEK$1$C";
STICKLINE1(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),4,0),RGB(255,202,202);//红色填充
STICKLINE1(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2) ,4,0),RGB(134,255,165);//绿色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//红色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//绿色 填充

//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORRED),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORRED),LINETHICK7;//线显示

DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWKLINE1(H,O,L,C);//K线显示*/老师指标填充颜色条件改下,原来是收阳线下个交易日红色填充,收阴线绿色填充,现在改成收盘价收在前一个填充区域高点上方红色填充,收在低点下方绿色填充谢谢老师! 

投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
还有如果收在前一个填充区域高低点之间就延续前面的填充颜色谢谢!
技术人员回复
日期:2020-9-12 11:34

如果一直没有满足 收盘价收在前一个填充区域高点上方或者收在低点下方 这两个条件怎么处理?
投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
就延续前面的填充颜色谢谢!
技术人员回复
日期:2020-9-12 20:02
 
如果软件所有的K线都不满足上面两个条件,怎么处理?

还填充吗?如果要填充 ,设置什么颜色?
 
投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
老师延续前面的颜色谢谢!
技术人员回复
日期:2020-9-13 9:35
 参考:

A:="HOUR$1$VOL";//1-4小时
K2:=SUMBARS(A<>REF(A,1),5);//1-4小时
VV2:="HOUR$1$V";//小时
HH2:="HOUR$1$H";//小时
LL2:="HOUR$1$L";//小时
OO2:="HOUR$1$O";//小时
CC2:="HOUR$1$C";//小时
//K2:=SUMBARS(DAYBARPOS=1,5);//10日
//VV2:="DAY$1$V";//日
//HH2:="DAY$1$H";//日
//LL2:="DAY$1$L";//日
//OO2:="DAY$1$O";//日
//CC2:="DAY$1$C";//日

//K2:=SUMBARS(WEEKDAY<REF(WEEKDAY,1),2);//5周
//VV2:="WEEK$1$V";
//HH2:="WEEK$1$H";
//LL2:="WEEK$1$L";
//OO2:="WEEK$1$O";
//CC2:="WEEK$1$C";
AA:=C>VALUEWHEN(VV2=HHV(VV2,K2),HH2);
BB:=C<VALUEWHEN(VV2=HHV(VV2,K2),LL2);
STICKLINE1(VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),4,0),RGB(255,202,202);//红色填充
STICKLINE1(VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2) ,4,0),RGB(134,255,165);//绿色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//红色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//绿色 填充

//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORRED),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORRED),LINETHICK7;//线显示

DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(VV2=HHV(VV2,K2),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWKLINE1(H,O,L,C);
投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
老师颜色显示的不对,可能是我没有表达的清楚,指标中的填充是5小时或者是5日间的最大量这根K线的高低用颜色填充,现在的颜色填充条件是当出现大量填充条件这根K线的收盘价针对上一根填充条件那根k的高低点决定,收在高点上用红色填充,收在低点下用绿色填充,收在高低点之间延续前面的填充颜色谢谢老师!
技术人员回复
日期:2020-9-13 16:00
是在1小时的第一根K线的收盘价和上一小时的最大成交量的那根K线比较?

这样再看下

A:="HOUR$1$VOL";//1-4小时
K2:=SUMBARS(A<>REF(A,1),5);//1-4小时
VV2:="HOUR$1$V";//小时
HH2:="HOUR$1$H";//小时
LL2:="HOUR$1$L";//小时
OO2:="HOUR$1$O";//小时
CC2:="HOUR$1$C";//小时
//K2:=SUMBARS(DAYBARPOS=1,5);//10日
//VV2:="DAY$1$V";//日
//HH2:="DAY$1$H";//日
//LL2:="DAY$1$L";//日
//OO2:="DAY$1$O";//日
//CC2:="DAY$1$C";//日

//K2:=SUMBARS(WEEKDAY<REF(WEEKDAY,1),2);//5周
//VV2:="WEEK$1$V";
//HH2:="WEEK$1$H";
//LL2:="WEEK$1$L";
//OO2:="WEEK$1$O";
//CC2:="WEEK$1$C";
AA:=C>VALUEWHEN(VV2=HHV(VV2,K2),HH2);
BB:=C<VALUEWHEN(VV2=HHV(VV2,K2),LL2);

STICKLINE1(VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),4,0),RGB(255,202,202);//红色填充
STICKLINE1(VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2) ,4,0),RGB(134,255,165);//绿色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//红色填充
STICKLINE1(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),30,0),RGB(170,170,170);//绿色 填充

//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2<OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORGREEN),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,1,0,COLORRED),LINETHICK7;//线显示
//DRAWSL(VALUEWHEN(VV2=HHV(VV2,K2),CC2>=OO2),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,1,0,COLORRED),LINETHICK7;//线显示

DRAWSL(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)>BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORLIGHTGREEN),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),HH2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWSL(ISLASTBAR&&VALUEWHEN(CROSS(VV2=HHV(VV2,K2),0.5),BARSLAST(AA)<BARSLAST(BB)),VALUEWHEN(VV2=HHV(VV2,K2),LL2),0,5,0,COLORRED),LINETHICK5;//后段
DRAWKLINE1(H,O,L,C);

投资者咨询:老师指标修改下填充指标 (文华财经)
来源:文华财经  日期:2020-9-12 11:23
老师基本上都对了,但是有些又显示的不对,麻烦老师再看看谢谢!