Formula USDX Index = 50.14348112*pow(ask(EURUSD),-0.576)*pow(USDJPY,0.136)*pow(ask(GBPUSD),-0.119)*pow(USDCAD,0.091)*pow(USDSEK,0.042)*pow(USDCHF,0.036)
PROBLEM: is that the synthetic instrument formula is empty therefore no quotes are available. The custom symbol and the existing symbols quotes needed are available , visible and live on Market Watch . What am i missing in order to have the quotes for the custom symbol in real-time.
NOTE: When i create the custom symbol manually and add the custom symbol synthetic formula manually it works fine and no problem at all.
Almost similar to:
I suggest the reading. Although slightly different, the topic below contains good documentation and reference about what you need.
https://www.mql5.com/en/forum/217512
- 2017.10.14
- www.mql5.com
Almost similar to:
I suggest the reading. Although slightly different, the topic below contains good documentation and reference about what you need.
https://www.mql5.com/en/forum/217512
i read it already. That reference uses external server quotes and not quotes already available to the metaquotes MT5 terminal . The formula is simply calculating its quotes from already existing EURUSD, GBPUSD, USDJPY, USDCAD, USDCHF, USDSEK quotes . What am i missing ?
NOTE: Why does MT5 make a very simple process extremely confusing and hard to do. If its simple and possible Manually , why not programmatically ?
i read it already. That reference uses external server quotes and not quotes already available to the metaquotes MT5 terminal . The formula is simply calculating its quotes from already existing EURUSD, GBPUSD, USDJPY, USDCAD, USDCHF, USDSEK quotes . What am i missing ?
Have you tried to insert the formula directly on your function?
Can you try to do it ? Post the results after testing.
SetProperty(SName,SYMBOL_FORMULA,"50.14348112*pow(ask(EURUSD),-0.576)*pow(USDJPY,0.136)*pow(ask(GBPUSD),-0.119)*pow(USDCAD,0.091)*pow(USDSEK,0.042)*pow(USDCHF,0.036)");
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Formula USDX Index = 50.14348112*pow(ask(EURUSD),-0.576)*pow(USDJPY,0.136)*pow(ask(GBPUSD),-0.119)*pow(USDCAD,0.091)*pow(USDSEK,0.042)*pow(USDCHF,0.036)
PROBLEM: is that the synthetic instrument formula is empty therefore no quotes are available. The custom symbol and the existing symbols quotes needed are available , visible and live on Market Watch . What am i missing in order to have the quotes for the custom symbol in real-time.
NOTE: When i create the custom symbol manually and add the custom symbol synthetic formula manually it works fine and no problem at all.