Isn't SYMBOL_TRADE_TICK_VALUE the value corresponding to every 1 point fluctuation?
... to every SYMBOL_TRADE_TICK_SIZE fluctuation.
yes, i know it.
but to XAUUSD, profit 0.22, position 0.01, SYMBOL_TRADE_TICK_VALUE=0.1, SYMBOL_TRADE_TICK_SIZE = 0.01, digits =2.
actual profitpoints = 22.
how to calculate it?
Thanks.
SYMBOL_CALC_MODE_FUTURES | Futures mode - calculation of margin and profit for futures | Margin: Lots * InitialMargin * Margin_Rate
Profit: (close_price - open_price) * TickPrice / TickSize*Lots |
On Futures, TickPrice is SYMBOL_TRADE_TICK_VALUE ?
It has been discussed numerous time on this forum, with code provided. Please do some researches before posting.
yes, i know it.
but to XAUUSD, profit 0.22, position 0.01, SYMBOL_TRADE_TICK_VALUE=0.1, SYMBOL_TRADE_TICK_SIZE = 0.01, digits =2.
actual profitpoints = 22.
how to calculate it?
This is the way to go when you can't rely on provided symbol's setting (See XAUUSD example above), however your formula is incomplete.
- www.mql5.com
It has been discussed numerous time on this forum, with code provided. Please do some researches before posting.
I would like to ask, is there any way to obtain the tickevalue when analyzing historical position? Obviously, many symbols of tick value are dynamic.
I haven't found the corresponding post. Can you send it to me?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
According the MQL5 Reference
SYMBOL_TRADE_TICK_VALUE
Value of SYMBOL_TRADE_TICK_VALUE_PROFIT
Isn't SYMBOL_TRADE_TICK_VALUE the value corresponding to every 1 point fluctuation?
======
To calculate the profit in points on a position, my method is:
The profit in points calculated by foreign exchange varieties is correct, but for some CFDs, such as XAUUSD, the result is wrong.
For example, XAUUSD, profit 0.02, position 0.01, tick_value=0.1. Points are calculated as = 20, but actual points = 2.
I want to know what is wrong? Is it wrong to use SYMBOL_TRADE_TICK_VALUE in my formula? Doesn't SYMBOL_TRADE_TICK_VALUE refer to the profit corresponding to a position fluctuation?
======
I know that the profit in points can be calculated from the price diff, but I would like to know where is my formula wrong?
If my formula is wrong, then assuming you know the profit in pips and the size of the position, it is impossible to get the profit.