Forex
Google
www.rentasignal.com Metatrader Signals Marketplace

Go Back   Forex Trading > Discussion Areas > Metatrader 4

Notices


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2007, 03:57 PM
MrM MrM is offline
Member
 
Join Date: Jul 2007
Posts: 80
MrM is on a distinguished road
Bollinger bands in a seperate window with steady size

Let's say you have a moving average (or a bollinger band, which is a moving average + and - 2 standard deviations) on a chart, and you want to get that into a seperate window at the bottom of the screen, you would think that by just changing #property indicator_chart_window into #property indicator_separate_window and done is done. But the problem here is that the price oscillations will make your moving average -which is now in a seperate window- change the minimum and maximum of the window. Now you probably think, this is easy, just change the minimum and maximum of the window and you're done, but the problem here it's practically not doable because you don't know the maximum of the price action. Hence, you have to normalize: you have to change the value the moving average has calculated into a value between 0 and 100 to make your moving average a true oscillator (like rsi, macd, stochs,...). Because if you look at the picture, you see that by scrolling the chart more to the right, the shape of the bands changes. I want to prevent this by normalizing it (give it a value between 0 & 100).

Now my question is: Does anyone know how to divide the change of price by the maximum range of prices for the day? Or a way to prevent the bollinger from changing shape? I've attached the code.
Attached Images
File Type: jpg bollinger_seperate_window.JPG (46.1 KB, 432 views)
Attached Files
File Type: mq4 Bands_test.mq4 (2.4 KB, 34 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
  #2 (permalink)  
Old 09-22-2007, 08:10 PM
Senior Member
 
Join Date: May 2006
Posts: 254
banzai is on a distinguished road
Dynamic Zone RSI

Try the Dynamic Zone RSI
Dynamic RSI !!!!

It has Bollinger Band, EMA, and RSI. It's possible to re-program to turn off the RSI if you don't need it.
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 09-22-2007, 11:10 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,308
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Maybe this thread could help you Bollinger Static MA
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 09-23-2007, 06:04 AM
Administrator
 
Join Date: Sep 2005
Posts: 19,286
Blog Entries: 201
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Try this summarized thread Bollinger Band exponential search to find something.

We are having such threads for RSI indicator http://www.forex-tsd.com/setup-quest...indicator.html , Momentum indicator Momentum indicator , Parabolic SAR Parabolic SAR indicator , Stochastic Stochastic Oscillator , NRTR Nrtr , about divergence Divergence Indicator and Support/resistance How to use Support and Resistance Effectively and some more.
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 09-27-2007, 09:52 PM
MrM MrM is offline
Member
 
Join Date: Jul 2007
Posts: 80
MrM is on a distinguished road
thanks a lot for the answers guys, but I think I have expressed myself in the wrong way, let me restate the problem:
let's say you have a 20 period moving average in your chart window, and you want to convert this into an oscillator in your seperate window: you want divide the change of price by the maximum range of n periods (20), which essentially gives you an oscillator. Any idea how to do this?
Attached Files
File Type: mq4 MA20.mq4 (5.3 KB, 18 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 09-27-2007, 10:09 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,308
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Easy: (MA-MA(x)/MA(x))

Also knowns as Price Oscillator.
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

Tags
bollinger, bollinger bands

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
Better Bollinger Bands... forextrades Metatrader 4 17 06-06-2009 11:35 PM
Custom Bollinger Bands RickW00716 Indicators - Metatrader 4 1 09-14-2007 01:17 AM
Can someone help me create a MTF stoch bars indicator in a seperate window 200 Indicators - Metatrader 4 6 06-24-2007 03:58 PM
adjustable bollinger bands oneprint Indicators - Metatrader 4 8 05-29-2007 01:08 AM
Fib bollinger bands Thruline Indicators - Metatrader 4 4 03-16-2006 07:40 PM


All times are GMT. The time now is 09:11 PM.



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