{龙典副图源码如下}
P1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A2:=(C-REF(C,1))/REF(C,1)*100>=6;
A3:=C>P1 AND BARSLAST(A2)<=6 AND C>O AND C/REF(C,1)>=1.03;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
买:=FILTER(A3,15) AND RSI1>=80 AND RSI1<=85 ;
STICKLINE(买, 0,10, 0,0),COLORYELLOW;
STICKLINE(买, 0,1, 5,0),COLORYELLOW;
STICKLINE(买, 1,2, 4,1),COLORYELLOW;
STICKLINE(买, 2,3, 3,0),COLORMAGENTA;
STICKLINE(买, 3,4, 2,1),COLORYELLOW;
DRAWICON(买,10,18);
DRAWTEXT(买,5,' 龙典《信号》'),COLORYELLOW;
{龙典优化版源码如下}
P1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A2:=(C-REF(C,1))/REF(C,1)*100>=6;
A3:=C>P1 AND BARSLAST(A2)<=6 AND C>O AND C/REF(C,1)>=1.03;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
趋势线:=EMA(CLOSE,5);
买:=FILTER(A3,15) AND RSI1>=80 AND RSI1<=85 AND L<趋势线;
STICKLINE(买, 0,10, 0,0),COLORYELLOW;
STICKLINE(买, 0,1, 5,0),COLORYELLOW;
STICKLINE(买, 1,2, 4,1),COLORYELLOW;
STICKLINE(买, 2,3, 3,0),COLORMAGENTA;
STICKLINE(买, 3,4, 2,1),COLORYELLOW;
DRAWICON(买,10,18);
DRAWTEXT(买,5,' 龙典《优化版》'),COLORYELLOW;