快过年了 送个大家钱龙短线指标的源码 祝大家新年快乐
钱龙短线指标
VARIABLE:LASTRES0=0;
variable:LASTRES1=0;
LASTCLOSE:=REF(CLOSE,1);
IF HIGH>LASTCLOSE THEN
TB:=HIGH-LASTCLOSE+CLOSE-LOW;
ELSE
TB:=IF(H>LASTCLOSE,H-LASTCLOSE+C-L,C-L);
IF(LASTCLOSE>LOW) THEN
TS:=LASTCLOSE-LOW+HIGH-CLOSE;
ELSE
TS:=IF(LASTCLOSE>L,LASTCLOSE-L+H-C,H-C);
IF((TB+TS)=0) THEN
TEMP:=0;
ELSE
TEMP:=(TB-TS)*VOL/(TB+TS)/10000;
TEMP:=IF(TB+TS=0,0,(TB-TS)*VOL/(TB+TS)/10000);
LL:=BARSCOUNT(CLOSE);
IF(LL>=2) THEN
BEGIN
IF(LL=2) THEN
BEGIN
RES0:=TEMP*10/100;
RES1:=TEMP*5/100;
LASTRES0:=RES0;
LASTRES1:=RES1;
END
ELSE
BEGIN
RES0:=LASTRES0+(TEMP-LASTRES0)*10/100;
RES1:=LASTRES1+(TEMP-LASTRES1)*5/100;
LASTRES0:=RES0;
LASTRES1:=RES1;
END
SHORT:RES0-RES1;
END
MAS:MA(SHORT,10);
SHT:SHORT,COLORSTICK;
- 上一篇公式:波浪理论(波浪顶、波浪底)
- 下一篇公式:底部 5天3%成功率7成 缺省周期:日线