【空中加油再续】航红色未来涨得慌
{空中加油再续}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);上堆小缩头卖:(DIF-DEA)*2,COLORSTICK,COLOR0000EE;空中加油再续航:上堆小缩头卖,COLOR00FF00,NODRAW;gspt1:=空中加油再续航;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,3,0),COLOR0000AA;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,2.3,0),COLOR0000BB;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,1.6,0),COLOR0000CC;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,0.9,0),COLOR0000DD;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,0.2,0),COLOR0000EE;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1<0)),0,gspt1,3,0),COLOR00AAAA;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1<0)),0,gspt1,2.3,0),COLOR00BBBB;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1<0)),0,gspt1,1.6,0),COLOR00CCCC;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1<0)),0,gspt1,0.9,0),COLOR00DDDD;STICKLINE(((gspt1>=REF(gspt1,1)) AND (gspt1<0)),0,gspt1,0.2,0),COLOR00EEEE;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,3,0),COLOR00AA00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,2.3,0),COLOR00BB00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,1.6,0),COLOR00CC00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,0.9,0),COLOR00DD00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1>=0)),0,gspt1,0.2,0),COLOR00EE00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1<0)),0,gspt1,3,0),COLORAAAA00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1<0)),0,gspt1,2.3,0),COLORBBBB00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1<0)),0,gspt1,1.6,0),COLORCCCC00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1<0)),0,gspt1,0.9,0),COLORDDDD00;STICKLINE(((gspt1<REF(gspt1,1)) AND (gspt1<0)),0,gspt1,0.2,0),COLOREEEE00;{以下部分为:红色未来涨得慌}VARF:=TROUGHBARS(3,15,1)<4;多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),LINETHICK1,COLORWHITE;STICKLINE(FILTER(VARF=1,5) AND 多空<-10,gspt1,0,3.2,1),COLOR00FFFF;STICKLINE(FILTER(VARF=1,5),gspt1,0,3,0),COLORAA00AA;STICKLINE(FILTER(VARF=1,5),gspt1,0,2.3,0),COLORBB00BB;STICKLINE(FILTER(VARF=1,5),gspt1,0,1.6,0),COLORCC00CC;STICKLINE(FILTER(VARF=1,5),gspt1,0,0.9,0),COLORDD00DD;STICKLINE(FILTER(VARF=1,5),gspt1,0,0.2,0),COLOREE00EE;红色未来涨得慌:FILTER(VARF=1,3) OR CROSS(多空,0) OR CROSS(多空,10),COLORFF00FF,NODRAW;
未来函数检测结果如下:
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{空中加油再续}DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
输出上堆小缩头卖:(DIF-DEA)*2,COLORSTICK,COLOR0000EE
输出空中加油再续航:上堆小缩头卖,COLOR00FF00,NODRAW
GSPT1赋值:空中加油再续航
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,3,0),COLOR0000AA
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,2.3,0),COLOR0000BB
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,1.6,0),COLOR0000CC
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,0.9,0),COLOR0000DD
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,0.2,0),COLOR0000EE
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,3,0),COLOR00AAAA
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,2.3,0),COLOR00BBBB
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,1.6,0),COLOR00CCCC
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,0.9,0),COLOR00DDDD
STICKLINE(((GSPT1>=1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,0.2,0),COLOR00EEEE
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,3,0),COLOR00AA00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,2.3,0),COLOR00BB00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,1.6,0),COLOR00CC00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,0.9,0),COLOR00DD00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1>=0)),0,GSPT1,0.2,0),COLOR00EE00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,3,0),COLORAAAA00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,2.3,0),COLORBBBB00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,1.6,0),COLORCCCC00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,0.9,0),COLORDDDD00
STICKLINE(((GSPT1<1日前的GSPT1) AND (GSPT1<0)),0,GSPT1,0.2,0),COLOREEEE00
{以下部分为:红色未来涨得慌}VARF赋值:TROUGHBARS(3,15,1)<4
多空赋值:EMA((收盘价-MA((2*收盘价+最高价+最低价)/4,30))/MA((2*收盘价+最高价+最低价)/4,30)*100,3),LINETHICK1,画白色
STICKLINE(VARF=1的5过滤 AND 多空<-10,GSPT1,0,3.2,1),COLOR00FFFF
STICKLINE(VARF=1的5过滤,GSPT1,0,3,0),COLORAA00AA
STICKLINE(VARF=1的5过滤,GSPT1,0,2.3,0),COLORBB00BB
STICKLINE(VARF=1的5过滤,GSPT1,0,1.6,0),COLORCC00CC
STICKLINE(VARF=1的5过滤,GSPT1,0,0.9,0),COLORDD00DD
STICKLINE(VARF=1的5过滤,GSPT1,0,0.2,0),COLOREE00EE
输出红色未来涨得慌:VARF=1的3过滤 OR 多空上穿0 OR 多空上穿10,COLORFF00FF,NODRAW