MT4指标写版图无的supertrend
-
相关简介:版图无Supertrend大智慧源码 variable:tr=0,up=0,dn=0; N:=10; M:=1.5; TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:=MA(TR1,N); median:= (high + low) / 2; up:= median+atr * M; dn:= median-atr * M; tr:=if(cref(up,1),1,if(cref(dn,1),
-
文章来源:股海网作者:股海网发布时间:2013-09-08浏览次数:
版图无Supertrend大智慧源码
variable:tr=0,up=0,dn=0;
N:=10;
M:=1.5;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,N);
median:= (high + low) / 2;
up:= median+atr * M;
dn:= median-atr * M;
tr:=if(c>ref(up,1),1,if(c<ref(dn,1),-1,tr));
flag:=tr<0 and ref(tr,1)>0;
flagh:=tr>0 and ref(tr,1)<0;
dn:=if(tr>0 and dn<ref(dn,1),ref(dn,1),dn);
up:=if(tr<0 and up>ref(up,1),ref(up,1),up);
up:=if(flag,median + atr * M,up);
dn:=if(flagh,median - atr * M,dn);
outtr:=tr;
outup:=up;
outdn:=dn;
supertren:if(outtr=1,outdn,outup),colorwhite;
PARTLINE(supertren,tr=1,rgb(200,0,0),tr=-1,rgb(0,200,0));
... p;extra=&page=1
我在淘宝上找人改写为mt4指标,目前正找人改为通达信的,等写成了,我会公布。
开放的心态带来进步,共推动证券业的发展
也请高手改写这个指标为通达信的,这个确实有一定难度。