朵朵爸 发表于 2024-1-18 17:35:05

同花顺小偷花神公式

<div class="stock-fc-code-box">
<div>
<p>以下是同花顺小偷花神公式<br></p><p><br></p><p>源码</p><p><br></p><p><br></p><p>花:=EMA(SLOPE(1,1)+C,3),colorred;</p><p><br></p><p><br></p><p>女:=EMA(SLOPE(1,1)+C,7),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(COUNT (花&lt;女,5)=4 AND 花&gt;=女,C*0.95,'B'), colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(COUNT (花&gt;=女,5)=4 AND 花&lt;女,C*1.08,'S'), coloryellow;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,8,0) ,COLOR000077;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,7,0) ,COLOR000099;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,6,0) ,COLOR0000bb;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,5,0) ,COLOR0000cc;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,4,0) ,COLOR0000dd;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,3,0) ,COLOR0000ee;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,OPEN,2,0) ,COLOR0000ff;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.006,1,0),COLOR0000ff;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.005,2,0),,COLOR0000ee;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.004,3,0),COLOR0000dd;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.003,4,0),COLOR0000cc;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.002,5,0),COLOR0000bb;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,CLOSE,CLOSE/1.001,6,0),COLOR000099;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.006,1,0),COLOR0000ff;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.005,2,0),,COLOR0000ee;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.004,3,0),COLOR0000dd;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.003,4,0),COLOR0000cc;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.002,5,0),COLOR0000bb;</p><p><br></p><p><br></p><p>STICKLINE(花&gt;= 女 ,OPEN,OPEN*1.001,6,0),COLOR000099;</p><p><br></p><p><br></p><p>STICKLINE(花&lt;= 女 ,CLOSE,OPEN/1.006,9,0),colorFF0000;</p><p><br></p><p><br></p><p>STICKLINE(花&lt;= 女 ,CLOSE,OPEN/1.005,8,0),colorFF0000;</p><p><br></p><p><br></p><p>STICKLINE(花&lt;= 女 ,CLOSE,OPEN/1.004,7,0),colorFF3300;</p><p><br></p><p><br></p><p>STICKLINE(花&lt;= 女 ,CLOSE,OPEN/1.003,3,0),colorFFDD00;</p><p><br></p><p><br></p><p>STICKLINE(花&lt;= 女 ,CLOSE,OPEN/1.002,2,0),colorFFFF00;</p><p><br></p><p><br></p><p>DRAWGBKLAST(CLOSE&gt;OPEN,STRIP(RGB(55,50,0),RGB(0,25,1000),1));</p><p><br></p><p><br></p><p>DRAWGBKLAST(CLOSE&lt;OPEN,STRIP(RGB(80,0,0),RGB(100,20,1000),1));</p><p><br></p><p><br></p><p>★花神★:STRLEFT('★花仙女原创作品★',18),coloryellow;</p><p><br></p><p><br></p><p>ema13:=EMA(C,20),COLORFF8080;</p><p><br></p><p><br></p><p>ema34:=EMA(C,60),colorFFFF00;</p><p><br></p><p><br></p><p>ema55:=EMA(C,80),colorff00ff;</p><p><br></p><p><br></p><p>YZ1:=C/O&gt;1.02 AND H/C&gt;1.02 AND O/L&lt;1.02;</p><p><br></p><p><br></p><p>YZ2:=REF(C,1)&gt;REF(O,1) AND O&gt;MA(C,11);</p><p><br></p><p><br></p><p>Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;</p><p><br></p><p><br></p><p>YZ:=YZ1 AND YZ2 AND Y&gt;10;</p><p><br></p><p><br></p><p>X11: DRAWTEXT(YZ,HIGH+0.2,'减仓'),COLORF00FF0;</p><p><br></p><p><br></p><p>gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5) );</p><p><br></p><p><br></p><p>gr2:=ema13&gt;ema34 AND ema34&gt;ema55 AND ema13&gt;REF(ema13,1);</p><p><br></p><p><br></p><p>gr3:=COUNT("bias.bias2"(6,13,24)&gt;10 AND H=HHV(H,gr1),gr1);</p><p><br></p><p><br></p><p>gr4:=H=HHV(H,gr1);</p><p><br></p><p><br></p><p>gr5:="macd.macd"(12,26,9)&lt;REF("macd.macd"(12,26,9),1);</p><p><br></p><p><br></p><p>gr6:=gr2 AND gr3 AND gr4;</p><p><br></p><p><br></p><p>gr7:=gr2 AND gr3 AND gr4 AND gr5;</p><p><br></p><p><br></p><p>DRAWTEXT(gr6 AND gr7,H+0.13,'保存利润'),color00ff00;</p><p><br></p><p><br></p><p>A1:=EMA(C,14),colorwhite,LINETHICK1;</p><p><br></p><p><br></p><p>A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;</p><p><br></p><p><br></p><p>支撑位:IF(A1X&gt;=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK1;</p><p><br></p><p><br></p><p>阻力位:IF(A1X&lt;0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorgreen,LINETHICK1;</p><p><br></p><p><br></p><p>STICKLINE(CROSS(A1X,0),C,O,2,0),coloryellow;</p><p><br></p><p><br></p><p>STICKLINE(CROSS(0,A1X),C,O,2,0),colorgreen;</p><p><br></p><p><br></p><p>DRAWICON(CROSS(花,女) AND CLOSE/REF(CLOSE,1)&gt;1.03,LOW/1.06,25);</p><p><br></p><p><br></p><p>花2:=EMA(SLOPE(1,1)+C,3),colorred;</p><p><br></p><p><br></p><p>女2:=EMA(SLOPE(1,1)+C,7),colorblue;</p><p><br></p><p><br></p><p>花1=MA(CLOSE, 5);</p><p><br></p><p><br></p><p>女1=MA(CLOSE, 60);</p><p><br></p><p><br></p><p>花仙=CROSS(花2,女2) AND 花1&gt;女1;</p><p><br></p><p><br></p><p>仙女=CROSS(女2,花2) AND 花1&gt;女1 AND COUNT(CROSS(花,女) AND 花1&gt;女1 ,30);</p><p><br></p><p><br></p><p>DRAWTEXT(花仙,LOW/1.03,'↖买'),colorwhite;</p><p><br></p><p><br></p><p>DRAWTEXT(仙女,HIGH*1.06,'卖'),coloryellow;</p><p><br></p><p><br></p><p>STICKLINE(花仙,CLOSE,O,2,0),coloryellow;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,7,0),COLOR555500;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,6,0),COLOR888800;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,5,0),COLORAAAA00;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,4,0),COLORCCCC00;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,3,0),COLOREEEE00;</p><p><br></p><p><br></p><p>STICKLINE(仙女,CLOSE,O,2,0),colorwhite;</p><p><br></p><p><br></p><p>STICKLINE(花仙,CLOSE,O,4,0),COLOR0000AA;</p><p><br></p><p><br></p><p>STICKLINE(花仙,CLOSE,O,3,0),COLOR0000CC;</p><p><br></p><p><br></p><p>STICKLINE(花仙,CLOSE,O,2,0),COLOR0000EE;</p><p><br></p><p><br></p><p>买入条件:=花仙;</p><p><br></p><p><br></p><p>卖出条件:=仙女;</p><p><br></p><p><br></p><p>D1:=BARSLAST(买入条件);</p><p><br></p><p><br></p><p>D2:=FLOOR(((C-REF(C,D1))/REF(C,D1))*100);</p><p><br></p><p><br></p><p>IF(D2&gt;=3 AND D2&lt;7,'5',DRAWNULL);</p><p><br></p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2=0,LOW,'↙0'),colorwhite;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;0 AND D2&lt;3,HIGH*1.13,'↙赚2%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=3 AND D2&lt;7,HIGH*1.13,'↙赚5%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=7 AND D2&lt;9,HIGH*1.13,'↙赚8%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=9 AND D2&lt;12,HIGH*1.13,'↙赚10%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=12 AND D2&lt;14,HIGH*1.13,'↙赚12%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=14 AND D2&lt;17,HIGH*1.13,'↙赚15%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=17 AND D2&lt;20,HIGH*1.13,'↙赚18%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=20 AND D2&lt;23,HIGH*1.13,'↙赚22%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=23 AND D2&lt;27,HIGH*1.13,'↙赚25%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=27 AND D2&lt;31,HIGH*1.13,'↙赚30%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=31 AND D2&lt;33,HIGH*1.13,'↙赚32%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=33 AND D2&lt;36,HIGH*1.13,'↙赚35%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=36 AND D2&lt;39,HIGH*1.13,'↙赚38%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=39 AND D2&lt;43,HIGH*1.13,'↙赚40%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=43 AND D2&lt;47,HIGH*1.13,'↙赚45%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=47 AND D2&lt;50,HIGH*1.13,'↙赚48%'),colorred;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=50 AND D2&lt;53,HIGH*1.13,'↙赚50%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=53 AND D2&lt;58,HIGH*1.13,'↙赚55%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=58 AND D2&lt;63,HIGH*1.13,'↙赚60%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=63 AND D2&lt;68,HIGH*1.13,'↙赚65%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=68 AND D2&lt;73,HIGH*1.13,'↙赚70%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=73 AND D2&lt;78,HIGH*1.13,'↙赚75%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=78 AND D2&lt;83,HIGH*1.13,'↙赚80%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=83 AND D2&lt;88,HIGH*1.13,'↙赚85%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=88 AND D2&lt;93,HIGH*1.13,'↙赚90%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=93 AND D2&lt;97,HIGH*1.13,'↙赚95%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=97 AND D2&lt;100,HIGH*1.13,'↙赚99%'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&gt;=100,HIGH*1.03,'↙100%发了!'),coloryellow;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-1 AND D2&gt;-3,HIGH*1.03,'↙-2%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-3 AND D2&gt;-5,HIGH*1.03,'↙-3%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-5 AND D2&gt;-7,HIGH*1.03,'↙-5%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-7 AND D2&gt;-9,HIGH*1.03,'↙-7%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2=-9 ,HIGH*1.03,'-↙9%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-10 AND D2&gt;-12,HIGH*1.03,'↙-10%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-12 AND D2&gt;-14,HIGH*1.03,'↙-12%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-14 AND D2&gt;-16,HIGH*1.03,'↙-14%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-16 AND D2&gt;-18,HIGH*1.03,'↙-16%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-18 AND D2&gt;-20,HIGH*1.03,'↙-18%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-20 AND D2&gt;-23,HIGH*1.03,'↙-20%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-23 AND D2&gt;-26,HIGH*1.03,'↙-23%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-26 AND D2&gt;-28,HIGH*1.03,'↙-25%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-28 AND D2&gt;-33,HIGH*1.03,'↙-30%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-33 AND D2&gt;-35,HIGH*1.03,'↙-32%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-35 AND D2&gt;-39,HIGH*1.03,'↙-35%'),colorblue;</p><p><br></p><p><br></p><p>DRAWTEXT(卖出条件 AND D2&lt;=-39 AND D2&gt;-43,HIGH*1.03,'↙-40%'),colorblue;</p>
</div>
</div>
页: [1]
查看完整版本: 同花顺小偷花神公式