FI:
JDZS2:EMA(VOL*(C-REF(C,1)),2);
JDZS13:EMA(VOL*(C-REF(C,1)),13);
ema(trin,n);
http://www.58188.com/gpgs/news/2012/10-25/19234.html
http://chuansong.me/n/918816
改写的威廉指标:
WR1:100-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));
WR2:100-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
杀跌线:20,COLORGREEN,COLORRED;
多空线: 50,COLORGREEN,COLORBLUE;
疯狂线: 80,COLORGREEN,COLORGREEN;
S_MACD
=====================================================
P:=26;S:=12;M:=9;
DIFF:EMA(C,S) - EMA(C,P);
DEA:EMA(DIFF,M);
MACDB:2*(DIFF-DEA),COLORSTICK;
BV:=SUM(MACDB,0);
BA:=IF(MAX(BV,REF(BV,2))REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMACD:=BV-REF(BV,BC);
VAR3:=IF(MACDB>0,HHV(ABS(MACDB),BC),LLV(MACDB,BC));
VAR4:=(MACDB)/20;{图形比例缩小1/20,可修改}
面积:SMACD,NODRAW;
DRAWNUMBER(REF(VAR4,1)>0 AND VAR4<=0 ,REF(VAR3,1),REF(面积,1)),COLORGREEN;
DRAWNUMBER(REF(VAR4,1)<0 AND VAR4>=0 ,REF(VAR3,1),REF(ABS(面积),1)),COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND VAR4<0,REF(VAR3,1),ABS(面积)),COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND VAR4>0,REF(VAR3,1),面积),COLORGREEN;
=====================================================
atff
=====================================================
均线1:=MA(CLOSE,5);
均线2:=MA(CLOSE,13);
均线差:均线1-均线2,COLORSTICK;
STICKLINE(((均线差0)),0,均线差,1,0),COLOR00cfff,LINETHICK2;
STICKLINE(((均线差>REF(均线差,1)) AND (均线差<0)),0,均线差,1,0),COLORFF00FF,LINETHICK2;
穿越:=BARSLAST(Cross(均线1,均线2) Or Cross(均线2,均线1));
平均趋势力度:Sum(均线差,穿越)/穿越;
=====================================================
atff2
=====================================================
MA5:=MA(C,M1);
MA10:=MA(C,M2);
均线差:MA5-MA10,COLORSTICK,COLORWHITE;
操盘:STICKLINE(2*(均线差)>=0 AND 2*(均线差)>=REF(2*(均线差),1),0,2*(均线差),2,0),COLORRED;
反弹:STICKLINE(2*(均线差)<0 AND 2*(均线差)>=REF(2*(均线差),1),0,2*(均线差),2,0),COLORYELLOW,LINETHICK1;
减仓:STICKLINE(2*(均线差)>=0 AND 2*(均线差)< REF(2*(均线差),1),0,2*(均线差),2,0),COLORFF9900,LINETHICK1;
寻底:STICKLINE(2*(均线差)<0 AND 2*(均线差)< REF(2*(均线差),1),0,2*(均线差),2,0),COLORGREEN,LINETHICK1;
JC:=MA10-MA5;
绿柱面积:IF (均线差<0,SUM(均线差*0.1,BARSLAST(JC<0)),0),LINETHICK0,COLORWHITE;
红柱面积:IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0),LINETHICK0,COLORWHITE;
A1:=IF(均线差>0,1,-1);
A2:=REF(A1,1);
A3:=A1*A2;
A4:=BARSLAST(A3<0);
A5:=A4+1;
趋势平均力度:(SUM(均线差,0)-REF(SUM(均线差,0),A5))/A5,LINETHICK0;
时间:(A4+1)/100,LINETHICK0;
=====================================================
新高新低
第一步,建立过度公式
新高家数:CLOSE = HHV( CLOSE, N);
第三步,建立新公式
新高家数总和:SELFDATA('新高家数');
这个公式的意思是引用自定义数据中的新高家数。
公式:
新高:c=hhv(c,250),linethick0;
新低:c=llv(c,250),linethick0;
总家数:dynainfo(7)>0;
差数:=selfdata('新高数')-selfdata('新低数');
差:差数/selfdata('总家数'),colorstick;
drawtextabs(600,10,'新高数:'+selfdata('新高数')),coloryellow;
drawtextabs(600,30,'新低数:'+selfdata('新低数')),colorcyan;
0,colorwhite;
=====================================================
拉里 威廉姆斯 mobv
B1:=IF(REF(C,1)>H,0,H-REF(C,1));
B2:=C-L;
JB:=B1+B2;
S1:=IF(REF(C,1)
JJS:=S1+S2;
买进率:JB/(JB+JJS);
OBVO:买进率*V;
Z1:=H-L;Z2:=C-O;Z3:=Z2/Z1;
Z4:Z3*V,COLORSTICK;
Z5:=SUM(INDEXADV-INDEXDEC,0);
Z6:Z4+REF(Z5,1);
Z7:DRAWICON((L+C+H)/3=LLV((H+L+C)/3,20) AND Z6>LLV(Z6,20),-200,1);
XG:DRAWICON((L+C+H)/3=LLV((H+L+C)/3,20) AND Z6>LLV(Z6,20) AND 买进率>=0.40,-10000,11);
=====================================================
https://www.taoguba.com.cn/Article/1242093/1
价值选:
PEG:= (C/FINANCE(33))/(FINANCE(21)/FINANCE(20)+0.038)/100;{P/EG:市盈成长率指标:衡量投资的安全边际 <1}
ROE:= FINANCE(30)/FINANCE(19)*100;{资金利用率也不能太低:巴菲特 的看法是需要15以上,但中国的股票不可理喻}
毛利:= FINANCE(21)/FINANCE(20)*100;{毛利太小的股票,我的看法经营已经偏离投资价值}
股值:= FINANCE(34)+FINANCE(18)+FINANCE(32);{股值=每股净资产+每股资本公积金+每股未分配利润}
盘力:= FINANCE(7)/100000000*CLOSE;{盘力:我的看法是主力操盘的资金,不能单看流通盘应该结合股价}
XG2: PEG<1 AND ROE>5 AND 毛利>10 AND 股值>1 AND 盘力<250;
=====================================================