1.一个通达信指标公式里面的红线一行源码,搞不懂什么意思。源码泸州ios源码大神来帮忙解答一下?
2.你好,红线微信商城项目源码刚才那个红线选股还有问题,你能不能帮我再弄一下,谢谢!
一个通达信指标公式里面的一行源码,搞不懂什么意思。源码最新ddos网页端源码大神来帮忙解答一下?
首先这句代码中把最高价和最低价做了两次偏移平均处理每次参数都是红线倒计时动画源码周期XMA(XMA(H,),)和XMA(XMA(L,),)),这样做的效果会让均线更平滑.
用低价的均线减去最高价和最低价均线的差值,
画粗细为2(LINETHICK2)的红线(COLORRED)
这样的效果应该是下轨,
注意公式中有未来函数.
你好,刚才那个红线选股还有问题,你能不能帮我再弄一下,谢谢!
你刚刚要的是蓝柱信号的选股啊,难到选出的股票不是在蓝柱信号上吗?
下面是你的公式源码:
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
AA1:=(EMA(VAR1,3))*2;
STICKLINE(AA1<=8,0,1,1.5,0),COLORRED;
TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*);
AA:=CROSS(CLOSE,TT1)AND J<;
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);
AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);
AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);
BB1:=0;
B1万元:=DVOL*DCLOSE/;
B1差:=B1万元-REF(B1万元,1);
B2万元:=DVOL*DCLOSE/;
B2比:=B2万元/REF(B2万元,1);
净流入万元:=(AAA2-AAA3-0.5*AAA4);
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1)>1;
PMB:=REF(PMA,1)<1 AND PMA;
密码:=(EMA(MA(B1万元,2),2))/;
二日比:=密码/REF(密码,1);
选股:=PMB AND 密码>REF(密码,1) AND 二日比>1;
STICKLINE(AA AND 选股,0,1,3,0),COLORFFFF ;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*;
经典抄底:IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND (EMA(CS,2))*2<,1.6,0);
DIFF:=EMA(DCLOSE,)-EMA(DCLOSE,);
DEA:=EMA(DIFF,9),COLORRED;
MACD:=(DIFF-DEA)*2;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1) AND REF(MACD,1)<0 AND MACD>=0.,0,MACD,,0) ,COLORRED;
{ 你的公式中还有一个选股标记,这个选股就是普通的MACD上穿0轴选股,在源码的最下面}
下面的MACD上穿0轴选股:
DIFF:=EMA(CLOSE,)-EMA(CLOSE,);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
MACD>=0 AND MACD>=REF(MACD,1) AND REF(MACD,1)<0 AND MACD>=0.;