煉金土先生的公式,供參考: M5:=MA(C,5); M10:=MA(C,10); M20:=MA(C,20); CR15:=M10>M5 AND REF(M10,1)<=REF(M5,1); CR25:=M20>M5 AND REF(M20,1)<=REF(M5,1); CR21:=M20>M10 AND REF(M20,1)<=REF(M10,1) AND M10>M5; ZQ15:=BARSLAST(CR15); ZQ25:=BARSLAST(CR25); A1:=BACKSET(CR21,ZQ15+1); A2:=BACKSET(CR21,ZQ25+1); A3:=IF(A2=1,M20,IF(A1=1,M5,M10)); DRAWBAND(M10,RGB(0,255,0),A3,RGB(0,0,0)); CR51:=M5>M10 AND REF(M5,1)<=REF(M10,1); CR52:=M5>M20 AND REF(M5,1)<=REF(M20,1); CR12:=M10>M20 AND REF(M10,1)<=REF(M20,1) AND M10<M5; ZQ51:=BARSLAST(CR51); ZQ52:=BARSLAST(CR52); A4:=BACKSET(CR12,ZQ51+1); A5:=BACKSET(CR12,ZQ52+1); A6:=IF(A5=1,M20,IF(A4=1,M5,M10)); DRAWBAND(A6,RGB(255,0,0),M10,RGB(0,0,0)); MA5:M5; MA10:M10; MA20:M20; |
|
來自: Daddyzhang文庫 > 《014股之公式》