View Single Post
  #2 (permalink)  
Old 05-09-2006, 10:40 AM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 379
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
Reply With Quote