Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - 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-09-2006, 09:10 AM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile Guys what does it mean....

Hi Guys can you please explain what does this line mean.....

specilly the 2 and 1 in the brackets..

iCustom(NULL,TimeFrame,"Heiken Ashi",2,1)

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-09-2006, 09:40 AM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by babarmughal
Hi Guys can you please explain what does this line mean.....

specilly the 2 and 1 in the brackets..

iCustom(NULL,TimeFrame,"Heiken Ashi",2,1)

Thanks
Babar
the last number is always the bar shift. 0 is the current bar and 1 is the bar before it.
the 2nd parameter from the left (in your example is 2) is the custom indicator index. Every indicator have buffers where the data is saved, so 2 is the 3rd buffer (zero base).
you can see in the code what indicator buffer value you want by looking at that line of code

SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);

so, if you want the value of ExtMapBuffer2 you set the iCustom parameter to 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-09-2006, 10:46 AM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

HI,

Thanks for your reply....what I am trying to do is that EA should place the buy order when Heiken Ashi is white and sell when its red....how can I do that...

Thanks for your help...

Thanks
Babar
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
for russian guys canados General Discussion 5 04-14-2007 02:43 PM
Guys what does this mean???? babarmughal Expert Advisors - Metatrader 4 2 11-14-2006 07:16 PM
When will you guys EVER learn?? sfxtrader Indicators - Metatrader 4 13 07-04-2006 06:12 AM
Ok Guys and Gals... I need help Qbert006 Indicators - Metatrader 4 3 03-05-2006 04:08 PM


All times are GMT. The time now is 05:17 AM.



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