最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 二合一的公式做成选股公式

    正文概述    2024-04-14 08:55:45  

    九毛八公式指标

    我将下边两个公式合在一起。 要求:买入和放塔同时满足时,输出黄色柱状线(只有“放塔”或“买入”时,不输出)。并帮忙做成选股公式。谢谢了源码如下 {宝塔线} 放塔:CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)=REF(CLOSE,5)),IF(REF(CLOSE,5)REF(MA(C,5),1),COLORRED; 收塔:CLOSEREF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))))AND CROSS(MA(C,5),C) AND MA(C,5)=0,VB,0),COLORYELLOW; 大盘资金撤走:=IF(VB<=0,VB,0),COLORBLUE; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趋势线: EMA(V11,3),COLORCYAN,LINETHICK1; V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100; AA:=(趋势线<=13) AND FILTER((趋势线<=13),15); 买入:STICKLINE(趋势线<=13 AND V12>13,0,30,1,0),COLOR0099FF; BBB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10); DRAWTEXT (BBB,50,'买入'),COLORYELLOW;

    公式模块:

    {宝塔线}

    放塔:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1, REF(CLOSE,6)<REF(CLOSE,7))))AND crOSS(C,MA(C,5)) AND MA(C,5)>REF(MA(C,5),1); {买入} V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; V6:=EMA(3*V5-2*SMA(V5,18,1),5); V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34); VA:=EMA(V9,3); VB:=(V9-VA)/2; 大盘资金进场:=IF(VB>=0,VB,0),COLORYELLOW; 大盘资金撤走:=IF(VB<=0,VB,0),COLORBLUE; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趋势线:=EMA(V11,3); V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100; BBB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) AND 放塔=1;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 二合一的公式做成选股公式 加入收藏