Attachments forums

List of attachments posted on this forum.


All files on forums: 136862

Re: Something interesting please post here (Metatrader)

ionone, Wed May 08, 2024 6:13 pm

Resonant Peak Filter v1.0

This indicator comes directly from DSP (Digital SIgnal Processing)
you know how with an EQ you can add a little bit of frequencies in a mix or so ?
for example add some bass if lacking.
well you can also add so much of ONE frequency that it starts to ring and oscillate

this indicator does exactly this : it resonates at a particular frequency

here is a description of the parameters

First I added an adaptive parameter. The Adaptive parameter looks at the difference from the price and the curve. If the difference is too big, the frequency of resonance is hightened, if the difference is smaller then frequency is lowered
  • invertCurve : uses MA to "invert" the curve
  • invertCurvePeriod : MA period (you have to adapt the period to the MA otherwise you're gonna have unexpected results
  • shift : shifts the curve forward
  • f : frequency of resonance [0..1]
  • q : amount of resonance [0..1]
  • Adaptive : turns adaptive mode ON
  • fChangeUp (see explanation below)
  • fChangeDn
  • fMin : minimum frequency in the adapting process
  • fMax : maximum frequency in the adapting process
  • ATRPeriod
  • ATRDistMul (see explanation below)
if price is away from the curve more than ATRDistMul * atr(ATRPeriod) then frequency is upped by fChangeUp amount until fMax is reached
if price is closer from the curve less than ATRDistMul * atr(ATRPeriod) then frequency is loweredby fChangeDn amount until fMin is reached

Default mode
Q = 0.8 Q = 0.2 F = 0.5 Q = 0.8

Adaptive Mode "ON"

Default (ATRDistMul 5.0) ATRDistMul 3.0
All files in topic