jossnet #: Hi fernando, ok, but i get a compiler error not an call error i mean this ->'SYMBOL_TRADE_TICK_TICK_VALUE' - undeclared identifierXAUUSD_GPT4.mq514848
As already pointed out, it was a typographical error. It is not " SYMBOL_TRADE_TICK_TICK_VALUE " but instead it is "SYMBOL_TRADE_TICK_VALUE" as you have used correctly in your code example and in my code as well.
Miguel Angel Vico Alba #:Don't ask me why, but XAUUSD and USDJPY often have these problems. My way of solving it is as follows: This is how I get the tick value when the symbol gives me trouble with SYMBOL_TRADE_TICK_VALUE .
That only works if your Account Currency is in USD. If not, then you have to convert it.
jossnet #: 3. gently could someone give me a snippet of code ( a few lines ) of what you mean or do when you say " the current EURUSD rates to convert from the USD to EUR value " and make the conversion for my own ?
Please note that the issue about the Tick Value and how to calculate it has been discussed on the forum many times. It may be wise to do a search and read up on those many threads many of which have code examples for the calculations.
Fernando Carreiro #: I am unable to comment much more as I have never had need for extra calculations. Luckily all the brokers I have used provide a valid tick value.
As I said before I have always found these problems with gold and USDJPY in different brokers depending on whether you have 2 or 3 decimal places.
It is something that has been like this for years and I do not understand why. 😥
@Miguel Angel Vico Alba :thanks for the snippet. i'll give it a try immidiatly. @Fernando Carreiro : I apologies for this. I usually try to read a tons of posts searching for a matching of my need with posts and not to burden you in the group with work. i could not immagine of broken config. In any case thank for your patience.
This is how I get the tick value when the symbol gives me trouble with SYMBOL_TRADE_TICK_VALUE .
That only works if your Account Currency is in USD. If not, then you have to convert it.
I am unable to comment much more as I have never had need for extra calculations. Luckily all the brokers I have used provide a valid tick value.
As I said before I have always found these problems with gold and USDJPY in different brokers depending on whether you have 2 or 3 decimal places.
It is something that has been like this for years and I do not understand why. 😥
Some broker have wrong tick value but profit is true.
try use the function, I also get it from forum
@Fernando Carreiro : I apologies for this. I usually try to read a tons of posts searching for a matching of my need with posts and not to burden you in the group with work. i could not immagine of broken config. In any case thank for your patience.