Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4






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.

 
 
Thread Tools
 
Old 10-10-2006, 05:12 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile How can I define....

HI All,

Need some help here, I am tring to make an EA based on Bollinger Squeeze. I know it has to be defined as iCustom but I dont know how...can you please help me how can I define the Blue and Red Colour histogram in the iCustom...

Thanks
Babar
Attached Files
File Type: mq4 iBollinger Squeeze v4.mq4 (5.7 KB, 33 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!
 
Old 10-11-2006, 06:24 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
there is a simpler way to do this if you're just importing into an ea, under your variable begin, put this simple string of code

PHP Code:
bool bband iBands(Null,0,14,2,3,PRICE_CLOSE,1,1); 
theres a lot of numbers to explain here, to begin with, null and "0" say, current chart and timeframe. 14 is the period, 2 is the deveation, 3 is how far the bands shift apart, price close says the lines are applied to the close, the first 1 means that it is exponential, and the last 1 means that you start the whole thing 1 bar back. (meaning it doesn't include the current bar, if you want it to be based on the bollinger bands while they are moving, change this number to "0")

it's that simple
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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!
 
Old 10-11-2006, 10:41 AM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Thanks for your help eaglehawk, but I want expression based on the indicator attached which are blue and red histogram bars...I wonder if you can help ..

Thanks
Babar
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!
 
Old 10-17-2006, 02:38 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
sorry for the long reply, i've studied the indicator and it seems to be a histogram of the difference between the top band and the bottom one. i am not very skilled with indicators or reading them, so i can't quite tell how whoever made this defined the distance. if i had that curcial bit of information, i would be of much more assistance to you.
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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!
 
Old 11-10-2006, 12:43 AM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Lightbulb

Quote:
Originally Posted by Eaglehawk
sorry for the long reply, i've studied the indicator and it seems to be a histogram of the difference between the top band and the bottom one. i am not very skilled with indicators or reading them, so i can't quite tell how whoever made this defined the distance. if i had that curcial bit of information, i would be of much more assistance to you.
Is there anyone(programmer) who can help me making this EA or atleast give me an idea of how can I define the red and blue histogram in the EA

Thanks in advance
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!
 
Old 11-10-2006, 02:58 AM
Member
 
Join Date: Nov 2005
Posts: 56
4xCoder is on a distinguished road
You can access this indicator from an EA by using the iCustom call.

double blueB = iCustom( NULL, 0, "iBollinger Squeeze v4", totalBars, bolProd, bolDev, keltPrd, keltFactor, momPrd, alertBox, audioAlert, 0, shift );
double redB= iCustom( NULL, 0, "iBollinger Squeeze v4", totalBars, bolProd, bolDev, keltPrd, keltFactor, momPrd, alertBox, audioAlert, 1, shift );

All the fields after the name of the indicator are the input parameters for the indicator, except for the last two. The 0 and the 1 tell which part to return, and shift, of course, is the baryou want to access
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!
 
Old 11-10-2006, 11:18 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Quote:
Originally Posted by 4xCoder
You can access this indicator from an EA by using the iCustom call.

double blueB = iCustom( NULL, 0, "iBollinger Squeeze v4", totalBars, bolProd, bolDev, keltPrd, keltFactor, momPrd, alertBox, audioAlert, 0, shift );
double redB= iCustom( NULL, 0, "iBollinger Squeeze v4", totalBars, bolProd, bolDev, keltPrd, keltFactor, momPrd, alertBox, audioAlert, 1, shift );

All the fields after the name of the indicator are the input parameters for the indicator, except for the last two. The 0 and the 1 tell which part to return, and shift, of course, is the baryou want to access
Thanks 4xcoder for you help ..its working now...just wondering can you please help me i am stuck in something new and difficult....please click on the link you will get all the details

One trade per order....

thanks in advance
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!
 

Bookmarks
Thread Tools

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
how to define a static var in MT3.86 lamanosky Indicators - Metatrader 3 0 11-18-2006 01:43 PM
How can I define Colour change babarmughal Expert Advisors - Metatrader 4 9 11-12-2006 05:19 PM
How to define a BAr........ babarmughal Metatrader 4 1 06-27-2006 01:47 AM


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



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