what is and how do i load local history?? (iClose)

[Deleted]  


double  iClose(string  symbol,  int  timeframe,  int  shift)
Returns Close value for the bar of indicated symbol with timeframe and shift. If local history is empty (not loaded), function returns 0.


i used iclose for an indicator on the 4 hr chart. i used 1hr for the int  timeframe, and the script is messing up really badly.  and the only thing i can think of is the local history. how do i call or specify  the local history for the 1hr chart ? anyone know?

thanks
 
What script?
[Deleted]  

I am having the same problems with iHigh. The function always returns 0.



has anyone found an explanation or solution for this?



Thanks

 

I ran into the same problem this past weekend. Here's what I did to resolve it:


1 - In your History Center, make sure that you're actually collecting data for the currencies and periods that you reference in your functions


2 - Be mindful of the currency symbols you use. I kept on getting the "0" return until I noticed that, since I was on a mini-account, my symbol was not "USDJPY" but actually "USPJPYm". A small difference, but it was preventing me from getting accurate quotes. This will vary from broker to broker, so make sure that you're using the correct symbol.