What have you tried ?
Google. Trying to find the math relation between Lot, tick size, tick value, profit. But no luck for now :/
Really ?
Profit/Loss = [Number of pips] * [pip value]
Really ?
Profit/Loss = [Number of pips] * [pip value]
Ok, where's Pip value = tick value.
edit : what about Lots ? Profit = pips * pip value * lot size ?
If the symbol currency is usd, I have to convert it & the best rate is the current price of eurusd ... right til' here ?
Ok, where's Pip value = tick value.
edit : what about Lots ? Profit = pips * pip value * lot size ?
If the symbol currency is usd, I have to convert it & the best rate is the current price of eurusd ... right til' here ?
Not.
A pip is not a tick.
And you can't change the formula, I gave you the right one.
So the question is how to calculate the value of a pip ?
Not.
A pip is not a tick.
And you can't change the formula, I gave you the right one.
So the question is how to calculate the value of a pip ?
Here it is :
Lotsize = (Profit(or Loss)/Tick value) * (Tick size / Pip)
A question remains : I can't see TICK SIZE & TICK VALUE on forex symbol's spec - is that mean that using it with SymbolInfoDouble is useless ?
Here it is :
Lotsize = (Profit(or Loss)/Tick value) * (Tick size / Pip)
A question remains : I can't see TICK SIZE & TICK VALUE on forex symbol's spec - is that mean that using it with SymbolInfoDouble is useless ?
For tick size and tick value please take a look at the Symbol Properties, specifically the SymbolInfoDouble() function and the ENUM_SYMBOL_INFO_DOUBLE options (specifically SYMBOL_TRADE_TICK_SIZE and SYMBOL_TRADE_TICK_VALUE).
For tick size and tick value please take a look at the Symbol Properties, specifically the SymbolInfoDouble() function and the ENUM_SYMBOL_INFO_DOUBLE options (specifically SYMBOL_TRADE_TICK_SIZE and SYMBOL_TRADE_TICK_VALUE).
@Malacarne : I did, but doubt when didn't find these value in forex' symbols specifications on MT5 platform.
I'm not sure if I understood your point... can you explain it better?
You can try to make screenshots or post parts of your code here. It would help us to find a solution for your problem.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Symbol 1 :
Lot size : 0.01 (x)
Tick size : 0.5
Tick value : 12.5 euros
Potential profit for z pips : 10 euros
Symbol 2 :
Lot size : y
Tick size : 0.5
Tick value : 5 euros
Potential profit for z pips : 10 euros
How to calculate y ? (edit : tick size may be different)