请大家帮忙把大智慧宝塔线源码改成通达信的;

2024-12-31 08:35:13
推荐回答(2个)
回答1:

B1:=REF(C,1);
B2:=REF(C,2);
SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(CREF(C,2) AND REF(C,2)>REF(C,1),2,IF(CSM:=IF(REF(SS,1)<0 OR REF(SS,1)>0,REF(SS,1),IF(REF(SS,2)<0 OR REF(SS,1)>0,REF(SS,2),IF(REF(SS,3)<0 OR REF(SS,1)>0,REF(SS,3),IF(REF(SS,5)<0 OR REF(SS,1)>0,REF(SS,5),IF(REF(SS,6)<0 OR REF(SS,1)>0,REF(SS,6),IF(REF(SS,7)<0 OR REF(SS,1)>0,REF(SS,7),0))))));
MC:IF(REF(SS,1)<0 OR REF(SS,1)>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,4,1),COLORRED;
STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,4,0),COLORFF9000;
STICKLINE(SS=2,B2,C,4,1),COLORRED;
STICKLINE(SS=-2,B2,C,4,0),COLORFF9000;
STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,4,1),COLORRED;
STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,4,0),COLORFF9000;

可以通过,但显示效果不如大智慧

回答2:

B1:=REF(C,1);
B2:=REF(C,2);
SS:=IF(C>REF(C,1)
AND
REF(C,1)>=REF(C,2),1,IF(CAND
REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2)
AND
REF(C,2)>REF(C,1),2,IF(CAND
REF(C,2)SM:=IF(REF(SS,1)<0
OR
REF(SS,1)>0,REF(SS,1),IF(REF(SS,2)<0
OR
REF(SS,1)>0,REF(SS,2),IF(REF(SS,3)<0
OR
REF(SS,1)>0,REF(SS,3),IF(REF(SS,5)<0
OR
REF(SS,1)>0,REF(SS,5),IF(REF(SS,6)<0
OR
REF(SS,1)>0,REF(SS,6),IF(REF(SS,7)<0
OR
REF(SS,1)>0,REF(SS,7),0))))));
MC:IF(REF(SS,1)<0
OR
REF(SS,1)>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
STICKLINE(SS=1
OR
SM>=1
AND
SS=0,B1,C,4,1),COLORRED;
STICKLINE(SS=-1
OR
SM<=-1
AND
SS=0,B1,C,4,0),COLORFF9000;
STICKLINE(SS=2,B2,C,4,1),COLORRED;
STICKLINE(SS=-2,B2,C,4,0),COLORFF9000;
STICKLINE((SS=-1
OR
SS=-2)
AND
SM>0,B2,B1,4,1),COLORRED;
STICKLINE((SS=1
OR
SS=2)
AND
SM<0,B2,B1,4,0),COLORFF9000;
可以通过,但显示效果不如大智慧