【极品高胜率】淘金之精准优化及《山谷掘金》副图 结合淘金买在山谷!源码 无未来
{山谷掘金信号副图源码如下}
YU1:=REF(LOW,1);
YU2:=SMA(ABS(L-YU1),3,1)/SMA(MAX(LOW-YU1,0),3,1)*100;
YU3:=EMA(IF(CLOSE*1.3,YU2*10,YU2/10),3);
YU4:=LLV(L,30);
YU5:=HHV(YU3,30);
YU6:=IF(MA(C,58),1,0);
YU7:=EMA(IF(LOW<=YU4,(YU3+YU5*2)/2,0),3)/618*YU6;
YU8:=IF(YU7>100,100,YU7);
YU9:=IF(YU7>11,1,0);
YU10:=COUNT(YU9,11)>=3;
YU11:=REF(C,1);
YU12:=((SMA(MAX((C - YU11),0),5,1) / SMA(ABS((CLOSE - YU11)),5,1)) * 100);
YU13:=(H - REF(HIGH,1));
YU14:=(REF(L,1) - L);
YU15:=SUM(IF(((YU13 > 0) AND (YU13 > YU14)),YU13,0),10);
YU16:=SUM(IF(((YU14 > 0) AND (YU14 > YU13)),YU14,0),10);
YU17:=((YU15 * 100) / TR);
YU18:=((YU16 * 100) / TR);
YU19:=MA(((ABS((YU18 - YU17)) / (YU18 + YU17)) * 100),5);
YU20:=(YU12 + YU19);
YU21:=((100 * (HHV(H,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
YU22:=(YU12 - YU21);
YU23:=LLV(YU20 + YU22,1),COLORFFFFFF;
XG:CROSS(YU23,20) AND YU10 ,COLORFF00FF;
{山谷掘金副图源码如下}
{------------------山谷掘金-宇-------------------}
YU1:=REF(CLOSE,1);
YU2:=SMA(MAX(CLOSE-YU1,0),21,1)/SMA(ABS(CLOSE-YU1),21,1)*1000;
YU3:=YU2-LLV(YU2,27);
YU4:=LLV(YU2,27)-YU2;
YU5:=(MA(YU3,2)*3+YU3*13)/16,COLORFF00FF,LINETHICK1;
YU6:=(MA(YU4,2)*3+YU4*13)/16,COLORFF00FF,LINETHICK1;
YU7:=MA(YU3,5),LINETHICK1,COLORRED;
YU8:=MA(YU4,5),LINETHICK1,COLORRED;
YU9:=IF(YU5<YU7 ,YU6,YU8),LINETHICK1, COLORCYAN;
YU10:=IF(YU6<YU8 ,YU7,YU5),COLORFFFFCC,LINETHICK1;
YU11:0,COLOR00FFFF;
YU12:IF(YU10-YU9<5.6,200,0),COLORRED;{红峰}
YU13:=REF(CLOSE,1);
YU14:=((SMA(MAX((CLOSE - YU13),0),5,1) / SMA(ABS((CLOSE - YU13)),5,1)) * 100);
YU15:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
YU16:=(HIGH - REF(HIGH,1));
YU17:=(REF(LOW,1) - LOW);
YU18:=SUM(IF(((YU16 > 0) AND (YU16 > YU17)),YU16,0),10);
YU19:=SUM(IF(((YU17 > 0) AND (YU17 > YU16)),YU17,0),10);
YU20:=((YU18 * 100) / TR);
YU21:=((YU19 * 100) / TR);
YU22:=MA(((ABS((YU21 - YU20)) / (YU21 + YU20)) * 100),5);
YU23:=(YU14 + YU22);
YU24:=(((YU22 + REF(YU22,5)) / 2) + YU14);
YU25:0,COLORFF00FF;
YU26:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
YU27:=(YU14 - YU26);
YU28:=(YU23 + YU27);
DRAWBAND(YU28,RGB(80,00,255),0,RGB(255,215,0));
DRAWBAND(YU28,RGB(78,98,90),20,RGB(255,195,0));
YU29:LLV(YU28,1),COLORFFFFFF;
YU25线:20,NODRAW;
DRAWICON(CROSS(YU29,YU25线),1,1){红箭};
风险:CROSS(82,RSI),NODRAW;
绿柱:STICKLINE(风险,YU29*1.1,YU29,2,0),COLOR00FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{山谷掘金信号副图源码如下}YU1赋值:1日前的最低价
YU2赋值:SMA(L-YU1的绝对值,3,1)/SMA(最低价-YU1和0较大值,3,1)*100
如果收盘价*1.3返回YU2*10否则返回YU2/10
YU4赋值:30日内L最低值
YU5赋值:30日内YU3最高值
YU6赋值:IF(C的58日简单移动平均,1,0)
YU7赋值:EMA(IF(最低价<=YU4,(YU3+YU5*2)/2,0),3)/618*YU6
如果YU7>100返回100否则返回YU7
如果YU7>11返回1否则返回0
YU10赋值:统计11日满足YU9的天数>=3
YU11赋值:1日前的C
YU12赋值:((SMA(MAX((C - YU11),0),5,1) / SMA((收盘价 - YU11的绝对值),5,1)) * 100)
YU13赋值:(H - 1日前的最高价)
YU14赋值:(1日前的L - L)
YU15赋值:SUM(IF(((YU13 > 0) AND (YU13 > YU14)),YU13,0),10)
YU16赋值:SUM(IF(((YU14 > 0) AND (YU14 > YU13)),YU14,0),10)
YU17赋值:((YU15 * 100) / TR)
YU18赋值:((YU16 * 100) / TR)
YU19赋值:MA((((YU18 - YU17的绝对值) / (YU18 + YU17)) * 100),5)
YU20:=(YU12 + YU19)
YU21:=((100 * (10日内H最高值 - 收盘价)) / (10日内最高价最高值 - 10日内最低价最低值))
YU22:=(YU12 - YU21)
YU23:=1日内YU20 + YU22最低值,COLORFFFFFF
输出XG:YU23上穿20 AND YU10 ,COLORFF00FF
{山谷掘金副图源码如下}{------------------山谷掘金-宇-------------------}YU1赋值:1日前的收盘价
YU2赋值:SMA(收盘价-YU1和0较大值,21,1)/SMA(收盘价-YU1的绝对值,21,1)*1000
YU3赋值:YU2-27日内YU2最低值
YU4赋值:27日内YU2最低值-YU2
YU5赋值:(YU3的2日简单移动平均*3+YU3*13)/16,COLORFF00FF,LINETHICK1
YU6赋值:(YU4的2日简单移动平均*3+YU4*13)/16,COLORFF00FF,LINETHICK1
YU7赋值:YU3的5日简单移动平均,LINETHICK1,画红色
YU8赋值:YU4的5日简单移动平均,LINETHICK1,画红色
如果YU5如果YU6输出YU11:0,COLOR00FFFF
如果YU10-YU9<5.6返回200否则返回0
{红峰}YU13赋值:1日前的收盘价
YU14赋值:((SMA(MAX((收盘价 - YU13),0),5,1) / SMA((收盘价 - YU13的绝对值),5,1)) * 100)
YU15赋值:SUM(MAX(MAX((最高价 - 最低价),(最高价 - 1日前的收盘价的绝对值)),ABS((最低价 - 1日前的收盘价))),10)
YU16赋值:(最高价 - 1日前的最高价)
YU17赋值:(1日前的最低价 - 最低价)
YU18赋值:SUM(IF(((YU16 > 0) AND (YU16 > YU17)),YU16,0),10)
YU19赋值:SUM(IF(((YU17 > 0) AND (YU17 > YU16)),YU17,0),10)
YU20:=((YU18 * 100) / TR)
YU21:=((YU19 * 100) / TR)
YU22:=MA((((YU21 - YU20的绝对值) / (YU21 + YU20)) * 100),5)
YU23:=(YU14 + YU22)
YU24:=(((YU22 + 5日前的YU22) / 2) + YU14)
YU25:0,COLORFF00FF
YU26:=((100 * (10日内最高价最高值 - 收盘价)) / (10日内最高价最高值 - 10日内最低价最低值))
YU27:=(YU14 - YU26)
YU28:=(YU23 + YU27)
DRAWBAND(YU28,RGB(80,00,255),0,RGB(255,215,0))
DRAWBAND(YU28,RGB(78,98,90),20,RGB(255,195,0))
YU29:1日内YU28最低值,COLORFFFFFF
YU25线:20,NODRAW
DRAWICON(YU29上穿YU25线,1,1){红箭}
输出风险:82上穿RSI,NODRAW
当满足条件风险时,在YU29*1.1和YU29之间画柱状线