NOTEXT1:FORCAST(EMA((3*C+2*O+H+L)/7,3),8),LINETHICK2,COLORRED;
VAR1:=NOTEXT1>=REF(NOTEXT1,1);
VAR2:=NOTEXT1<REF(NOTEXT1,1);
NOTEXT2:IF(NOTEXT1<REF(NOTEXT1,1),NOTEXT1,DRAWNULL),LINETHICK2,COLORGREEN;
VAR3:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;
VAR4:=SMA(VAR3,4,1);
VAR5:=SMA(VAR4,3,1);
VAR6:=C>=OPEN AND CROSS(VAR4,VAR5) AND VAR5<=50;
VAR7:=REF(C,1);
VAR8:=EMA(C,12)-EMA(C,26);
VAR9:=EMA(VAR8,3);
VAR10:=(C-REF(C,1))/REF(C,1)*100;
VAR18:=SMA(MAX(C-VAR7,0),9,1)/SMA(ABS(C-VAR7),9,1)*100;
VAR19:=(VAR8>VAR9 OR VAR8=VAR9) AND VAR10>9 AND VAR10<11 AND 40<VAR18 AND VAR18<60 AND C=H;
STICKLINE(VAR1,NOTEXT1,NOTEXT1*1.01,0,0),COLORRED;
STICKLINE(VAR1,NOTEXT1,NOTEXT1*1.01,2.5,0),COLOR000099;
STICKLINE(VAR1,NOTEXT1,NOTEXT1*1.01,2,0),COLOR0000BB;
STICKLINE(VAR1,NOTEXT1,NOTEXT1*1.01,1,0),COLOR0000DD;
STICKLINE(VAR1,NOTEXT1,NOTEXT1*1.01,0.3,0),COLORRED;
STICKLINE(VAR2,NOTEXT1*0.995,NOTEXT1,0,0),COLORGREEN;
STICKLINE(VAR2,NOTEXT1*0.995,NOTEXT1,2.5,0),COLOR009900;
STICKLINE(VAR2,NOTEXT1*0.995,NOTEXT1,2,0),COLOR00BB00;
STICKLINE(VAR2,NOTEXT1*0.995,NOTEXT1,1,0),COLOR00DD00;
STICKLINE(VAR2,NOTEXT1*0.995,NOTEXT1,0.3,0),COLORGREEN;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,2.5,0),COLOR004040;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,2.3,0),COLOR006464;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,2,0),COLOR00A8A8;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,1.5,0),COLOR00DBDB;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,1,0),COLOR15FFFF;
STICKLINE(VAR1 AND VAR6,NOTEXT1,NOTEXT1*0.98,0.8,0),COLOR4DFFFF;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,2.5,0),COLOR004040;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,2.3,0),COLOR006464;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,2,0),COLOR00A8A8;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,1.5,0),COLOR00DBDB;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,1,0),COLOR15FFFF;
STICKLINE(VAR2 AND VAR6,NOTEXT1,NOTEXT1*0.98,0.8,0),COLOR4DFFFF;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,2,0),COLORCYAN;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,1.5,0),COLOR990000;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,1.8,0),COLORCC0000;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,0.3,0),COLORFF4400;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,2.5,0),COLORFF8800;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,1.5,0),COLORFFCC00;
STICKLINE(VAR19,NOTEXT1*0.98,NOTEXT1,0.8,0),COLORCYAN;
原理解析:
输出NOTEXT1:(3*收盘价+2*开盘价+最高价+最低价)/7的3日指数移动平均的8日线性回归预测值,线宽为2,画红色
VAR1赋值:NOTEXT1>=1日前的NOTEXT1
VAR2赋值:NOTEXT1<1日前的NOTEXT1
输出NOTEXT2:如果NOTEXT1<1日前的NOTEXT1,返回NOTEXT1,否则返回无效数,线宽为2,画绿色
VAR3赋值:(收盘价-13日内最低价的最低值)/(13日内最高价的最高值-13日内最低价的最低值)*100
VAR4赋值:VAR3的4日[1日权重]移动平均
VAR5赋值:VAR4的3日[1日权重]移动平均
VAR6赋值:收盘价>=开盘价 AND VAR4上穿VAR5 AND VAR5<=50
VAR7赋值:1日前的收盘价
VAR8赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR9赋值:VAR8的3日指数移动平均
VAR10赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100
VAR18赋值:收盘价-VAR7和0的较大值的9日[1日权重]移动平均/收盘价-VAR7的绝对值的9日[1日权重]移动平均*100
VAR19赋值:(VAR8>VAR9 OR VAR8=VAR9) AND VAR10>9 AND VAR10<11 AND 40<VAR18 AND VAR18<60 AND 收盘价=最高价
当满足条件VAR1时,在NOTEXT1和NOTEXT1*1.01位置之间画柱状线,宽度为0,0不为0则画空心柱.,画红色
当满足条件VAR1时,在NOTEXT1和NOTEXT1*1.01位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR000099
当满足条件VAR1时,在NOTEXT1和NOTEXT1*1.01位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR0000BB
当满足条件VAR1时,在NOTEXT1和NOTEXT1*1.01位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0000DD
当满足条件VAR1时,在NOTEXT1和NOTEXT1*1.01位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,画红色
当满足条件VAR2时,在NOTEXT1*0.995和NOTEXT1位置之间画柱状线,宽度为0,0不为0则画空心柱.,画绿色
当满足条件VAR2时,在NOTEXT1*0.995和NOTEXT1位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR009900
当满足条件VAR2时,在NOTEXT1*0.995和NOTEXT1位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00BB00
当满足条件VAR2时,在NOTEXT1*0.995和NOTEXT1位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR00DD00
当满足条件VAR2时,在NOTEXT1*0.995和NOTEXT1位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,画绿色
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR004040
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2.3,0不为0则画空心柱.,COLOR006464
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00A8A8
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR00DBDB
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR15FFFF
当满足条件VAR1ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,COLOR4DFFFF
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR004040
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2.3,0不为0则画空心柱.,COLOR006464
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00A8A8
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR00DBDB
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR15FFFF
当满足条件VAR2ANDVAR6时,在NOTEXT1和NOTEXT1*0.98位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,COLOR4DFFFF
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为2,0不为0则画空心柱.,画青色
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR990000
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为1.8,0不为0则画空心柱.,COLORCC0000
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLORFF4400
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLORFF8800
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLORFFCC00
当满足条件VAR19时,在NOTEXT1*0.98和NOTEXT1位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,画青色
如有需要
,请加QQ:88652583 或微信: 88652583