It's best to ask your broker about this directly.
Marco vd Heijden:
It's best to ask your broker about this directly.
Thank you very much for replying.It's best to ask your broker about this directly.
The EA might work on different brokers MT4.
But, I think your answer means there is no direct method to having this info working for all the brokers.
Then I think I have to work on a combination of SYMBOL_PATH and MODE_PROFITCALCMODE checking.
Tank you very much Marco vd Heijden

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
Hi
I need to recognize if the symbol belongs to fx, CFD or Futures.
Should I used this?
MarketInfo(_Symbol, MODE_PROFITCALCMODE)
Is profit calc mode the correct way to figure it out?
Please note that I want to do it programmatically.
Any help would be appreciated.
Added later:
Let me explain more about my question.
in the document I see this:
MODE_PROFITCALCMODE
27
Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures
And it seems to me that it gives me what I can see in the specification window of MT4 under the same title.
But when I checked another broker's MT4 where the futures are provided too, I realized that for the futures the Profit Calculation mode is CFD in the specification window. (For all the symbols that I have checked, maybe not correct for everything).
I also have found :
SYMBOL_PATH
Path in the symbol tree
string
But in some cases the path name does not contain any of the words FX/Forex, CFD or futures.
My question is what is the trustable way of recognizing if it is FX, CFD or Futures.
Regards