mgerber![]() Regular ![]() ![]() Posts: 61 Joined: 3/30/2006 Location: Issaquah, WA ![]() | Hi, Jim. Thanks for the comment. But what straight formula can I insert into ATS? I tried everything I could think of to massage what I deciphered from Mel's coding, and could not get anything to work without compile errors. Did I improperly decipher the code? #Indicator #param "Zlength", 4 #param "buylevel",-1.6 #param "shortLevel",1.6 dim av,st,zs as single if Bar>Zlength*2 then av = SMA(C,Zlength) st = STD(C,Zlength) zs = (c-av)/st plot("zScore",zs) plot("buyLevel",buyLevel,black) plot("shortLevel",shortLevel,black) end if Return zs ' Return the value calculated by the indicator --Mark G. [Edited by mgerber on 12/10/2017 2:03 PM] |