double iClose( | string symbol, int timeframe, int shift) |
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
- Help I am trying to write an EA that requires pivot points
- iclose() return 0 , 0 is int or double ?
- iHigh, iLow, iClose with int timeframe different than current time frame
What script?
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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register