Does the symbol exist?
Does it have a prefix or suffix?
Print(tf);
Does the symbol exist?
Does it have a prefix or suffix?
Im not sure what you mean? The symbol GBPUSD is for the pound to the dollar market? It is as shown on MT4 platform.
Stephen Reynolds: Im not sure what you mean? The symbol GBPUSD is for the pound to the dollar market? It is as shown on MT4 platform.
|
|
Thanks guys for the help. But, Ive sort of found the problem? Why is it when I use 1 as the shift value of 3rd parameter
EG iOpen("GBPUSD",tf,1);
it actually works okay with any other symbol. But when I use 0 it only works with the chart its put onto. EG if chart EURUSD and I input EURUSD into the parameter it works fine?
Could anyone explain this?
This is a problem ive noticed in the past in my coding but ive always accepted it and entered 1 instead of 0.
I say it again The shift values don't seem to work at 0 (the current bar) but are okay 1 and all other previous bars?
iClose("GBPUSD",tf,0)
You want to know the close price of the current bar ?
Trying to look into the future?
The current bar 0 is usually always open and when it closes its shifted to the next (open) bar.
You want to know the close price of the current bar ?
Trying to look into the future?
The current bar 0 is usually always open and when it closes its shifted to the next (open) bar.
Thanks ofcourse! I couldn't see for looking!
Stephen Reynolds: it only works
|
|
Marco vd Heijden:
You want to know the close price of the current bar ? Trying to look into the future? The current bar 0 is usually always open and when it closes its shifted to the next (open) bar. | Close[0] is the current Bid, always. No future required. |
| |
| Close[0] is the current Bid, always. No future required. |
Then tell me the Close of today's D1.
It just may differ from the current Bid.
Marco vd Heijden: Then tell me the Close of today's D1.
|
|
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In the following why is it when I input another symbol different to the chart the Indicator is placed on to it doesn't return that symbol?