高手帮忙,把下面这个通达信的副图指标里面出现绿色开始建仓信号,做成选股,谢谢,万分感激
{买卖点分析}买卖点:1,LINETHICK0;VAR1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLO...
{买卖点分析}
买卖点:1,LINETHICK0;
VAR1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100, ,COLORGRAY;
开始建仓:IF(C/REF(C,1)>0.955 AND A2<10,1,0), COLOR00FF00;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
买入信号:IF(C/REF(C,1)>0.955 AND VAR3<10,2,0),COLORYELLOW;
逢高减仓:IF(A2>80,1,0), COLORF00FF0;
获利了结:IF(A2< REF(A2,1) AND A2>79,2,0), COLORRED;
DRAWTEXT_FIX(1,0,0,0,'--'),COLORFFBBFF;
FYLG:=CURRBARSCOUNT;
DRAWTEXT(FYLG=26,1.5,''),COLORRED;
DRAWTEXT(FYLG=26,1,''),COLORRED; 展开
买卖点:1,LINETHICK0;
VAR1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100, ,COLORGRAY;
开始建仓:IF(C/REF(C,1)>0.955 AND A2<10,1,0), COLOR00FF00;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
买入信号:IF(C/REF(C,1)>0.955 AND VAR3<10,2,0),COLORYELLOW;
逢高减仓:IF(A2>80,1,0), COLORF00FF0;
获利了结:IF(A2< REF(A2,1) AND A2>79,2,0), COLORRED;
DRAWTEXT_FIX(1,0,0,0,'--'),COLORFFBBFF;
FYLG:=CURRBARSCOUNT;
DRAWTEXT(FYLG=26,1.5,''),COLORRED;
DRAWTEXT(FYLG=26,1,''),COLORRED; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询