飞狐K线获利盘叠加RSI副图指标
源码
N1:=6;N2:=12;N3:=24;M1:=3;M2:=8;M3:=12;M4:=24;
LC := REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100; A:=WINNER((CLOSE+HIGH+LOW+OPEN)/4)*100; A1:=WINNER(CLOSE)*100; A2:=WINNER(OPEN)*100; A3:=WINNER(HIGH)*100; A4:=WINNER(LOW)*100; 0,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,3,' ←获利盘 0%'),COLORYELLOW; 10,COLOR0066CC; DRAWTEXT(C>0 AND ISLASTBAR=1,13,' ←获利盘 10%'),COLORYELLOW; STICKLINE(C>0,10,10,5,5),COLOR110000; 20,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,23,' ←获利盘 20%'),COLORYELLOW; STICKLINE(C>0,20,20,5,5),COLOR110000; 30,COLOR0066CC; DRAWTEXT(C>0 AND ISLASTBAR=1,33,' ←获利盘 30%'),COLORYELLOW; STICKLINE(C>0,30,30,5,5),COLOR110000; 40,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,43,' ←获利盘 40%'),COLORYELLOW; STICKLINE(C>0,40,40,5,5),COLOR110000; 50,COLOR0066CC; DRAWTEXT(C>0 AND ISLASTBAR=1,53,' ←获利盘 50%'),COLORYELLOW; STICKLINE(C>0,50,50,5,5),COLOR110000; 60,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,63,' ←获利盘 60%'),COLORYELLOW; STICKLINE(C>0,60,60,5,5),COLOR110000; 70,COLOR0066CC; DRAWTEXT(C>0 AND ISLASTBAR=1,73,' ←获利盘 70%'),COLORYELLOW; STICKLINE(C>0,70,70,5,5),COLOR110000; 80,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,83,' ←获利盘 80%'),COLORYELLOW; STICKLINE(C>0,80,80,5,5),COLOR110000; 90,COLOR0066CC; DRAWTEXT(C>0 AND ISLASTBAR=1,93,' ←获利盘 90%'),COLORYELLOW; STICKLINE(C>0,90,90,5,5),COLOR110000; 100,COLOR999966; DRAWTEXT(C>0 AND ISLASTBAR=1,103,' ←获利盘 100%'),COLORYELLOW; STICKLINE(A1>=A2,A1,A2,8,0),COLORRED; STICKLINE(A1>=A2,A3,A4,1,0),COLORRED; STICKLINE(A1>=A2,A1,A2,6,0),COLOR0066FF; STICKLINE(A1>=A2,A1,A2,4,0),COLOR0099FF; STICKLINE(A1>=A2,A1,A2,2,0),COLORYELLOW; STICKLINE(A1>=A2,A3,A4,0,0),COLORYELLOW; STICKLINE(A1<=A2,A1,A2,8,0),COLORFF0000; STICKLINE(A1<=A2,A3,A4,1,0),COLORFF0000; STICKLINE(A1<=A2,A1,A2,6,0),COLORFF6600; STICKLINE(A1<=A2,A1,A2,4,0),COLORFF9900; STICKLINE(A1<=A2,A1,A2,2,0),COLORCYAN; STICKLINE(A1<=A2,A3,A4,0,0),COLORCYAN; DRAWICON(A3>95,A3+3,10); DRAWICON(A4<0.5,A4,'S28'); MA1:MA(A,m1),COLORWHITE; MA2:MA(A,m2),COLORYELLOW; MA3:MA(A,m3),COLORMAGENTA; MA4:MA(A,m4),COLORGREEN;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
飞狐K线获利盘叠加RSI副图指标
源码
N1:=6;N2:=12;N3:=24;M1:=3;M2:=8;M3:=12;M4:=24;
LC := REF(CLOSE,1); ←获利盘 0%'),COLORYELLOW; ←获利盘 10%'),COLORYELLOW; ←获利盘 20%'),COLORYELLOW; ←获利盘 30%'),COLORYELLOW; ←获利盘 40%'),COLORYELLOW; ←获利盘 50%'),COLORYELLOW; ←获利盘 60%'),COLORYELLOW; ←获利盘 70%'),COLORYELLOW; ←获利盘 80%'),COLORYELLOW; ←获利盘 90%'),COLORYELLOW; ←获利盘 100%'),COLORYELLOW;
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
A:=WINNER((CLOSE+HIGH+LOW+OPEN)/4)*100;
A1:=WINNER(CLOSE)*100;
A2:=WINNER(OPEN)*100;
A3:=WINNER(HIGH)*100;
A4:=WINNER(LOW)*100;
0,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,3,'
10,COLOR0066CC;
DRAWTEXT(C>0 AND ISLASTBAR=1,13,'
STICKLINE(C>0,10,10,5,5),COLOR110000;
20,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,23,'
STICKLINE(C>0,20,20,5,5),COLOR110000;
30,COLOR0066CC;
DRAWTEXT(C>0 AND ISLASTBAR=1,33,'
STICKLINE(C>0,30,30,5,5),COLOR110000;
40,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,43,'
STICKLINE(C>0,40,40,5,5),COLOR110000;
50,COLOR0066CC;
DRAWTEXT(C>0 AND ISLASTBAR=1,53,'
STICKLINE(C>0,50,50,5,5),COLOR110000;
60,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,63,'
STICKLINE(C>0,60,60,5,5),COLOR110000;
70,COLOR0066CC;
DRAWTEXT(C>0 AND ISLASTBAR=1,73,'
STICKLINE(C>0,70,70,5,5),COLOR110000;
80,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,83,'
STICKLINE(C>0,80,80,5,5),COLOR110000;
90,COLOR0066CC;
DRAWTEXT(C>0 AND ISLASTBAR=1,93,'
STICKLINE(C>0,90,90,5,5),COLOR110000;
100,COLOR999966;
DRAWTEXT(C>0 AND ISLASTBAR=1,103,'
STICKLINE(A1>=A2,A1,A2,8,0),COLORRED;
STICKLINE(A1>=A2,A3,A4,1,0),COLORRED;
STICKLINE(A1>=A2,A1,A2,6,0),COLOR0066FF;
STICKLINE(A1>=A2,A1,A2,4,0),COLOR0099FF;
STICKLINE(A1>=A2,A1,A2,2,0),COLORYELLOW;
STICKLINE(A1>=A2,A3,A4,0,0),COLORYELLOW;
STICKLINE(A1<=A2,A1,A2,8,0),COLORFF0000;
STICKLINE(A1<=A2,A3,A4,1,0),COLORFF0000;
STICKLINE(A1<=A2,A1,A2,6,0),COLORFF6600;
STICKLINE(A1<=A2,A1,A2,4,0),COLORFF9900;
STICKLINE(A1<=A2,A1,A2,2,0),COLORCYAN;
STICKLINE(A1<=A2,A3,A4,0,0),COLORCYAN;
DRAWICON(A3>95,A3+3,10);
DRAWICON(A4<0.5,A4,'S28');
MA1:MA(A,m1),COLORWHITE;
MA2:MA(A,m2),COLORYELLOW;
MA3:MA(A,m3),COLORMAGENTA;
MA4:MA(A,m4),COLORGREEN;