But I cannot seem to go back two seconds with iOpen(). How can I get the open price for a specified pair exactly two seconds ago?
hknight:
But I cannot seem to go back two seconds with iOpen(). How can I get the open price for a specified pair exactly two seconds ago?
Read the replies to your other post .. . you CANNOT unless you record the prices tick by tick by tick . . .
But I cannot seem to go back two seconds with iOpen(). How can I get the open price for a specified pair exactly two seconds ago?
HKnight,
The MarketInfo() function comes in handy sometimes, Hahaha! ;) You may also consider recording prices (tick-by-tick) OR ;) write code to imitate a timer which will check every two seconds...
Thank you
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
How can I specify the pair for Open[2]?
I want it to apply to USDCHF regardless of the chart that the expert adviser is attached to.