Conte Caimano

Butterworth Filter

Category: Indicators By: Conte Caimano Created: September 7, 2016, 2:19 PM
September 7, 2016, 2:19 PM
Indicators
7 Comments
Butterworth Filter

EN : The Butterworth filter (or “maximally flat”) is one of the simplest electronic filters. Its purpose is to obtain a frequency response of the flat as possible in the passband. Applied to the retail price index aims to filter out the “noise” and give you an indication on the direction of the more readable price.

IT: Filtro di Butterworth Il filtro Butterworth (o “massimamente piatto”) è uno dei più semplici filtri elettronici. Il suo scopo è ottenere una risposta in frequenza il più possibile piatta nella banda passante. Applicato all’evoluzione dei prezzi mira a filtrare il “rumore di fondo” e dare un indicazione sulla direzione del prezzo più leggibile.

// ---------------------------------------------------------------------
// Filtro di Butterworth
//
// Il filtro Butterworth (o "massimamente piatto") è uno dei più semplici filtri elettronici.
// Il suo scopo è ottenere una risposta in frequenza il più possibile piatta nella banda passante.
//
// Applicato all'evoluzione dei prezzi mira a filtrare il "rumore di fondo" e dare un indicazione sulla direzione del prezzo più leggibile.
// ---------------------------------------------------------------------
IF BarIndex < 2 THEN
 Butterworth = Close
ELSE
 Butterworth = Butterworth[1] - (Butterworth[2] / 3.414) + Close * ( 1 /3.414)
ENDIF

RETURN Butterworth AS "Filtro di Butterworth "
// ---------------------------------------------------------------------

 

Download
Filename: Filtro-di-Butterworth.itf
Downloads: 109
Conte Caimano
Conte Caimano Master
As an architect of digital worlds, my own description remains a mystery. Think of me as an undeclared variable, existing somewhere in the code.
Author’s Profile

Comments

StefanoCG
10 years ago
#

ciao Fabio ... non hai mica tutti i torti ... la notte bisognerebbe dormire per non scrivere baggianate :-) 

// ---------------------------------------------------------------------
// Filtro di Butterworth
// -------------------------- VARIABILI
//G = 1 default
// ---------------------------------------------------------------------
IF BarIndex < 2 THEN
Butterworth = Close
ELSE
Butterworth = Butterworth[1] - (Butterworth[2] / (G*3.414)) + Close * ( 1 /(G*3.414))
ENDIF

RETURN Butterworth AS "Filtro di Butterworth "
// ---------------------------------------------------------------------

 

#

Volendo aumentare l'effetto filtrante, quali parametri dovrei modificare?

#

Good idea

#

La formula corretta per accentuare il filtro tramite parametro G è:

Butterworth = Butterworth[1] - (Butterworth[2] / (G*3.414)) + Close * ( 1 /(G*3.414))

Nicolas
10 years ago
#

Do I need to change the code accordingly to your formula?

#

Con G == 2 ---> (2 / 3.414).... la linea sparisce

StefanoCG
10 years ago
#

puoi sostituire nella riga  di comando 

Butterworth = Butterworth[1] - (Butterworth[2] / 3.414) + Close * ( 1 /3.414)

quest'altra
Butterworth = Butterworth[1] - (Butterworth[2] / 3.414) + Close * ( G /3.414)

G = numeri interi da 1 in su

ProRealCode ProRealCode
Loading...