Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4






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 02-13-2006, 02:38 PM
Banned
 
Join Date: Dec 2005
Posts: 61
forextrades is on a distinguished road
Better Bollinger Bands...

This is the Metastock code for an indicator called Better Bollinger Bands. Can anyone code it in MT4? Any help would be appreciated.

Better Bollinger Bands I
pds:=Input("Periods",2,200,20);
sd:=Input("Standard Deviations",.01,10,2);
alpha:=2/(pds+1);
mt:=alpha*C+(1-alpha)*(If(Cum(1)<pds,C,PREV));
ut:=alpha*mt+(1-alpha)*(If(Cum(1)<pds,C,PREV));
dt:=((2-alpha)*mt-ut)/(1-alpha);
mt2:=alpha*Abs(C-dt)+(1-alpha)*PREV;
ut2:=alpha*mt2+(1-alpha)*PREV;
dt2:=((2-alpha)*mt2-ut2)/(1-alpha);
but:=dt+sd*dt2;
blt:=dt-sd*dt2;
dt;
but;
blt
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 04-01-2007, 09:26 PM
Junior Member
 
Join Date: Oct 2006
Posts: 9
Pips4Profit is on a distinguished road
Bollinger Bands

forextrader

You probably have this by now but just in case, here is the indicator

Pips4Profit
Attached Files
File Type: mq4 Bollinger Bands.mq4 (2.8 KB, 399 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
  #3 (permalink)  
Old 04-03-2007, 08:23 AM
Uza Uza is offline
Junior Member
 
Join Date: Apr 2007
Posts: 2
Uza is on a distinguished road
i test it for trade today .
thank
__________________
http://zignalsfx4life.blogspot.com Free Signal
http://forexbasic4trade.blogspot.com/Forex Take it easy
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 04-03-2007, 11:15 PM
4Dluvof4x's Avatar
Junior Member
 
Join Date: Apr 2007
Location: Portland, Oregon USA
Posts: 1
4Dluvof4x is on a distinguished road
Better Bollinger Bands?

I know a lot of traders like BB's but have you ever tried levels? The metdatrader paltform has levels and putting them on ma's has a lot to offer. You work with pips not %...just a thought!!!
4D
__________________
4D
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 07-16-2008, 07:02 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,210
mladen is on a distinguished road
...

"Better Bollinger Bands" indicator
Attached Images
File Type: gif bb.gif (19.2 KB, 2444 views)
Attached Files
File Type: mq4 Better Bollinger bands.mq4 (2.8 KB, 577 views)

Last edited by mladen; 07-22-2008 at 03:39 PM.
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 07-18-2008, 06:23 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
btw description (only text)of bbb from
Futures: Oct 1998 | Find Articles at BNET

Better Bollinger bands
Futures, Oct 1998 by McNicholl, Dennis

Good news for short-term traders: By altering the trading band equations, your Bollinger bands will no longer desert you when a trend is brewing.
The original purpose of John Bollinger's trading bands was to form an envelope around a stock or futures price time series to act as a volatility gauge on the underlying market's price excursions. However, during a trend the original Bollinger bands often fail to track price closely enough to use them for any meaningful analysis.
Two reasons for the tracking problem are that the Bollinger center band shifts away from the center of the price series, and the two outer Bollinger bands, which form the envelope, shift outward to such an extent that the envelope loses its utility as a volatility gauge. This also happens when the market makes an explosive move in either direction.


"For starters" (below) shows a sample of a simulated time series that is stationary in the mean, but has a slowly increasing variance. The original Bollinger bands' performance here can be described as:
The center band (green line) remains properly positioned virtually on top of the time series mean or expected value (black line). Therefore, with stationary price movement, the original center band is an effective unbiased estimator of the mean of the price series.
The outer bands form an effective envelope around the price series. Each outer band is maintained a distance of two sample standard deviations from the center band. Because there aren't any large outliers in this example, the original bands adjust well to a slowly changing standard deviation.
But because the population standard deviation of the price series (blue line) around the mean (black line) in this case actually is $3, less than our $8.28, the original Bollinger outer bands are useless as a volatility envelope in this case.
Where (alpha) = the smoothing constant, 0
In "A better fit" (page 39), the center band displacement (AB) is corrected; the center band estimator is tracking the mean of the price series more closely, and the outer bands now function properly during the entire upward trend.
However, the correction of the displacement of the center band will not take care of all shortcomings inherent in the original Bollinger band methodology. "Still loose" (page 39) shows that a large price move or trend can cause the original Bollinger outer bands to bulge for the entire width of the moving sample window. This also will render the bands useless for a considerable amount of time.
"Tighten it up" (above) shows this quite dramatic change, which is similar to the change from "When trending" to "A better fit" for the center band. The Bollinger band volatility gauge around the price series now continues to function correctly both during periods of strong trends and periods of large price movements. FM
Dennis McNicholl is a trader and technical analyst. He can be reached via mcnicholl@mindspring.com.
Copyright Oster Communications, Inc. Oct 1998
Provided by ProQuest Information and Learning Company. All rights Reserved

Bibliography for "Better Bollinger bands"
View more issues: Aug 1998, Sep 1998, Nov 1998
McNicholl, Dennis "Better Bollinger bands". Futures. Oct 1998. FindArticles.com. 17 Jul. 2008. Better Bollinger bands | Futures | Find Articles at BNET
Continued from page 1. Previous - 1 - 2
Articles in Oct 1998 issue of Futures
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 11-06-2008, 11:29 PM
Member
 
Join Date: Apr 2006
Posts: 33
netk is on a distinguished road
difference between bbands and price channel stops

What is the difference between bbands and pricechannel_stops ?

Am i right , that one of these needs to be able to do BBB (Better bollinger bands) ?

Think it ought to be done.
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
  #9 (permalink)  
Old 11-06-2008, 11:33 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,407
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
Quote:
Originally Posted by netk View Post
What is the difference between bbands and pricechannel_stops ?

Am i right , that one of these needs to be able to do BBB (Better bollinger bands) ?

Think it ought to be done.
pricechannel_stops it's based on price channel.
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
  #10 (permalink)  
Old 11-07-2008, 09:18 AM
Member
 
Join Date: Apr 2006
Posts: 33
netk is on a distinguished road
in a perfect world

Oh did not notice that, as they plotted the same when i looked at it.
Will have to revisit.

But both need to be enhanced so that they cross on
a) how they do - using on close
b) on touch

as an optional setting.


(And like i said earlier, using BBB too would be great. )
( i still want to compare to keltner ATR bands STARC etc, but BBB looks pretty good I thought)
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
Bands, better bollinger, better bollinger bands, bollinger, bollinger band, 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
Bollinger Bands Width indicator traderixx Metatrader 4 10 05-27-2009 11:11 PM
boolinger_starc bands deepdrunk Indicators - Metatrader 4 26 03-25-2008 07:25 PM
adjustable bollinger bands oneprint Indicators - Metatrader 4 8 05-29-2007 02:08 AM
Fib bollinger bands Thruline Indicators - Metatrader 4 4 03-16-2006 08:40 PM


All times are GMT. The time now is 03:00 PM.



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