快生活 - 生活常识大全

文华公式波峰波谷信号


  MA5:MA(C,5),NODRAW;
  MA10:MA(C,10),NODRAW;
  MA20:MA(C,20),NODRAW;
  DD:MA5>MA10&&MA10>MA20;
  KK:MA5<MA10&&MA10<MA20;
  SS:C>HV(MAX(C,O),3);
  SS1:C<LV(MIN(C,O),3);
  DHC:COUNT(SS1,SUMBARS(SS,1))=1&&SS1;
  BF1:BACKSET(DHC,SUMBARS(SS,1));
  DRAWTEXT(CROSS(BF1,0.5),H,"波峰");
  DRAWICON(REF(DHC,1)&&C>REF(C,1)&&DD,L,4),VALIGN0;
  T6C:=VALUEWHEN(REF(DHC,1)&&C>REF(C,1)&&DD,C);
  ZS1:=L<T6C*(1-0.005);
  ZS2:=COUNT(ZS1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZS1&&SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1)>1;
  DRAWTEXT(ZS2,H,"止损"),COLORRED;
  BFC:=VALUEWHEN(CROSS(BF1,0.5),H);
  ZY1:=C<ref(c,1)*(1-0.005) h="">BFC;</ref(c,1)*(1-0.005)>
  ZY2:=COUNT(ZY1,SUMBARS(REF(DHC,1)&amp;&amp;C&gt;REF(C,1)&amp;&amp;DD,1))=1&amp;&amp;ZY1&amp;&amp;EXIST(REF(DHC,1)&amp;&amp;C&gt;REF(C,1)&amp;&amp;DD,SUMBARS(CROSS(BF1,0.5),1));
  DRAWTEXT(ZY2,H,"止赢"),COLORRED;
  KHC:COUNT(SS,SUMBARS(SS1,1))=1&amp;&amp;SS;
  BG1:BACKSET(KHC,SUMBARS(SS1,1));
  DRAWTEXT(CROSS(BG1,0.5),L,"波谷"),VALIGN0;
  DRAWICON(REF(KHC,1)&amp;&amp;C&lt;REF(C,1)&amp;&amp;KK,H,5);
  XT6C:=VALUEWHEN(REF(KHC,1)&amp;&amp;C&lt;REF(C,1)&amp;&amp;KK,C);
  XZS1:=H&gt;XT6C*(1+0.005);
  XZS2:=COUNT(XZS1,SUMBARS(REF(KHC,1)&amp;&amp;C&lt;REF(C,1)&amp;&amp;KK,1))=1&amp;&amp;XZS1&amp;&amp;SUMBARS(REF(KHC,1)&amp;&amp;C<ref(c,1)&&kk,1)>1;</ref(c,1)&&kk,1)>
  DRAWTEXT(XZS2,L,"止损"),COLORGREEN;
  XBFC:=VALUEWHEN(CROSS(BG1,0.5),L);
  XZY1:=C&gt;REF(C,1)*(1+0.005) &amp;&amp; L&lt;XBFC;
  XZY2:=COUNT(XZY1,SUMBARS(REF(KHC,1)&amp;&amp;C&lt;REF(C,1)&amp;&amp;KK,1))=1&amp;&amp;XZY1&amp;&amp;EXIST(REF(KHC,1)&amp;&amp;C&lt;REF(C,1)&amp;&amp;KK,SUMBARS(CROSS(BG1,0.5),1));
  DRAWTEXT(XZY2,L,"止赢"),COLORGREEN;
网站目录投稿:友芹