Forex
Google
New signals service!

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
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2006, 04:54 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Red face Bollinger Band Programming Help Help

How come with the bands indicator, I can adjust the deviation to lets say 1.7 versus 2.0, but when I program the same, it will not recognize a deviation of the bands of 1.7. Instead it reads it at 1.

I used the extern double BandsDeviation = 2.0; and then changed it to 1.7, but the programming is triggering as if the BandsDeviation = 1.0???

Please help me somebody!!



Dave
<><
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2006, 06:57 PM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
Hi Dave,

Could you post the entire code here (or attach the file)? May be you are using the "iBands" and, as far as I know, the iBands works only with integer deviation (not double).

Bye.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-16-2006, 07:39 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile Ibands

You are correct, it is using IBANDS. Is there anyway to rewrite this phrase (Get around this limitation) to be able to use 1.7 Deviation?

BB_High = iBands (NULL,0,BandsPeriod, BandsDeviation, Bandshift, AppliedPrice, MODE_Upper, Bar );

I would be in your debt!

Dave
<><
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-16-2006, 07:57 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
I might have it, instead of using iBands, use iCustom etc. etc.

I will see if it will work!

Dave
<><
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-17-2006, 01:01 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Question

It doesn't seem to be working with icustom. Does anybody have the knowledge to create a deviation statement using 1.7 deviations instead of 2 or 1???? This language is something else.

Frustrated!

Dave
<><
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-17-2006, 04:13 AM
Junior Member
 
Join Date: Apr 2006
Posts: 16
ch33z3 is on a distinguished road
Why do u want that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-17-2006, 04:15 AM
Junior Member
 
Join Date: Apr 2006
Posts: 16
ch33z3 is on a distinguished road
Anyways, just use Bands.mq4 in the folder instead of the Bollinger Bands. You can use your 1.7 deviation there. just tested it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-17-2006, 04:40 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile

I need it in the EA!! The Bands indicator is just part of the visual representation of what the EA is doing.

Dave <><
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-17-2006, 06:58 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by iscuba11
I need it in the EA!! The Bands indicator is just part of the visual representation of what the EA is doing.

Dave <><
Well, just call Band.mq4 from your EA using iCustom function. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-17-2006, 07:16 AM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 800
igorad is on a distinguished road
Hi,

You can interpret BB lines like this:

BBUp = SMA + Dev*StdDev
BBDn = SMA - Dev*StdDev
BBMd = SMA,
where
SMA= iMA(....); - Simple MA
StdDev = iStdDev(....); - Standard Deviation

In this case you can use Dev(Deviation) like double value.


Igor
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bollinger Band exponential search dada260 Setup Questions 53 08-03-2008 09:09 PM
I need HELP with Bollinger Band-CCI indicator maslow Indicators - Metatrader 4 2 06-25-2006 12:43 PM
Bollinger Band of RSI? forex123 Indicators - Metatrader 4 2 05-14-2006 06:39 AM
Five-Minute Bollinger Band System gody6000 Expert Advisors - Metatrader 4 16 05-09-2006 04:24 PM
Bollinger Band Width Ratio Maji Metatrader 4 11 03-21-2006 01:00 AM


All times are GMT. The time now is 07:33 AM.



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