请老师修改公式 [文华财经]
-
咨询内容:
1.
A:=00,COLORGREEN,DOT;B:=100,COLORRED,DOT;LOWV:=LLV(LOW,34);HIGHV:=HHV(HIGH,34);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,21);K:=EMA(RSV,13);D:=EMA(K,13);
N:=3;VAR01:=MA(HHV(HIGH,485),17);VAR02:=MA(HHV(HIGH,222),17);VAR03:=MA(HHV(HIGH,96),17);VAR04:=MA(LLV(LOW,485),17);VAR05:=MA(LLV(LOW,222),17);VAR06:=MA(LLV(LOW,96),17);VAR07:=MA((VAR04*0.96+VAR05*0.96+VAR06*0.96+VAR01*0.558+VAR02*0.558+VAR03*0.558)/6,17);VAR08:=MA((VAR04*1.25+VAR05*1.23+VAR06*1.2+VAR01*0.55+VAR02*0.55+VAR03*0.65)/6,17);VAR09:=MA((VAR04*1.3+VAR05*1.3+VAR06*1.3+VAR01*0.68+VAR02*0.68+VAR03*0.68)/6,17);VAR10:=MA((VAR07*3+VAR08*2+VAR09)/6*1.738,17);VAR11:=VAR10;VAR12:=LOW;VAR13:=REF(LOW,1);VAR14:=SMA(ABS(VAR12-VAR13),3,1)/SMA(MAX(VAR12-VAR13,0),N,1)*100;VAR15:=MA(IF(CLOSE*1.35<=VAR11,VAR14*10,VAR14/10),N);VAR16:=LLV(LOW,30);VAR17:=HHV(VAR15,30);VAR18:=1990831;VAR19:=IF(DATE<=VAR18,MA(IF(LOW<=VAR16,(VAR15+VAR17*2)/2,0),N),100000000);VAR20:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*100;VAR21:=SMA(VAR20,3,1);VAR22:=SMA(VAR21,3,1);VAR23:=3*VAR21-2*VAR22;VAR24:=IF(VAR23>=100,100,IF(VAR23<=0,0,VAR23));底部:=VAR19>10000 AND VAR19>20000;超低:=VAR19>30000 AND VAR19>30000;卖出警报:=(VAR24=0);SJ:=IFELSE(DATE+20000000<20990120,1,0);
VARA:=LLV(LOW,35);VARB:=HHV(HIGH,30);VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;QS:= VARC,COLORWHITE;HX:=HHV(HIGH,3);LX:=LLV(LOW,3);H1:=IFELSE(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);L1:=IFELSE(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);H2:=VALUEWHEN(H1>0,H1);L2:=VALUEWHEN(L1>0,L1);K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));K2:=VALUEWHEN(K1<>0,K1);G:=IFELSE(K2=1,H2,L2);G1:=VALUEWHEN(ISLASTBAR,G);
TMP:=K2;W1:=K2;W2:=OPEN-CLOSE;HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
HH:=HHV(HIGH,40);LL:=LLV(LOW,40);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));//PARTLINE1((HH1 < LL1),LL),COLOR0000FF;//PARTLINE1((HH1 > LL1),HH),COLOR00FF00;DRAWTEXT(((HH1 < REF(HH1,1)) AND (HH1 < LL1)) &&NOT(卖出警报)&&K>D,LOW,'',VALIGN0,COLORRED,FONTSIZE25;DRAWTEXT(((LL1 < REF(LL1,1)) AND (HH1 > LL1)) && NOT(底部||超低)&&K<D,HIGH,'',COLORGREEN,FONTSIZE25;
2. SJ:=IFELSE(DATE+20000000<20991013,1,0);//什么时间到期就写什么时间
//减3天,上面时间提前1天到期29号28号就提示N:=15;M1:=5;M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K9:=SMA(RSV,M1,1);D9:=SMA(K9,M2,1);J:=3*K9-2*D9;RK:=MA(K9,15);RD:=MA(D9,15);RJ:=MA(J,15);
VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100);VAR2:=REVERSE(VAR1);VAR3:=SMA(VAR1,5,1);K:=SMA(VAR3,3,1);D:=SMA(K,3,1);DRAWTEXT(K >= D,99,'',COLORRED;DRAWTEXT(K <= D,99,'',COLOR008800;VAR18:=((CLOSE - LLV(LOW,80))/(HHV(HIGH,80) - LLV(LOW,80)))*(100);VAR28:=REVERSE(VAR18);VAR38:=SMA(VAR18,3,1);K8:=SMA(VAR38,3,1);D8:=SMA(K8,3,1);DRAWTEXT(K8 >= D8,1,'',COLORMAGENTA;DRAWTEXT(K8 <= D8,1,'',COLORCYAN;严重超卖:0*SJ,NODRAW;严重超买:100*SJ,NODRAW;
老师根据2指标的双B双S过滤一指标的多空 不是合成在一起 1指标出多得时候2指标要双B 1指标空的时候对应2指标要双S来源:程序化99
-
文华技术人员:
参考:
SJ:=IFELSE(DATE+20000000<20991013,1,0);//什么时间到期就写什么时间
//减3天,上面时间提前1天到期29号28号就提示 N:=15; M1:=5; M2:=3; RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K9:=SMA(RSV1,M1,1); D9:=SMA(K9,M2,1); J:=3*K9-2*D9; RK:=MA(K9,15); RD:=MA(D9,15); RJ:=MA(J,15);
VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1); VAR3:=SMA(VAR1,5,1); KK:=SMA(VAR3,3,1); DD:=SMA(KK,3,1); VAR181:=((CLOSE - LLV(LOW,80))/(HHV(HIGH,80) - LLV(LOW,80)))*(100); VAR28:=REVERSE(VAR181); VAR38:=SMA(VAR181,3,1); K8:=SMA(VAR38,3,1); D8:=SMA(K8,3,1); 严重超卖:0*SJ,NODRAW; 严重超买:100*SJ,NODRAW; A:=00,COLORGREEN,DOT; B:=100,COLORRED,DOT; LOWV:=LLV(LOW,34); HIGHV:=HHV(HIGH,34); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,21); K:=EMA(RSV,13); D:=EMA(K,13);
N1:=3; VAR01:=MA(HHV(HIGH,485),17); VAR02:=MA(HHV(HIGH,222),17); VAR03:=MA(HHV(HIGH,96),17); VAR04:=MA(LLV(LOW,485),17); VAR05:=MA(LLV(LOW,222),17); VAR06:=MA(LLV(LOW,96),17); VAR07:=MA((VAR04*0.96+VAR05*0.96+VAR06*0.96+VAR01*0.558+VAR02*0.558+VAR03*0.558)/6,17); VAR08:=MA((VAR04*1.25+VAR05*1.23+VAR06*1.2+VAR01*0.55+VAR02*0.55+VAR03*0.65)/6,17); VAR09:=MA((VAR04*1.3+VAR05*1.3+VAR06*1.3+VAR01*0.68+VAR02*0.68+VAR03*0.68)/6,17); VAR10:=MA((VAR07*3+VAR08*2+VAR09)/6*1.738,17); VAR11:=VAR10; VAR12:=LOW; VAR13:=REF(LOW,1); VAR14:=SMA(ABS(VAR12-VAR13),3,1)/SMA(MAX(VAR12-VAR13,0),N1,1)*100; VAR15:=MA(IF(CLOSE*1.35<=VAR11,VAR14*10,VAR14/10),N1); VAR16:=LLV(LOW,30); VAR17:=HHV(VAR15,30); VAR18:=1990831; VAR19:=IF(DATE<=VAR18,MA(IF(LOW<=VAR16,(VAR15+VAR17*2)/2,0),N1),100000000); VAR20:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*100; VAR21:=SMA(VAR20,3,1); VAR22:=SMA(VAR21,3,1); VAR23:=3*VAR21-2*VAR22; VAR24:=IF(VAR23>=100,100,IF(VAR23<=0,0,VAR23)); 底部:=VAR19>10000 AND VAR19>20000; 超低:=VAR19>30000 AND VAR19>30000; 卖出警报:=(VAR24=0); VARA:=LLV(LOW,35); VARB:=HHV(HIGH,30); VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25; QS:= VARC,COLORWHITE; HX:=HHV(HIGH,3); LX:=LLV(LOW,3); H1:=IFELSE(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0); L1:=IFELSE(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0); H2:=VALUEWHEN(H1>0,H1); L2:=VALUEWHEN(L1>0,L1); K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0)); K2:=VALUEWHEN(K1<>0,K1); G:=IFELSE(K2=1,H2,L2); G1:=VALUEWHEN(ISLASTBAR,G);
TMP:=K2; W1:=K2; W2:=OPEN-CLOSE; HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE); LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
HH:=HHV(HIGH,40); LL:=LLV(LOW,40); HH1:=BARSLAST((HH > REF(HH,1))); LL1:=BARSLAST((LL < REF(LL,1))); //PARTLINE1((HH1 < LL1),LL),COLOR0000FF; //PARTLINE1((HH1 > LL1),HH),COLOR00FF00; DRAWTEXT(((HH1 < REF(HH1,1)) AND (HH1 < LL1)) &&NOT(卖出警报)&&K>D&&KK >= DD&&K8 >= D8,LOW,'',VALIGN0,COLORRED,FONTSIZE25; DRAWTEXT(((LL1 < REF(LL1,1)) AND (HH1 > LL1)) && NOT(底部||超低)&&K<D&&KK <= DD&&K8 <= D8,HIGH,'',COLORGREEN,FONTSIZE25;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容