多空探测副图红绿两线低位金叉出现金股字样为买入信号
多方趋势:((8)*(SMA(((CLOSE-LLV(LOW,42))/(HHV(HIGH,47)-LLV(LOW,47)))*(33),5,1))-(4)*(SMA(SMA(((CLOSE-LLV(LOW,42))/(HHV(HIGH,47)-LLV(LOW,47)))*(33),5,1),4,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,42))/(HHV(HIGH,47)-LLV(LOW,47)))*(33),5,1),2,1),2,1)),COLOR0000FF;空方趋势:(EMA(WMA(多方趋势,2),2)),COLORF0F000;STICKLINE((多方趋势>100) AND (多方趋势>=空方趋势),100,多方趋势,1,1),COLOR00FF00;STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,1,0),COLOR0000FF;STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,1,0),COLORF0F000;STICKLINE((空方趋势<1) AND (空方趋势>多方趋势),多方趋势,40,8,0),COLOR00FFFF;TJ:=FILTER((空方趋势<1) AND (空方趋势>多方趋势),1);DRAWTEXT(TJ,50,'低吸'),COLORFFFFFF;探测金矿:(空方趋势<1) AND (空方趋势<=多方趋势),COLOR00FFFF;选金股:CROSS(多方趋势,空方趋势) AND (空方趋势<13),COLOR0000FF;DRAWTEXT(CROSS(多方趋势,空方趋势) AND (空方趋势<13),58,'金股'),COLOR00FFFF;中间线:50,COLORFFFFFF,POINTDOT;TJ1:=CROSS(探测金矿 OR 选金股,0.5);TJ2:=CROSS(空方趋势,多方趋势);TJ3:=COUNT(TJ2,BARSLAST(TJ1));DRAWICON(TJ1,空方趋势*0.85,'buy');DRAWICON(TJ2 AND TJ3=1,空方趋势*1.15,'SELL');卖点:TJ2 AND TJ3=100
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出多方趋势:((8)*(SMA(((收盘价-42日内最低价最低值)/(47日内最高价最高值-47日内最低价最低值))*(33),5,1))-(4)*(SMA(SMA(((收盘价-42日内最低价最低值)/(47日内最高价最高值-47日内最低价最低值))*(33),5,1),4,1))-SMA(SMA(SMA(((收盘价-42日内最低价最低值)/(47日内最高价最高值-47日内最低价最低值))*(33),5,1),2,1),2,1)),COLOR0000FF
输出空方趋势:(EW多方趋势的2日简单移动平均,2)),COLORF0F000
STICKLINE((多方趋势>100) AND (多方趋势>=空方趋势),100,多方趋势,1,1),COLOR00FF00
STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,1,0),COLOR0000FF
STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,1,0),COLORF0F000
STICKLINE((空方趋势<1) AND (空方趋势>多方趋势),多方趋势,40,8,0),COLOR00FFFF
TJ赋值:FILTER((空方趋势<1) AND (空方趋势>多方趋势),1)
当满足条件TJ时,在50和'低吸'位置书写文字
输出探测金矿:(空方趋势<1) AND (空方趋势<=多方趋势),COLOR00FFFF
输出选金股:多方趋势上穿空方趋势 AND (空方趋势<13),COLOR0000FF
DRAWTEXT(多方趋势上穿空方趋势 AND (空方趋势<13),58,'金股'),COLOR00FFFF
输出中间线:50,COLORFFFFFF,POINTDOT
TJ1:=探测金矿 OR 选金股上穿0.5
TJ2:=空方趋势上穿多方趋势
TJ3:=COUNT(TJ2,上次TJ1距今天数)
当满足条件TJ1时,在空方趋势*0.85和'BUY'之间画图标
当满足条件TJ2 AND TJ3=1时,在空方趋势*1.15和'SELL'之间画图标
输出卖点:TJ2 AND TJ3=100