Yeah, one method, convert the date-to-time using StrToTime(), if the time is already in Seconds format the proceed to next step. Then do Bar-Search which closely matches the time using BarShift(). Then search for the type of price you want using the Bar# returned by the BarShift. And instead of using Symbol() or EURUSD for the symbol within those function, use "USDCHF".
ubzen:
Yeah, one method, convert the date-to-time using StrToTime(), if the time is already in Seconds format the proceed to next step. Then do Bar-Search which closely matches the time using BarShift(). Then search for the type of price you want using the Bar# returned by the BarShift. And instead of using Symbol() or EURUSD for the symbol within those function, use "USDCHF".
and then of course you use the functions iClose, iOpen, iHigh or iLow as appropriate.
Yeah, one method, convert the date-to-time using StrToTime(), if the time is already in Seconds format the proceed to next step. Then do Bar-Search which closely matches the time using BarShift(). Then search for the type of price you want using the Bar# returned by the BarShift. And instead of using Symbol() or EURUSD for the symbol within those function, use "USDCHF".
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
For example we are now working on an EA that is executed on the EUR/USD chart and we want to know what was the price of USD/CHF on a certain date. Is it possible to do?
Thank's a lot!