AGC
Mit Hang-Funktion
Window, find Peak tau = tau(openRise/Fall) open = peak (1-tau)+ tauopen if peak > close close = peak (1-taurise)+ tauriseclose hangtimer=0 else if hangtimer++ > hangTime then close = peak (1-taufall)+ taufall*close mag = max(open, close) fac = K * 10^(mag * S) push (window.pop * fac)