Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2007, 11:41 AM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
Discret Butterworth-Lowpass-Filter (1st order)

Hello,
I a total noob in programming indicators. So I hope, someone can help me a little bit. All my tests only generates errors. I canīt draw anything in the indicatorwindow... Maybe because im to dump

OK here is, what I want to realize:
I want to build a discrete Firstorder-Butterworth-Lowpass. The time-equation looks like this originally:

Output[i] = Var_A*Input[i] + Var_A*Input[i-1] - Var_B*Output[i-1]
Var_A and Var_B are two constants f.e. 0.245 and -0.509
Input[i] is the current Close
Input[i-1] is the last/older Close
Output[i] is the current output of this formula
Output[i-1] is the last/older output of this formula

Now we can simpliefy the equation to the following a little bit:
Output[i] = Var_A * (Input[i] + Input[i-1]) - Var_B * Output[i-1]

But I am not able to implement this in an indicator. It should be printed in the pricewindow, not in an extrawindow.

I have no experience in programming with fields, so i hope, someone can help me.
PS: To get the right values, in the indicator there must be a +, not a - to get the right bars(?).

Thanks for reading
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-18-2007, 11:18 AM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
Are here really no programmers?
Or is my text maybe not clear enough?
JustY
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-18-2007, 11:35 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 297
ralph.ronnquist is on a distinguished road
enjoy.
Attached Files
File Type: mq4 Butterworth.mq4 (1.2 KB, 131 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-20-2007, 10:08 AM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
Thanks,
thats great
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 08-20-2007, 11:22 AM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
I worked a little bit with the indicator, its great wrk ralph, thanks again

In this version I insertet "right" filter-parameters. I have added two more indicatorlines.
Now we have a filtered channel of the highs, lows and close.

I think its nice for trenddetection.

But maybe you can help me once more ^^

I would like to add a second indicatorwindow under the chart. In this window should be displayed the signal of an FirstOrder-Highpass-Butterworthfilter. This would be good to "see" the noise in the market. So maybe you can help me again.

The timeequation for the highpass is the following:
y[i] = F * x[i] + F * x[i-1] - G * y[i-1]
But this is programmed. The var is calles output_noise
Can you help me, to display it in a extra window?

Thank you very much
Attached Files
File Type: mq4 Butterworth-ad.mq4 (2.1 KB, 72 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 08-20-2007, 03:17 PM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 297
ralph.ronnquist is on a distinguished road
As far as I know, there is no escape, but you'll have to split it up into two indicators; one which displays in the main window, and one which displays in a separate window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 08-20-2007, 06:19 PM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
Hi again,
here is a Butterworth-Highpass of first order. The filterparameters are also calculated like the lowpass above. When you open the indicator, you can see the filtered noise in pips (red) and a sma of the noise (green).
In the next posting I will show my trading idea with those two indicators.
Attached Files
File Type: mq4 Butterworth-ad2.mq4 (1.6 KB, 63 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 08-20-2007, 06:51 PM
Member
 
Join Date: Feb 2007
Posts: 30
justize is on a distinguished road
Here is my trading-idea:
indicators:
butterworth-ad with A=0.1367 B=-0.7265 (red)
butterworth-ad with A=0.0305 B=-0.9391 (yellow)
butterworth-ad2 with F=0.8633 G=-0.7265 (red - new ind. window, green is sma)

For an open-signal, both price-channels must show in the same direction(every line!). As a filter you have to use the sma of the highpass (green).
Long:
All six lines in the chartwindow have to rise upwards, and the green sma must cross the zeroline from - to +.
Short:
(invert long text)
Exits:
Maybe its able to use the sma for this, for example when you are long, you have to close the position, if the sma crosses from + to -.
Attached Images
File Type: jpg eurusd01.JPG (199.4 KB, 253 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CCI Filter nnjeim Indicators - Metatrader 4 121 08-15-2009 11:22 PM
Filter overRSI .....can i find Filter Over CCI & %R Walid Elhelw Metatrader 4 3 08-14-2007 08:51 AM
Day filter rhombic Expert Advisors - Metatrader 4 0 07-18-2007 02:45 PM
Open Order and Close Order Sean0 Expert Advisors - Metatrader 4 3 07-04-2007 06:41 PM


All times are GMT. The time now is 10:35 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.