 | |  |  |
[大智慧L2]大智慧L2可移动黄金分割源码公式
x:=BARPOS-hhv(if(DISPSTATUS=1,BARPOS,0)中秋节快乐)+1;
hh:=hhv(h,x); ll:=llv(l,x); hl:=hh-ll;
a80:=.809*hl+ll;a61:=.618*hl+ll;
a38:=.382*hl+ll;a70:=0.7*hl+ll;
a19:=.191*hl+ll; a5:=.5*hl+ll;
a0:=.001*hl+ll; a100:=1.00*hl+ll;
DRAWTEXTREL(0,0.05,'最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄' ),COLORRED;
DRAWTEXTREL(0,900+80,'最低.................................................................................................................................'),color00ff00;
DRAWTEXTREL(0,0.50*(900+65),'0.5..................................................................................................................................'),color0099ff;
DRAWTEXTREL(0,0.191*(900+18),'0.809................................................................................................................................'),COLORYELLOW;
DRAWTEXTREL(0,0.30*(900+38),'0.7................................................................................................................................'),COLORYELLOW;
DRAWTEXTREL(0,0.382*(900+58),'0.618................................................................................................................................'),COLORYELLOW;
DRAWTEXTREL(0,0.618*(900+70),'0.382................................................................................................................................'),COLORYELLOW;
DRAWTEXTREL(0,0.809*(900+76),'0.191................................................................................................................................'),COLORYELLOW;
DRAWTEXTREL(120,1.00*(900+95),NUMTOSTR(a0)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(155,0.809*(900+100),NUMTOSTR(a19)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(155,0.618*(900+105),NUMTOSTR(a38)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(155,0.5*(900+90),NUMTOSTR(a5)),VALIGN2,ALIGN2,color0099ff;
DRAWTEXTREL(155,0.382*(900+90),NUMTOSTR(a61)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(155,0.3*(900+90),NUMTOSTR(a70)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(155,0.191*(900+100),NUMTOSTR(a80)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(120,0.001*(900+100),NUMTOSTR(a100)),VALIGN0,ALIGN2,colorwhite; |

| |  | |  |
|