抄底发红包红线尖入为买入提示 源码
{抄底发红包
使用方法:红线尖入为买入提示,绿线尖出落袋为安为卖出提示}
周期:=15;过滤:=8;选股1:=-26;抄底:=-40;红鸟庄家抄底王:0,COLORFF00FF,POINTDOT;VAR2:=MA(CLOSE,5);VAR3:=MA(CLOSE,10);VAR4:=MA(CLOSE,20);VAR5:=MA(CLOSE,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/(4);VAR7:=((VAR6-REF(VAR6,周期))/(REF(VAR6,周期)))*(100);VAR8:=((VAR6-REF(VAR6,周期))/(REF(VAR6,周期)))*(100);VAR9:=EMA(VAR7,过滤);红包:IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),10,(-5)),COLORRED;{"未来函数红线";}{"反转柱";}STICKLINE(VAR9>1*REF(VAR9, 1), VAR7, 0, 5/3, 0), COLORWHITE;{"持股红柱";}STICKLINE(VAR7>1*REF(VAR7, 1),VAR7,VAR9,5/3,0),COLORRED;{"持币绿柱";}STICKLINE(VAR7<1*REF(VAR7, 1), VAR7, VAR9, 5/3, 1), COLORGREEN;{"洗盘柱";}STICKLINE(VAR7<1*REF(VAR7, 1) AND VAR9>1*REF(VAR9, 1), VAR7, VAR9, 8/3, 0), COLORYELLOW;VAR10:=((CLOSE-MA(CLOSE,58))/(MA(CLOSE,58)))*(100);VAR11:=((VAR10>(1)*(REF(VAR10,1))) AND (VAR10<选股1) AND (VAR10>抄底))*(1.5);VAR12:=((VOL)/(CAPITAL))*(100);VAR13:=LLVBARS(LOW,50);VAR14:=SUM(VOL,VAR13);VAR15:=HHVBARS(HIGH,50);VAR16:=SUM(VOL,VAR15);VAR17:=((CLOSE-REF(OPEN,VAR15))/(REF(OPEN,VAR15)))*(100);VAR18:=((VAR16)/(CAPITAL))*(100);VAR19:=((CLOSE-REF(OPEN,VAR13))/(REF(OPEN,VAR13)))*(100);VAR20:=((VAR14)/(CAPITAL))*(100);VAR21:=MA(CLOSE,3);VAR22:=(REF(CLOSE,2))*(0.86500001);VAR23:=(REF(CLOSE,13))*(0.77200001);VAR24:=MIN(VAR22,VAR23);VAR25:=MA(CLOSE,13);抄底王:(IF(((CLOSE-VAR24)/(CLOSE)<0.02999999) AND (VAR17<(-35)) AND((SUM(VAR12,5))/(5)<1.8),1,0))*(10),COLORFFFFFF;DRAWTEXT(抄底王, 抄底王, ' 成功率90追 '), COLORFFAA00;{"写成功率90追";}VAR26:=((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100);VAR27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100);VAR28:=EMA(VAR27,9);VAR29:=(2)*(VAR27-VAR28);DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27<VAR28, (-10), '底'), COLORWHITE;{"写底";}DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27>=VAR28, 5, '追'), COLORWHITE;{"写追";}STICKLINE(VAR27<(-50) AND VAR26>7, 0,(-10), 5/3, 0), COLORFFFF66;{"底柱";}尖入:ZIG(3,10)>REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),COLORRED,LINETHICK2;尖出:ZIG(3,10)<REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),COLORGREEN,LINETHICK2;DRAWTEXT(尖入=1,10,'▲ 抄底发红包'),COLORRED;DRAWTEXT(尖出=1,8,' ▼ 落袋为安'),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{抄底发红包使用方法:红线尖入为买入提示,绿线尖出落袋为安为卖出提示}周期赋值:15
过滤赋值:8
选股1赋值:-26
抄底赋值:-40
红鸟庄家抄底王:0,COLORFF00FF,POINTDOT
VAR2赋值:收盘价的5日简单移动平均
VAR3赋值:收盘价的10日简单移动平均
VAR4赋值:收盘价的20日简单移动平均
VAR5赋值:收盘价的30日简单移动平均
VAR6赋值:(VAR2+VAR3+VAR4+VAR5)/(4)
VAR7赋值:((VAR6-周期日前的VAR6)/(周期日前的VAR6))*(100)
VAR8赋值:((VAR6-周期日前的VAR6)/(周期日前的VAR6))*(100)
VAR9赋值:VAR7的过滤日指数移动平均
输出红包:IF((TROUGHBARS(3,15,1)=0) AND (最高价>最低价+0.01),10,(-5)),画红色
{"未来函数红线"
}{"反转柱"
}STICKLINE(VAR9>1* 1日前的VAR9, VAR7, 0, 5/3, 0), 画白色
{"持股红柱"
}STICKLINE(VAR7>1* 1日前的VAR7,VAR7,VAR9,5/3,0),画红色
{"持币绿柱"
}STICKLINE(VAR7<1* 1日前的VAR7, VAR7, VAR9, 5/3, 1), 画绿色
{"洗盘柱"
}STICKLINE(VAR7<1* 1日前的VAR7 AND VAR9>1* 1日前的VAR9, VAR7, VAR9, 8/3, 0), 画黄色
VAR10赋值:((收盘价-收盘价的58日简单移动平均)/(收盘价的58日简单移动平均))*(100)
VAR11赋值:((VAR10>(1)*(1日前的VAR10)) AND (VAR10<选股1) AND (VAR10>抄底))*(1.5)
VAR12赋值:((成交量)/(当前流通股本))*(100)
VAR13赋值:LLVBARS(最低价,50)
VAR14赋值:VAR13的成交量日累和
VAR15赋值:HHVBARS(最高价,50)
VAR16赋值:VAR15的成交量日累和
VAR17赋值:((收盘价-VAR15日前的开盘价)/(VAR15日前的开盘价))*(100)
VAR18赋值:((VAR16)/(当前流通股本))*(100)
VAR19赋值:((收盘价-VAR13日前的开盘价)/(VAR13日前的开盘价))*(100)
VAR20:=((VAR14)/(当前流通股本))*(100)
VAR21:=收盘价的3日简单移动平均
VAR22:=(2日前的收盘价)*(0.86500001)
VAR23:=(13日前的收盘价)*(0.77200001)
VAR24:=VAR22和VAR23的较小值
VAR25:=收盘价的13日简单移动平均
抄底王:(IF(((收盘价-VAR24)/(收盘价)<0.02999999) AND (VAR17<(-35)) AND((5的VAR12日累和)/(5)<1.8),1,0))*(10),COLORFFFFFF
当满足条件抄底王时,在 抄底王和 ' 成功率90追 '位置书写文字
{"写成功率90追"
}VAR26:=((收盘价-1日前的收盘价)/(1日前的收盘价))*(100)
VAR27:=(收盘价的12日指数移动平均-收盘价的26日指数移动平均)*(100)
VAR28:=VAR27的9日指数移动平均
VAR29:=(2)*(VAR27-VAR28)
DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27{"写底"
}DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27>=VAR28, 5, '追'), 画白色
{"写追"
}STICKLINE(VAR27<(-50) AND VAR26>7, 0,(-10), 5/3, 0), COLORFFFF66
{"底柱"
输出}尖入:ZIG(3,10)>REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)[输出尖出:ZIG(3,10)][REF(ZIG(3,10),2),画绿色, 线宽为2]
当满足条件尖入=1时,在10和'▲ 抄底发红包'位置书写文字
当满足条件尖出=1时,在8和' ▼ 落袋为安'位置书写文字