我们知道一般行情是以震荡和趋势随机交替出现,把震荡与趋势两类的买卖点放到一起,既可以做为一种分析参考依据也可以结合起来构建交易系统,利用趋势的买入信号开仓,趋势类的卖出信号清仓,震荡类的买入信号补仓,震荡类的卖出信号减仓,这是一种快慢结合分批买卖的交易系统。震荡类的指标选择10日RSI,RSI上穿20买入,画红箭头,RSI下穿80卖出,画绿箭头,趋势类指标选择10日均线(操盘线),收盘价在10日均线上方上涨趋势操盘线画红色,收盘价在10日均线下方下跌趋势操盘线画绿色,一套快慢结合的交易系统构建完毕,使用分批买卖的资金管理模式,各周期可以通用。 快慢结合元通RSI主图公式源码(通达信): A:=(C+O+H+L)/4; 操盘线:EMA(A,10)COLORRED,LINETHICK2; IF(C<操盘线,操盘线,DRAWNULL)COLORGREEN,LINETHICK2; DRAWTEXT(C>操盘线 AND L<操盘线 AND REF(C,1)>REF(操盘线,1),L,'。')COLORYELLOW; LC:=REF(CLOSE,1); RSI:EMA(MAX(CLOSE-LC,0),10)/EMA(ABS(CLOSE-LC),10)*100 NODRAW; 强:=80; 弱:=20; STICKLINE(C>O,H,L,0,0),COLOR0000EE; STICKLINE(C>O,C,O,3,0),COLOR000088; STICKLINE(C>O,C,O,2,0),COLOR0000AA; STICKLINE(C>O,C,O,1,0),COLOR0000CC; STICKLINE(C>O,C,O,0.3,0),COLOR0000EE; STICKLINE(CSTICKLINE(CSTICKLINE(CSTICKLINE(CSTICKLINE(CDRAWICON(CROSS(强,RSI),H*1.02,2); DRAWICON(CROSS(RSI,弱),L*0.99,1); DRAWTEXT_FIX(1,0.00,0,0,'【所属地区】:')COLOR00FFFF; DRAWTEXT_FIX(1,0.08,0,0,DYBLOCK)COLOR00FFFF; DRAWTEXT_FIX(1,0.00,0.06,0,'【所属行业】:')COLORYELLOW; DRAWTEXT_FIX(1,0.08,0.06,0,HYBLOCK)COLORYELLOW;
元通RSI主图RSI副图公式源码(通达信): LC:=REF(CLOSE,1); RSI10:=EMA(MAX(CLOSE-LC,0),10)/EMA(ABS(CLOSE-LC),10)*100 COLORYELLOW; DRAWBAND(RSI10,RGB(255,000,000),20,RGB(0,255,0)); STICKLINE(C>0,80,20,10,0),COLOR000000; RSI:RSI10 COLORYELLOW; 强:80 COLORRED; 中:50 COLORWHITE; 弱:20 COLORGREEN; 低吸高抛操盘线选股公式源码(通达信): 操盘线:=EMA((C+O+H+L)/4,10); 操盘线选股:CROSS(C,操盘线) OR (C>操盘线 AND L<操盘线 AND REF(C,1)>REF(操盘线,1)); RSI低吸选股公式源码(通达信): LC:=REF(CLOSE,1); RSI10:=EMA(MAX(CLOSE-LC,0),10)/EMA(ABS(CLOSE-LC),10)*100; CROSS(RSI10,20); |