RES0:=0.0;
IF (MID>LOW) THEN
RES1:=MID-LOW;
ELSE
RES1:=0.0;
RESSUM0:=SUM(RES0,N);
RESSUM1:=SUM(RES1,N);
CR:RESSUM0/RESSUM1*200.0;
MYMA1:=MA(CR,M1);
MYMA2:=MA(CR,M2);
MYMA3:=MA(CR,M3);
MYMA4:=MA(CR,M4);
MYCRA:=REF(MYMA1,M1/2-1);
MYCRB:=REF(MYMA2,M2/2-1);
MYCRC:=REF(MYMA3,M3/2-1);
MYCRD:=REF(MYMA4,M4/2-1);
IF(BARSCOUNT(CLOSE)>=(M1+N)) THEN
CRA:MYCRA;
IF(BARSCOUNT(CLOSE)>=(M2+N)) THEN
CRB:MYCRB;
IF(BARSCOUNT(CLOSE)>=(M3+N)) THEN
CRC:MYCRC;
IF(BARSCOUNT(CLOSE)>=(M4+N)) THEN
CRD:MYCRD;
对比几个软件的指标
会发现名字相同但是指标走势不同
当然 还有很多
这个是钱LONG的指标 带状能量线
N 26
M1 10
M2 20
M3 40
M4 62
RES0:=0.0;
IF (MID>LOW) THEN
RES1:=MID-LOW;
ELSE
RES1:=0.0;
RESSUM0:=SUM(RES0,N);
RESSUM1:=SUM(RES1,N);
CR:RESSUM0/RESSUM1*200.0;
MYMA1:=MA(CR,M1);
MYMA2:=MA(CR,M2);
MYMA3:=MA(CR,M3);
MYMA4:=MA(CR,M4);
MYCRA:=REF(MYMA1,M1/2-1);
MYCRB:=REF(MYMA2,M2/2-1);
MYCRC:=REF(MYMA3,M3/2-1);
MYCRD:=REF(MYMA4,M4/2-1);
IF(BARSCOUNT(CLOSE)>=(M1+N)) THEN
CRA:MYCRA;
IF(BARSCOUNT(CLOSE)>=(M2+N)) THEN
CRB:MYCRB;
IF(BARSCOUNT(CLOSE)>=(M3+N)) THEN
CRC:MYCRC;
IF(BARSCOUNT(CLOSE)>=(M4+N)) THEN
CRD:MYCRD;