David902 发表于 2023-11-27 01:10:16

宝塔线升级版——元通宝塔主图公式分享

<p data-first-child >宝塔线指标是很不错的短线指标,反应快速,但是宝塔线指标买卖信号频繁,容易导致人们忽略了股票的趋势走向,元通在宝塔线指标的基础上增加一条生命线(18日均线)来追踪股票的短期趋势变化,这样快速变化的宝塔线买卖信号再加上生命线趋势走向结合,可以很好的掌握股价快速和慢速变化相得益彰。趋势线的买卖信号看生命线与收盘价,短线买卖信号生命线下用宝塔线买点,生命线上用宝塔线卖点,形成一种生命线下买生命线上卖的分批买卖的交易系统。</p><figcaption>分批买卖</figcaption><p >元通宝塔主图公式源码(通达信):</p><p >DRAWGBK(C>0,RGB(0,00,100),RGB(0,150,150),0,' ',0);</p><p >A:=(C+O+H+L)/4;</p><p >生命线:EMA(A,18)COLORRED,LINETHICK2;</p><p >IF(C<生命线,生命线,DRAWNULL)COLORGREEN,LINETHICK2;</p><p >VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);</p><p >VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);</p><p >VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;</p><p >VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;</p><p >{红}</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),3.2,0),COLOR000555;</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),2.7,0),COLOR000777;</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),2.1,0),COLOR000999;</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),1.5,0),COLOR000BBB;</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),0.9,0),COLOR000DDD;</p><p >STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR</p><p >VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(C,1),0.3,0),COLOR000FFF;</p><p >{绿}</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),3.2,0),COLOR005500;</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),2.7,0),COLOR007700;</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),2.1,0),COLOR009900;</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),1.5,0),COLOR00BB00;</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),0.9,0),COLOR00DD00;</p><p >STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(C,1),0.3,0),COLOR00FF00;</p><p >{金}</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLOR003333;</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLOR005555;</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLOR007777;</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLOR009999;</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLOR00BBBB;</p><p >STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLOR00DDDD;</p><p >{蓝}</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00;</p><p >STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;</p><p >DRAWTEXT_FIX(1,0.00,0,0,'【所属地区】: ')COLOR00FFFF;</p><p >DRAWTEXT_FIX(1,0.08,0,0,DYBLOCK)COLOR00FFFF;</p><p >DRAWTEXT_FIX(1,0.00,0.06,0,'【所属行业】: ')COLORYELLOW;</p><p >DRAWTEXT_FIX(1,0.08,0.06,0,HYBLOCK)COLORYELLOW;</p><figcaption>元通宝塔主图</figcaption><p >1生命线选股公式源码(通达信):</p><p >生命线:=EMA((C+O+H+L)/4,18);</p><p >生命线选股:CROSS(C,生命线) OR (C>生命线 AND L<生命线 AND REF(C,1)>REF(生命线,1));</p><p >2宝塔线选股公式源码(通达信):</p><p >VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);</p><p >VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);</p><p >VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);</p><p >VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);</p><p >VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR</p><p >VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;</p><p >XG:FILTER(VAR19=1,5);</p><p></p>

悠悠小露屑 发表于 2023-12-18 17:26:17

路过,帮顶一下!

拖衣板捞 发表于 2024-4-1 12:50:24

希望更多人一起分享,感谢!
页: [1]
查看完整版本: 宝塔线升级版——元通宝塔主图公式分享