智能买卖附图简单明了,跟着买卖就行了,上面的黄线是买入后的获利比例,选股等于1。
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
AA:=SMA(RSV,3,1);
BB:=SMA(AA,3,1);
CC:IF((AA>BB),1,0);
XG:IF(CROSS(AA,BB),1,0),COLORMAGENTA;
MJSJ:=BARSLAST(CC<1);
获利%:IF(MJSJ>=1,(C/REF(C,MJSJ)-1)*100,CC),COLORYELLOW;
DRAWTEXT(XG=1 ,2,'买入'),COLOR0000FF;
DRAWTEXT(CC=0 AND REF(CC,1)=1 ,2,'卖出'),COLOR00FF00;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.01,1,'和平鸽祝君: 股海拾贝 沙海淘金'),COLORYELLOW;