求大神帮忙把这个指标用同样的条件加上怎么做空 [通达信]
- 咨询内容: RT 求大神帮忙把这个指标用同样的条件加上怎么做空 下面是指标源码 连续收阳:=REF(C,2)O,2); 倍量柱1:=V/REF(V,1)>1.85; 倍量柱2:=REF(V,1)/REF(V,2)>1.85; 量能:=REF(V,1); XG:=连续收阳 AND 倍量柱1 AND 倍量柱2 AND 量能; STICKLINE(XG,9,0,3,0),COLORYELLOW;VAR1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR3:=SUM(VAR1,5); VAR4:=SUM(VAR2,5); VAR5:=IF(VAR3>VAR4,(VAR3-VAR4)/VAR3,IF(VAR3=VAR4,0,(VAR3-VAR4)/VAR4)); VAR6:=MA(VAR5,5); VAR8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VARA:=SUM(VAR8,3); VARB:=SUM(VAR9,3); VARC:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VARD:=MA(VARC,3); 人:BARSLAST(EMA(CLOSE,5)=1,LLV(VARE,VARF),LOW); VAR11:=VAR10+VAR10*VARF*0.5/100; VAR12:=IF(VAR11REF(EMA(CLOSE,5),1),5); VAR14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR16:=SUM(VAR8,3); VAR17:=SUM(VAR9,3); VAR18:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR19:=MA(VARC,3); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; STICKLINE(神>0,人,0,2,0), COLORRED; VAR1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR1C:=SUM(VAR8,3); VAR1D:=SUM(VAR9,3); VAR1E:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR1F:=MA(VARC,3); STICKLINE(神>0,人,神,2,1),COLORF0F000; VAR20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR22:=SUM(VAR8,3); VAR23:=SUM(VAR9,3); VAR24:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR25:=MA(VARC,3); STICKLINE(神=0 AND 人=0,0,1,4,1), COLORBLUE; VAR26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR28:=SUM(VAR8,3); VAR29:=SUM(VAR9,3); VAR2A:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR2B:=MA(VARC,3); STICKLINE(神<人,人,神,1,0), colorgreen;="" var2c:="IF(OPEN<F(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));" var2d:="IF(OPEN">=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR2E:=SUM(VAR8,3); VAR2F:=SUM(VAR9,3); VAR30:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR31:=MA(VARC,3); VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10; VAR33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR35:=SUM(VAR8,3); VAR36:=SUM(VAR9,3); VAR37:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR38:=MA(VARC,3); STICKLINE(REF(神,1)=0 AND 神>0,0,-1,2,0), COLORRED; DRAWTEXT(REF(人,3)>0 AND REF(人,2)>0 AND REF(人,1)>0 AND 人=0 AND REF(人,1)>神,REF(人,1),'调整'),COLORYELLOW ; REF(神,1)=0 AND 神>0,BK; M110:REF(人,3)>0 AND REF(人,2)>0 AND REF(人,1)>0 AND 人=0 AND REF(人,1)>神; (M110 AND 神>人) OR (神=0 AND 人=0),SP; AUTOFILTER; 人,人,神,1,0),>
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容