• {【压力预测线】}   
  • DRAWGBK((CLOSE > 0),COLORRGB(0,0,0),COLORRGB(0,0,0),1);   
  • KLINE(O,H,L,C,0);   
  • AB:=SYSPARAM(1);   
  • BB:=SYSPARAM(3);   
  • D:=(BB – AB);   
  • DA:=BACKSET(ISLASTBAR,LLVBARS(L,(D+1))+1);    
  • 低点:=COUNT(DA,(D+1))=1;{低点位置}   
  • ll:=llv(L,(D + 1));   
  • 最低:ll[BB],COLORred,LINETHICK0;   
  • x1:=最低*(1+0.0809);   
  • x2:=最低*(1+0.1618);   
  • x3:=x2*(1+0.0809);   
  • x4:=x2*(1+0.1618);   
  • x5:=x4*(1+0.0809);   
  • x6:=x4*(1+0.1618);   
  • x7:=x6*(1+0.0809);   
  • x8:=x6*(1+0.1618);   
  • DRAWLINE(低点,最低, ISLASTBAR,REF(最低,1),0),Color939300,LINEDOT;    
  • DRAWLINE(低点,x1,ISLASTBAR,REF(x1,1),0),Color008080,LINEDOT;    
  • DRAWLINE(低点,x2,ISLASTBAR,REF(x2,1),0),Color939300,LINEDOT;    
  • DRAWLINE(低点,x3,ISLASTBAR,REF(x3,1),0),Color008080,LINEDOT;    
  • DRAWLINE(低点,x4,ISLASTBAR,REF(x4,1),0),Color939300,LINEDOT;    
  • DRAWLINE(低点,x5,ISLASTBAR,REF(x5,1),0),Color008080,LINEDOT;   
  • DRAWLINE(低点,x6,ISLASTBAR,REF(x6,1),0),Color939300,LINEDOT;    
  • DRAWLINE(低点,x7,ISLASTBAR,REF(x7,1),0),Color008080,LINEDOT;    
  • DRAWLINE(低点,x8,ISLASTBAR,REF(x8,1),0),Color939300,LINEDOT;    
  • VERTLINE(低点),COLORRED,LINETHICK1;   
  • DRAWTEXT(低点,REF(最低*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 最低价:’+NUMTOSTR(最低,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x1*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 0.5阶:’+NUMTOSTR(x1,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x2*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 1.0阶:’+NUMTOSTR(x2,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x3*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 1.5阶:’+NUMTOSTR(x3,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x4*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 2.0阶:’+NUMTOSTR(x4,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x5*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 2.5阶:’+NUMTOSTR(x5,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x6*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 3.0阶:’+NUMTOSTR(x6,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x7*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 3.5阶:’+NUMTOSTR(x7,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • DRAWTEXT(低点,REF(x8*0.996,BARSLAST(BARSCOUNT(C)=AB)),’ 4.0阶:’+NUMTOSTR(x8,2)+’元’),ALIGN1,Color838383,PXUP35;   
  • {使用方法,用光标移至所预测底部的前高点位置,公式能自动寻找最低点的。}   

  • 声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。