公式编写、导入、导出详细步骤
我发现论坛上有些年龄大些的朋友,不知道怎么编写公式,或者导入、导出公式。特此我就通达信公式编写方式等截图给大家,我相信看了这截图,应该很快明白。编写公式:
公式导出:
公式导入:
群里高手能帮忙根据以下代码编制一个选股公式吗?
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE<=1341231),1,0);
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLOR008000;
M13:EMA(M8,13),COLOR0000FF;
M62:EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF; {王向辉奉献}
AA:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=15,3085,YEAR=2016 AND MONTH=8 AND DAY=15,3085,1),COLORRED;
BB:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=20,O,YEAR=2016 AND MONTH=7 AND DAY=27,O,1),COLORGREEN;
CC:DRAWLINE(YEAR=2016 AND MONTH=5 AND DAY=6,2998.4,YEAR=2016 AND MONTH=8 AND DAY=15,2998.4,1),COLORGRAY;
DD:DRAWLINE(YEAR=2016 AND MONTH=5 AND DAY=31,C,YEAR=2016 AND MONTH=8 AND DAY=15,O,2),COLORLIBLUE;
EE:DRAWLINE(YEAR=2016 AND MONTH=6 AND DAY=27,O,YEAR=2016 AND MONTH=8 AND DAY=12,O,1),COLORYELLOW;
FF:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=27,3017,YEAR=2016 AND MONTH=6 AND DAY=17,3017,1),COLORLIRED;
GG:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=16,O,YEAR=2016 AND MONTH=8 AND DAY=17,3130.53,1),COLORLIRED;
三一:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=08,3109,YEAR=2016 AND MONTH=8 AND DAY=15,3109,1),COLORLIGREEN;
HH:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=08,3097,YEAR=2016 AND MONTH=8 AND DAY=15,3097,1),COLORLIRED;
顶了再说。
我新来的,代码看不到,找到这个,
AA1:=filter(low=llv(low,13),8);
AA2:=if(LLV(low,3)=llv(low,13) and close<ref((high+low)/2,1),max(ref(llv(low,12),barslast(AA1)+1)-low,0),0);
AA3:=ema(AA2,3)*3;
AA4:=sumbars(AA3>0,21);
AA5:=sum(AA3,AA4)/21;
AA6:=ref(AA3,1)=hhv(AA3,3) and ref(AA3,1)>AA5*3 and count(close/ref(close,1)<0.9025,8)=0 and isup and llv(low,3)/hhv(high,18)<0.88;
AA7:=(count("ddx.ddx">0,5)>0 or not("ddx.ddx1"<"ddx.ddx2" and "ddx.ddx2"<"ddx.ddx3")) and count("ddx.ddx">ref("ddx.ddx",1),10)>=4;
反转:filter(AA6 and AA7,5),colorblack;
stickline(close,0,AA3,8,1),coloryellow;
stickline(反转,0,AA3,8,0),colorred;
谢谢分享! 谢谢分享:handshake 谢谢分享,学习了。
谢谢老师分享,学习了。 投入江湖,好好学习 多谢楼主分享! dddddddddd 谢谢分享,学习了。 提示:导入、导出的后缀应加上:tni,否则,不能再引入! 谢谢分享 向您学习来了 谢谢老师奉献 谢谢分享! 脚踏实地,,,,,总会有城。。。。。。。。。。