[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 241
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
RefreshRates () updates a copy of the data for a particular script or expert. It has nothing to do with windows.
I.e. if data has ever been requested for any tool within a script or Expert Advisor, it will be refreshed. Others will not.
Can I clarify.
Here is a part of the script running on EURUSD1
for(;;)
{
if(RefreshRate())
{
bid_EURUSD1=MarketInfo("EURUSD1",MODE_BID);
ask_EURUSD1=MarketInfo("EURUSD1",MODE_ASK);
bid_GBPUSD1=MarketInfo("GBPUSD1",MODE_BID);
ask_GBPUSD1=MarketInfo("GBPUSD1",MODE_ASK);
bid_USDCHF1=MarketInfo("USDCHF1",MODE_BID);
ask_USDCHF1=MarketInfo("USDCHF1",MODE_ASK);
bid_USDJPY1=MarketInfo("USDJPY1",MODE_BID);
ask_USDJPY1=MarketInfo("USDJPY1",MODE_ASK);
}
}
Will data update in this case only for EURUSD1 or for GBPUSD, USDCHF, USDJPY data is also updated.
Thank you
Thank you for your reply.
Can you tell me how to determine the time in milliseconds when a new tick appears.
May I clarify.
Here is a part of the script which is running on EURUSD1
for(;;)
{
if(RefreshRate())
{
bid_EURUSD1=MarketInfo("EURUSD1",MODE_BID);
ask_EURUSD1=MarketInfo("EURUSD1",MODE_ASK);
bid_GBPUSD1=MarketInfo("GBPUSD1",MODE_BID);
ask_GBPUSD1=MarketInfo("GBPUSD1",MODE_ASK);
bid_USDCHF1=MarketInfo("USDCHF1",MODE_BID);
ask_USDCHF1=MarketInfo("USDCHF1",MODE_ASK);
bid_USDJPY1=MarketInfo("USDJPY1",MODE_BID);
ask_USDJPY1=MarketInfo("USDJPY1",MODE_ASK);
}
}
Will there be a data update in this case only for EURUSD1 or for GBPUSD, USDCHF, USDJPY there is also a data update.
Thank you
Yes, if windows with other instruments are open (GBPUSD, USDCHF, USDJPY). Otherwise zeros are returned.
Thank you for your reply.
Can you tell me how to determine the time in milliseconds when a new tick appears.
The event of a new tick occurrence can only be detected by placing the "listening" Expert Advisor or indicator in the appropriate window with the required symbol.
Milliseconds are taken from GetTickCount
Yes, if windows with other instruments are open (GBPUSD, USDCHF, USDJPY). Otherwise, zeros are returned.
It is sufficient that these instruments are present in the "Market Watch"
It is enough that these instruments are present in the "market overview"
Agreed. The answer is more precise. I suggest a software solution:
I agree. The answer is more exact. I suggest a software solution:
and what are the ask(Symb) and bid(Symb) functions
what are the ask(Symb) and bid(Symb) functions
It's not hard to guess - the corresponding MarketInfo() for the required instrument.
One can really guess :)
Thank you all for your replies. You have been a great help.
Regards,
Yuri