InvestorsHub Logo
Post# of 102
Next 10
Followers 38
Posts 9736
Boards Moderated 2
Alias Born 06/03/2007

Re: SherriT post# 34

Sunday, 05/17/2009 9:52:12 PM

Sunday, May 17, 2009 9:52:12 PM

Post# of 102
Sherri, what am I doing wrong here?

I want to go back through the candles and if the high of the previous candle is not higher than the current candle then set the H1R or H1S value to the high of the current candle and determine support/resistance. It gives me an unbalanced parenthesis error.



// 1 Hour resistance
for(t=0; t<limit; t++)
if(iHigh(NULL,60,t+1)!>iHigh(NULL,60,t)) H1R==High[t]; return(0);
// 1 Hour support
for(t=0; t<limit; t++)
if(iLow(NULL,60,t+1)!<iLow(NULL,60,t)) H1S==Low[t]; return(0);

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

Join InvestorsHub

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.