Two Pole Oscillator

Forums ProRealTime forum Italiano Supporto ProBuilder Two Pole Oscillator

  • This topic has 3 replies, 2 voices, and was last updated 1 week ago by avatarIván.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #243463

    Buonasera, chiedo se possibile, la traduzione del codice di questo indicatore, che mi pare interessante. Grazie!

     

    // Two-pole smooth filter function
    f_two_pole_filter(source, length) =>
    var float smooth1 = na
    var float smooth2 = na
    alpha = 2.0 / (length + 1)

    if na(smooth1)
    smooth1 := source
    else
    smooth1 := (1 – alpha) * smooth1 + alpha * source

    if na(smooth2)
    smooth2 := smooth1
    else
    smooth2 := (1 – alpha) * smooth2 + alpha * smooth1

    #243491

    Penso che ciò che hai passato non sia completo, ma bene, ti darò quella che sarebbe la traduzione supponendo ad esempio che source=RSI.

    1 user thanked author for this post.
    #243503
    #243547

    Ok, questo codice è in coda per le traduzioni: lascio il post qui per non duplicarlo ( https://www.prorealcode.com/topic/2-pole-oscillator-by-big-beluga/ )

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

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