通达信中线技术测评
ME2:=EMA(CLOSE,6);
五天:=EXPMA(CLOSE,5),COLORRED;
超短线:=EMA(ME2,11),COLORGREEN; LJL07:=(3*C+L+O+H)/6;
牛线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;
熊线:=MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;
持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;
{趋势}{股票指标网}
赚了:=IF(EMA(CLOSE,3)>超短线,超短线,DRAWNULL),COLORRED;
持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,COLORRED,NODRAW;
月线:=EMA(持股,30),COLORYELLOW,DOTLINE;
双月线:=EMA(持股,60),COLORCYAN,DOTLINE;
DRAWRECTREL(20,610,980,330,RGB(0,100,100)),;
DRAWRECTREL(20,980,980,700,RGB(0,100,10)),;
DRAWRECTREL(450,0,580,250,RGB(2,200,150)),;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI">"DMI.MDI") AND UPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.030,0.41,0,'DMI 火箭升空'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI"<"DMI.MDI") AND UPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.030,0.41,0,'DMI 空中炸弹'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI">"DMI.MDI"),0.230,0.41,0,'DMI 多头趋势'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI"<"DMI.MDI"),0.230,0.41,0,'DMI 空头趋势'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("KDJ.J","KDJ.K"),0.030,0.76,0,'K D J 金 叉'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("KDJ.K","KDJ.J"),0.030,0.76,0,'K D J 死 叉'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("KDJ.J">"KDJ.K"),0.230,0.76,0,'K D J 多头趋势'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("KDJ.J"<"KDJ.K"),0.230,0.76,0,'K D J 空头趋势'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF">"MACD.DEA") AND "MACD.MACD">0,0.830,0.76,0,'MACD 中线看多'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF"<"MACD.DEA") AND "MACD.MACD"<0,0.830,0.76,0,'MACD 中线看空'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF">"MACD.DEA"),0.630,0.76,0,'MACD 多头趋势'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF"<"MACD.DEA"),0.630,0.76,0,'MACD 空头趋势'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("MACD.DIF","MACD.DEA"),0.430,0.76,0,'MACD 金 叉'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("MACD.DEA","MACD.DIF"),0.430,0.76,0,'MACD 死 叉'),COLORGREEN;
上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 上涨,0.460,0.07,0,'上 涨 趋 势'),COLORRED;
短线上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
短线上涨0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
短线上涨1:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线上涨 OR 短线上涨0 OR 短线上涨1),0.460,0.07,0,'短 线 上 涨'),COLORRED;
短线回调:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线回调0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线回调 OR 短线回调0),0.460,0.07,0,'短 线 回 调'),COLORYELLOW;
短线看空:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线看空0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线空仓:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线空仓0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线空仓 OR 短线空仓0 OR 短线看空 OR 短线看空0),0.460,0.07,0,'短 线 空 仓'),COLORYELLOW;
短线震荡:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线震荡0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
短线震荡1:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
注意该股:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线震荡 OR 短线震荡0 OR 短线震荡1 OR 注意该股),0.460,0.07,0,'短 线 震 荡'),COLORYELLOW;
短线反弹:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
短线反弹0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线反弹 OR 短线反弹0),0.460,0.07,0,'短 线 反 弹'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 ,0.51,0.40,0,'====操作提示===='),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.MACD">0) AND (CROSS("MACD.DIF","MACD.DEA") OR CROSS(持股,超短线)) AND UPNDAY(超短线,1),0.65,0.01,0,'* * * 中 线 全 仓 买 入 * * *'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.MACD"<0) AND (CROSS("MACD.DEA","MACD.DIF") OR CROSS(超短线,持股)) AND DOWNNDAY(超短线,1),0.65,0.01,0,'* * * 中 线 空 仓 * * *'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1),0.75,0.40,0,'短 线 空 仓 ---打 牌'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1),0.75,0.40,0,'短 线 买 入 30 %'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND UPNDAY(持股,1),0.75,0.40,0,'短 线 买 入 60 %'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1),0.73,0.40,0,'短 线 震 荡 看 看 再 说'),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
ME2赋值:收盘价的6日指数移动平均
五天赋值:收盘价的5日指数移动平均,画红色
超短线赋值:ME2的11日指数移动平均,画绿色
LJL07赋值:(3*C+L+O+H)/6
牛线赋值:(20*LJL07+19*1日前的LJL07+18*2日前的LJL07+17*3日前的LJL07+16*4日前的LJL07+15*5日前的LJL07+14*6日前的LJL07+13*7日前的LJL07+12*8日前的LJL07+11*9日前的LJL07+10*10日前的LJL07+9*11日前的LJL07+8*12日前的LJL07+7*13日前的LJL07+6*14日前的LJL07+5*15日前的LJL07+4*16日前的LJL07+3*17日前的LJL07+2*18日前的LJL07+20日前的LJL07)/210,画红色
熊线赋值:牛线的5日简单移动平均,画黄色,LINETHICK4,POINTDOT
持股赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4,画白色
{趋势}{股票指标网}
赚了赋值:IF(收盘价的3日指数移动平均>超短线,超短线,DRAWNULL),画红色
持股角度:=ATAN((持股/1日前的持股-1)*100)*180/3.1416,画红色,NODRAW
月线赋值:持股的30日指数移动平均,画黄色,DOTLINE
双月线赋值:持股的60日指数移动平均,画青色,DOTLINE
DRAWRECTREL(20,610,980,330,RGB(0,100,100)),
DRAWRECTREL(20,980,980,700,RGB(0,100,10)),
DRAWRECTREL(450,0,580,250,RGB(2,200,150)),
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("DMI.PDI">"DMI.MDI") AND UPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.030,0.41,0,'DMI 火箭升空'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("DMI.PDI"<"DMI.MDI") AND UPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.030,0.41,0,'DMI 空中炸弹'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("DMI.PDI">"DMI.MDI"),0.230,0.41,0,'DMI 多头趋势'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("DMI.PDI"<"DMI.MDI"),0.230,0.41,0,'DMI 空头趋势'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND "KDJ.J"上穿"KDJ.K",0.030,0.76,0,'K D J 金 叉'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND "KDJ.K"上穿"KDJ.J",0.030,0.76,0,'K D J 死 叉'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("KDJ.J">"KDJ.K"),0.230,0.76,0,'K D J 多头趋势'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("KDJ.J"<"KDJ.K"),0.230,0.76,0,'K D J 空头趋势'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.DIF">"MACD.DEA") AND "MACD.MACD">0,0.830,0.76,0,'MACD 中线看多'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.DIF"<"MACD.DEA") AND "MACD.MACD"<0,0.830,0.76,0,'MACD 中线看空'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.DIF">"MACD.DEA"),0.630,0.76,0,'MACD 多头趋势'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.DIF"<"MACD.DEA"),0.630,0.76,0,'MACD 空头趋势'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND "MACD.DIF"上穿"MACD.DEA",0.430,0.76,0,'MACD 金 叉'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND "MACD.DEA"上穿"MACD.DIF",0.430,0.76,0,'MACD 死 叉'),画绿色
上涨赋值: 到最后交易的周期=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1)
当满足条件 到最后交易的周期=1 AND 上涨时,在横轴0.460纵轴0.07位置书写文字
短线上涨赋值: 到最后交易的周期=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1)
短线上涨0:= 到最后交易的周期=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1)
短线上涨1:= 到最后交易的周期=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1)
DRAWTEXT_FIX( 到最后交易的周期=1 AND (短线上涨 OR 短线上涨0 OR 短线上涨1),0.460,0.07,0,'短 线 上 涨'),画红色
短线回调赋值: 到最后交易的周期=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1)
短线回调0:= 到最后交易的周期=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1)
DRAWTEXT_FIX( 到最后交易的周期=1 AND (短线回调 OR 短线回调0),0.460,0.07,0,'短 线 回 调'),画黄色
短线看空赋值: 到最后交易的周期=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1)
短线看空0:= 到最后交易的周期=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1)
短线空仓赋值: 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1)
短线空仓0:= 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1)
DRAWTEXT_FIX( 到最后交易的周期=1 AND (短线空仓 OR 短线空仓0 OR 短线看空 OR 短线看空0),0.460,0.07,0,'短 线 空 仓'),画黄色
短线震荡赋值: 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1)
短线震荡0:= 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1)
短线震荡1:= 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1)
注意该股赋值: 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1)
DRAWTEXT_FIX( 到最后交易的周期=1 AND (短线震荡 OR 短线震荡0 OR 短线震荡1 OR 注意该股),0.460,0.07,0,'短 线 震 荡'),画黄色
短线反弹赋值: 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1)
短线反弹0:= 到最后交易的周期=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1)
DRAWTEXT_FIX( 到最后交易的周期=1 AND (短线反弹 OR 短线反弹0),0.460,0.07,0,'短 线 反 弹'),画黄色
当满足条件 到最后交易的周期=1 时,在横轴0.51纵轴0.40位置书写文字
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.MACD">0) AND ("MACD.DIF"上穿"MACD.DEA" OR 持股上穿超短线) AND UPNDAY(超短线,1),0.65,0.01,0,'* * * 中 线 全 仓 买 入 * * *'),画红色
DRAWTEXT_FIX( 到最后交易的周期=1 AND ("MACD.MACD"<0) AND ("MACD.DEA"上穿"MACD.DIF" OR 超短线上穿持股) AND DOWNNDAY(超短线,1),0.65,0.01,0,'* * * 中 线 空 仓 * * *'),画绿色
DRAWTEXT_FIX( 到最后交易的周期=1 AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1),0.75,0.40,0,'短 线 空 仓 ---打 牌'),画黄色
DRAWTEXT_FIX( 到最后交易的周期=1 AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1),0.75,0.40,0,'短 线 买 入 30 %'),画黄色
DRAWTEXT_FIX( 到最后交易的周期=1 AND UPNDAY(超短线,1) AND UPNDAY(持股,1),0.75,0.40,0,'短 线 买 入 60 %'),画黄色
DRAWTEXT_FIX( 到最后交易的周期=1 AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1),0.73,0.40,0,'短 线 震 荡 看 看 再 说'),画黄色