买卖天机副图公式通达信公式 副图 源码附图
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00FFFF;
见底信号: 1;
买入时机: IF(CROSS(趋势线,见底信号),100,0),COLORRED,LINETHICK2;
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,4,0 ),COLOR00FFFF;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,4,0),COLOR00FFFF;
极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK2,COLORRED;
DRAWICON(极品底=100,100,1),LINETHICK0,COLORRED;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
{股票指标网}
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'低进'),COLORFFFF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,25,'▲'),COLORRED;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,20,'▲'),COLORRED;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,17,'↑'),COLORRED;
散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,90.5,'高出'),COLOR00FF00;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,80,'●'),COLOR00FF00;
高出:100*(CROSS(庄家,散户) AND 散户>70),COLOR00FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
输出趋势线: 3*SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1)-2*SMA(SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1),3,1),COLOR00FFFF
输出见底信号: 1
输出买入时机: IF(趋势线上穿见底信号,100,0),COLORRED,LINETHICK2
如果最低价<=VAR4返回VAR3否则返回0
STICKLINE(VAR5>1日前的VAR5,0,VAR5,4,0 ),COLOR00FFFF
STICKLINE(VAR5<1日前的VAR5,0,VAR5,4,0),COLOR00FFFF
输出极品底:IF((C的5日简单移动平均-C)/C>0.04 AND (C的10日简单移动平均-C的5日简单移动平均)/C的5日简单移动平均>0.04,100,0),LINETHICK2,COLORRED
当满足条件极品底=100时,在100和1之间画图标
RSV赋值:(((收盘价 - 9日内最低价最低值) / (9日内最高价最高值 - 9日内最低价最低值)) * 100)
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
X赋值:2日内J最低值=8日内J最低值
{股票指标网}
DRAWTEXT(CROSS(J,1日前的J+0.01) AND X AND J<19,10,'低进'),COLORFFFF00
DRAWTEXT(CROSS(J,1日前的J+0.01) AND X AND J<19,25,'▲'),COLORRED
DRAWTEXT(CROSS(J,1日前的J+0.01) AND X AND J<19,20,'▲'),COLORRED
DRAWTEXT(CROSS(J,1日前的J+0.01) AND X AND J<19,17,'↑'),COLORRED
散户赋值: EMA(((2*收盘价+最高价+最低价)/4-5日内最低价最低值)/(4日内最高价最高值-5日内最低价最低值)*100,4)
庄家赋值: E0.667*1日前的散户+0.333*散户的2日简单移动平均
DRAWTEXT(庄家上穿散户 AND 散户>70,90.5,'高出'),COLOR00FF00
DRAWTEXT(庄家上穿散户 AND 散户>70,80,'●'),COLOR00FF00
输出高出:100*(庄家上穿散户 AND 散户>70),COLOR00FF00