Source: https://fxcodebase.com/code/viewtopic.php?f=38&t=59346
Forum: 38 · Topic 59346 · 1 post(s)
Alexander.Gettinger · Thu Aug 29, 2013 10:48 am
Original LUA indicator: http://fxcodebase.com/code/viewtopic.php?f=17&t=59154.
Formulas: Top[i] = Simple Moving average (Price, Length) + Dev, Bottom[i] = Simple Moving average (Price, Length) - Dev, MA[i] = Simple moving average (Price, MA_Length), Mirror[i] = 2Simple Moving average (Price, Length) - MA[i], where Dev = DeviationSqrt(Sum/Length), Sum - sum(Price[pos-i]-Simple Moving average (Price, Length)).
Download: