|
本帖最后由 云中羽 于 2019-2-20 11:56 编辑
盘立方软件很好用,但是指标编写和其他行情软件都有区别,所以没办法,那位大神帮帮把这个文华指标改成盘立方的指标,谢谢!
DIFF:=IF(PERIOD<7,MA(MID,12) - MA(MID,26),NULL),RGB(35,197,255),LINETHICK1;
DEA:=MA(DIFF,9),RGB(35,197,255);
S1:=BARSLAST(CROSS(DIFF,DEA));//最近一次满足条件DIFF上穿DEA的K线到当前的距离
S2:=BARSLAST(CROSS(DEA,DIFF));//最近一次满足条件DIFF下穿DEA的K线到当前的距离
S3:=BACKSET(S2=0,BARSLAST(H>=HHV(H,S1+1) AND S2>0)+1);
S4:=BACKSET(S1=0,BARSLAST(L<=LLV(L,S2+1) AND S1>0)+1);
DRAWLINE1(CROSS(S3,0.5),H,CROSS(S4,0.5),L,0),RGB(0,156,212),LINETHICK2;
DRAWLINE1(CROSS(S4,0.5),L,CROSS(S3,0.5),H,0),RGB(0,156,212),LINETHICK2;
|
|