通达信战略家系统【时空旋涡战法】时空多空能量 副图源码附图

{时空多空能量源码如下:}




DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);

HY1:=REF(EMA(V1,3),1);

多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;

操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;

减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;

反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;

寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;

DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;

换手:=V*100/CAPITAL;

主力:=MA(换手,4);

大户:=MA(换手,9);

散户:=MA(换手,34);

均量:=(主力+大户+散户)/4;

成交量:V,COLORWHITE,NODRAW;

主力能量:(主力-均量)COLORMAGENTA,NODRAW;

大户能量:(大户-均量)COLORYELLOW,NODRAW;



散户能量:(散户-均量)COLORBLUE,NODRAW;

操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;

减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;

反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;

寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;

DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;

操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;

减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;

反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;

寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;

DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;



操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;

减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;

反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;

寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;

DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;

JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(散户能量));

ZLCJ:=JZ*ABS(主力能量);

DHCJ:=JZ*ABS(大户能量);



SHCJ:=JZ*ABS(散户能量);




{时空旋涡副图源码事下}




DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);XA_1:=REF(CLOSE,3)/REF(CLOSE,4)>1.09;

XA_2:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.1,0.91) AND LOW<REF(CLOSE,3) AND REF(CLOSE,1)/REF(CLOSE,2)<0.965 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,2)/REF(CLOSE,3)>1.09 AND REF(HIGH,2)/MAX(REF(CLOSE,2),REF(OPEN,2))>1.07) AND NOT(REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,3)>1.09);

XA_3:=XA_1 AND XA_2;

XA_4:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);

XA_5:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,4),1.1,0.91) AND LOW<REF(CLOSE,4) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1);

XA_6:=NOT(REF(OPEN,3)/REF(CLOSE,3)>1.07 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(LOW,4));

XA_7:=XA_4 AND XA_5 AND XA_6;

XA_8:=REF(CLOSE,5)/REF(CLOSE,6)>1.09 AND REF(CLOSE,5)=REF(HIGH,5);

XA_9:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,5),1.1,0.91) AND LOW<REF(CLOSE,5) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,4)/REF(CLOSE,5)>1.05 AND REF(HIGH,4)/MAX(REF(CLOSE,4),REF(OPEN,4))>1.07) AND NOT(REF(LOW,4)/REF(CLOSE,5)>1.02 AND REF(CLOSE,4)<REF(OPEN,4) AND MA(CLOSE,10)/OPEN>1.03 AND REF(OPEN,1)<REF(MA(CLOSE,10),1)) AND NOT(REF(OPEN,3)/REF(CLOSE,3)>1.07 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(LOW,4) AND REF(CLOSE,4)/REF(CLOSE,5)>1.09);

XA_10:=XA_8 AND XA_9;

XA_11:=REF(CLOSE,3)/REF(CLOSE,4)>1.09;

XA_12:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.1,0.91) AND LOW<REF(CLOSE,3) AND EVERY(MA(CLOSE,5)>MA(CLOSE,10),4) AND BETWEEN(REF(OPEN,1)/REF(MA(CLOSE,5),1),1.01,0.99);

XA_13:=XA_11 AND XA_12;

XA_14:=XA_3 OR XA_7 OR XA_10 OR XA_13;

XA_15:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);

XA_16:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,4) AND BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),1.015,0.985) AND OPEN<REF(CLOSE,4) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),2);

XA_17:=REF(HIGH,1)>REF(CLOSE,1);

XA_18:=NOT(REF(CLOSE,1)>REF(OPEN,1) AND REF(CLOSE,1)/REF(OPEN,1)>1.03);

XA_19:=XA_15 AND XA_16 AND XA_17 AND XA_18;

XA_20:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);

XA_21:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,3) AND (REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)/REF(CLOSE,1)<1.01) AND OPEN<REF(CLOSE,3) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),2);

XA_22:=REF(HIGH,1)>REF(CLOSE,1);

XA_23:=XA_20 AND XA_21 AND XA_22;

XA_24:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);

XA_25:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,3) AND (REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)/REF(CLOSE,1)<1.01) AND OPEN<REF(CLOSE,3) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),3);

XA_26:=REF(HIGH,1)>REF(CLOSE,1);

XA_27:=XA_24 AND XA_25 AND XA_26{2};

XA_28:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(CLOSE,3)/REF(CLOSE,4)<0.92 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(OPEN,4));

XA_29:=XA_19 OR XA_23 OR XA_27 AND XA_28;

XA_30:=IF(NAMELIKE(2),0,1) AND IF(NAMELIKE(3),0,1);

XA_31:=IF(CODELIKE(1),0,1);

时空旋涡:=XA_14 OR XA_29 AND XA_30 AND XA_31,COLORRED,LINETHICK2;





STICKLINE(时空旋涡,0,2,3,1),COLORYELLOW;



STICKLINE(时空旋涡,9,11,3,1),COLORYELLOW;



DRAWTEXT(时空旋涡,8,' 时空旋涡'),COLORYELLOW;



DRAWICON(时空旋涡,1,9);



DRAWICON(时空旋涡,2,2);



DRAWICON(时空旋涡,3,1);



DRAWICON(时空旋涡,4,1);



DRAWICON(时空旋涡,5,1);



DRAWICON(时空旋涡,6,1);



DRAWICON(时空旋涡,7,28);



DRAWICON(时空旋涡,8,1);



DRAWICON(时空旋涡,9,1);



DRAWICON(时空旋涡,10,9);



DRAWICON(时空旋涡,11,1);






未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图