通达信指标黄金分割主图源码
N:=80;M:=3; MA5:MA(C,5); MA13:MA(C,13); 高:=REF(HHV(H,N),M); 低:=REF(LLV(L,N),M); H19:=高-(高-低)*0.191; H38:=高-(高-低)*0.382; H中:=高-(高-低)*0.5; H61:=高-(高-低)*0.618; H80:=高-(高-低)*0.809; 顶点:REFDATE(高,DATE),COLORWHITE; .8:REFDATE(H19,DATE),COLORYELLOW; 8.2:REFDATE(H38,DATE),COLORMAGENTA; P:REFDATE(H中,DATE),COLORRED; a.8:REFDATE(H61,DATE),COLORMAGENTA; .9:REFDATE(H80,DATE),COLORYELLOW; 低点:REFDATE(低,DATE),COLORWHITE