InvestorsHub Logo
Followers 38
Posts 9736
Boards Moderated 2
Alias Born 06/03/2007

Re: SherriT post# 174

Thursday, 05/14/2009 4:28:31 PM

Thursday, May 14, 2009 4:28:31 PM

Post# of 221
I can't get it to show when I add it to a chart but it may be because I'm running an EA backtest.

If you look at the line index of the iCustom function you should be able to pull any of the 5 values by assigning them to the line index. For example with the COG_THV code below the number in bold is the line index assigned to the buffer by the indicator.

************************************
This is from the indicator....
SetIndexBuffer(0, fx);
SetIndexBuffer(1, sqh);
SetIndexBuffer(2, sql);
SetIndexBuffer(3, stdh);
SetIndexBuffer(4, stdl);

************************************

>> Should return fx line
iCustom=(NULL,0,"COG_THV",m,i,kstd,1,1);

>> Should return sqh line
iCustom=(NULL,0,"COG_THV",m,i,kstd,2,1);

"remember the mayonaise jar...keep cool but don't freeze"

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.