mrbaobao 发表于 2016-8-6 10:29
谢谢楼主分享二阿哥 发表于 2016-8-6 21:02
谢谢楼主分享倾听你的心声 发表于 2016-8-6 22:06
是直接选股的公式还是设置指标的公式啊?独孤求败大侠 发表于 2016-8-6 23:06
我回复一行源码偶然抓涨停 发表于 2016-8-8 00:41
VAR7:=REF(LOW,1)*0.9; VAR8:=LOW*0.9; VAR9:=(VAR8*VOL+VAR7*(CAPITAL-VOL))/CAPITAL; VARA:=EMA(VAR9,30); VARB:=CLOSE-REF(CLOSE,1); VARC:=MAX(VARB,0); VARD:=ABS(VARB); VARE:=SMA(VARC,7,1)/SMA(VARD,7,1)*100; VARF:=SMA(VARC,13,1)/SMA(VARD,13,1)*100; VAR10:=BARSCOUNT(CLOSE); VAR11:=SMA(MAX(VARB,0),6,1)/SMA(ABS(VARB),6,1)*100; VAR12:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR13:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR14:=SMA((SMA(VAR13,4,1)-50)*2,3,1); VAR15:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR16:=SMA(VAR15,4,1); VAR17:=SMA(VAR16,3,1); VAR18:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; VAR19:=VAR11<=25 AND VAR12<-95 AND VAR18>20 AND VAR14<-30 AND VAR17<30 AND VARA-CLOSE>=-0.25 AND VARE<22 AND VARF<28 AND VAR10>50; 百万导弹:=CROSS(VAR19,0.5) AND COUNT(VAR19=1,10)=1; {中短线操作信号} V1:=LLV(LOW,10); V2:=HHV(H,25); 价位线:=EMA((C-V1)/(V2-V1)*4,4); 买入:=CROSS(价位线,0.3); 角线:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926); 角线MA:=MA(角线,5); ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA),COLORRED; ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA),COLORFF00FF ; 角买点:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR ((角线MA<=-45 OR CROSS(角线MA,-45)) AND (ANB<-60 OR LLV("KDJ.J",3)<=-49) AND ANB>0)),COLORGREEN; 角起涨:=COUNT(CROSS(角线,角线MA),ANA<REF(ANA,5) AND ANB>REF(ANB,5)); 中短线测底:REF(百万导弹=1,1) OR REF(百万导弹=1,2) OR 买入=1 AND 角买点=1 AND 角起涨=1;红一品 发表于 2016-8-8 06:19
感谢分享,学习一下!!红一品 发表于 2016-8-8 06:21
感谢分享,学习一下!!开心古海 发表于 2016-8-8 07:24
回踩黄金线选股红一品 发表于 2016-8-8 08:33
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;当前公式 :发一个本人视为珍宝的指标 (条件选股公式)
错误句 :M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0
详细信息 : 不是指标画线公式,不能指定画线类型!
错误起始位置 : 207 ; 长度: 3
请教楼主:问题出在哪儿?也恳请知晓的路过学友,麻烦您指点一二,谢谢!!
hqh36h 发表于 2016-8-8 12:32
谢谢分享。翻滚的喵喵 发表于 2016-8-8 16:06
谢谢楼主分享,希望有用。独步白云 发表于 2016-8-18 11:52
1111111111111111111111程金发 发表于 2016-8-18 15:47
谢谢分享!谢谢!!!!!!!!!!!!!!!!!!!!!独步白云 发表于 2016-8-18 17:34
111111111111111111111111cengjinghai 发表于 2016-8-18 17:45
感谢分享,学习一下