Digital Signal Processing – Defining & Using the Difference Equation

Forums ProRealTime English forum General trading discussions Digital Signal Processing – Defining & Using the Difference Equation

  • This topic has 11 replies, 5 voices, and was last updated 2 years ago by avatarJS.
Viewing 12 posts - 1 through 12 (of 12 total)
  • #172558

    JS please can you provide a link to an Indicator or script that provides the ‘difference equation’ of price action?

    Preferably not a link to reams of theory on Digital Signal Processing. I have scan read such (sincc you mentioned DSP on another Topic) and it has similarities to the theory of radar circuitry (wave frequencies, bandpass filters etc) .

    Is there anything on this website that we can use to give us the ‘difference equation’?

    Is DSP something new (to us?) that we should try out and you are the man who is going to lead us onward and upward by pointing us to a practicable and usable source of the ‘difference equation’?? 🙂

    #172559
    JS

    Hi GraHal,

    I hope you understand that I can’t reveal my algorithm because it took me 20 years to come to this point but you are in the right direction, it has similarities to the theory of wave frequencies and filters.

    Black and Scholes also used a difference equation for  option pricing (only continue instead of discreet).

    I can tell you that ALL price action is discreet, lineair and time invariant. Such a system is called a LTD -system.

    The general difference equation for a LTD -system is:

    {\displaystyle y[n]=\sum _{k=0}^{N}a_{k}\,x[n-k]+\sum _{i=1}^{M}b_{i}\,y[n-i]}

    It is not that hard, if i can do it you can do it.

    1 user thanked author for this post.
    #172561

    Mods

    To save hijacking jebus89 Topic any further, please could you transfer the last 2 posts above – mine and JS – to a new Topic named:

    Digital Signal Processing – Defining & Using the ‘Difference Equation’

     

     

    #172565

    Done.

     

    1 user thanked author for this post.
    #172568

    3 trades a year using 5 min timeframe seems odd?

    #172570
    JS

    Hi Eric,

    The system is Time Invariant so it doesn’t matter what timeframe your on.

    You can use 5 min, 15 min, 1 hour, etc. and the system will open exactly the same amount of trades…

     

    #172694
    JS

    Positions opened by the system at this moment…

    #172697

    So can PRT handle / calculate y[n] using the formula below?

    Are you going to tell us (or direct us to a source) what the letters stand for when related to Price of an Instrument?

    {\displaystyle y[n]=\sum _{k=0}^{N}a_{k}\,x[n-k]+\sum _{i=1}^{M}b_{i}\,y[n-i]}

    #172726
    JS

    Hi GraHal,

    Have you any idea how PRT works, what happens when you (for example) use a simple moving average and how it is calculated by PRT?

    This is how PRT calculate a SMA:

    N = number of samples (or time period)

    Xi = Close[n]

    Mu or y[n] is the variable

     

    1 user thanked author for this post.
    #172758

    Hi GraHal,

    this might be an interesting read

    https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Book%3A_Signals_and_Systems_(Baraniuk_et_al.)/12%3A_Z-Transform_and_Discrete_Time_System_Design/12.08%3A_Difference_Equations

    1 user thanked author for this post.
    #172784

    Hahaha … nice one!  The link casts ‘light on the wizardry’! 🙂

    From the definition below of Difference Equation … it sounds similar to momentum?

    An equation that shows the relationship between
    consecutive values of a sequence and the differences among them.  

    #174270
    JS

    https://www.tradingview.com/chart/GBPUSD/WLP5849o-Digital-Filters-And-DSP/

    Interesting article on trading view, shows that a SMA is the basis of a filter…

Viewing 12 posts - 1 through 12 (of 12 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login