{N 10 30 10}箱底抄:=TROUGH(CLOSE,N,1)*1.02;箱底转换:箱底gt;REF(箱底,1);{有未来会漂袭移出2113来信号代表波5261段起涨容易买早!}{N 10 30 10}箱顶4102:=PEAK(CLOSE,N,1)*0.98;箱顶转换:箱顶gt;REF(箱顶,1);{有未来会漂移出来信号代表波段见顶容易卖1653早!}
((LOW HIGH CLOSE O)/4,5),58),COLOR00AAFF;箱底:LLV(MA((LOW HIGH CLOSE O)/4,6),88),COLORGREEN,LINETHICK2;VAR2:=EMA((HIGH LOW CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10 箱底,2);VAR3:=(3*VAR2-2*SMA(VAR2,5,1))*0.3;VAR4:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));VAR5:=EMA(3*VAR4-2*SMA(VAR4,18,1),5);VAR6:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));VAR7:=3*SMA(VAR6,3,1)-2*SMA(SMA(VAR6,3,1),5,1);VAR8:=(INDEXC*2 INDEXH INDEXL)/4;VAR9:=EMA(VAR8,13)-EMA(VAR8,34);VARA:=EMA(VAR9,5);资金流向:=(VAR9-VARA 箱底)*1,COLORYELLOW;VARG1:=1.86*EMA(CLOSE,5)-EMA(CLOSE,13);趋势力度:VARG1,COLORFFAA99;K2:=BACKSET(趋势力度gt;REF(趋势力度,1),2);IF(K2,趋势力度,DRAWNULL),COLORFF00FF,LINETHICK1;AS:=箱底;牛气冲天:STICKLINE( 趋势力度gt;=AS,AS ,趋势力度 ,0,0 ) ,COLORRED ;STICKLINE( 趋势力度lt;= REF(趋势力度,1)AND 趋势力度gt;AS,AS ,趋势力度 ,0,1 ) ,COLORWHITE;趁机派发:STICKLINE( REF(趋势力度,2)lt;REF(趋势力度,1) AND 趋势力度lt;= REF(趋势力度,1)AND 趋势力度gt;AS,AS ,趋势力度 ,0 ,0 ) ,COLORGREEN ;熊气盖天:STICKLINE( 趋势力度lt;AS-0.5,AS-0.5 ,趋势力度 ,0 ,1 ) , ;MA3:MA(C,3),COLORAAEE00;MA21:MA(C,21),COLORGREEN;MA151:MA(C,151),COLOR0000CF;K1:=BACKSET(MA21gt;REF(MA21,1),2);{股旁网-股票公式网站 www.GUpang.com}强A:IF(K1,MA21,DRAWNULL),COLOR0000FF,LINETHICK2;{DRAWTEXT( CROSS(MA3 , 箱底),L*0.99 , #39;试#39;),COLORRED;}DRAWTEXT( CROSS(MA3 , MA21),L , #39;买#39;),COLORYELLOW;DRAWTEXT( CROSS(MA3 , 箱顶) AND Cgt;箱顶,箱顶 , #39;追#39;),COLOR00EEAA;DRAWTEXT( CROSS(箱顶,MA3)AND Clt;箱顶 ,H , #39;卖#39;) ,COLORFFAA99;DRAWTEXT( REF(资金流向 ,2)lt;REF(资金流向 ,1) AND REF(资金流向 ,1)gt;资金流向AND 资金流向gt;箱顶 AND Cgt;箱顶,H*1.02, #39;顶#39;),COLORWHITE;DRAWTEXT( CROSS(趋势力度 , 箱底),箱底, #39;加仓#39;),COLORRED;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H B0;KB2:=L-B0;STICKLINE((E1 0)/34=FLOOR((E1 0)/34),KB2,KB2-3*B0,1,0),COLORYELLOW,LINETHICK2;DRAWTEXT((E1 0)/34=FLOOR((E1 0)/34),KB2-2*B0,#39;时间窗#39;),COLORWHITE;
箱底:=TROUGH(3,5,1)*0.999;GL:BETWEEN((C-箱底)/箱底*100,0,1);友情提示:箱体指标本来用了未来函数画线;因此这个选股公式必然也要用到未来函数,谨慎使用。
这个可以用波段公式:上升:1.129,21131.2747,1.5(辅助)1.625,2,2.375,2.625 下跌:0.8709,0.7252,0.625,0.5,0.375这种5261方法比较适合4102钱,黄金分割之类的比较适合点数这种方法比较准确,特1653别适合股票内,另外最好配合角度线。具体的算容法,自己多试验几次就可以了...
{ 参数 P:1,100,6 参数 N:1,100,3 参数 RN:1,100,10 参数 RM:1,30,3}VAR1:=(quot;399139$Cquot;);VAR2:=(quot;399190$Cquot;);VAR3:=(quot;399132$Cquot;);VAR4:=(quot;399150$Cquot;);VAR5:=(quot;399138$Cquot;);VAR6:=(quot;399200$Cquot;);VAR7:=(quot;399110$Cquot;);VAR8:=(quot;399136$Cquot;);VAR9:=(quot;399135$Cquot;);VAR10:=(quot;399130$Cquot;);VAR11:=(quot;399160$Cquot;);VAR12:=(quot;999999$Cquot;);VAR13:=(quot;399137$Cquot;);
【箱顶】:PEAK(CLOSE,N,1)*0.98;【箱底】:TROUGH(CLOSE,N,1)*1.02;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;
【箱顶】:PEAK(CLOSE,N,1)*0.98;【箱底】:TROUGH(CLOSE,N,1)*1.02;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;没有选股条件,如何做。
标签: #股票箱指标源码