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
What did you expect to get out of this expression?
Read Boolean operationsI simply tried to shorten the code without expecting anything :) Not knowing how to mark an "empty string", I tried different variants and their combinations. Now with your help I see that I've experimented in the given variant :)
Question. A year ago there are two new identifiers:SYMBOL_TRADE_TICK_VALUE_PROFIT andSYMBOL_TRADE_TICK_VALUE_LOSS. And how are the corresponding values calculated? More exactly, why is the value of a tick in a profitable position different from the value of a tick in a losing position? And is the value of a tick in a losing position always greater than in a profitable one? The purpose of the question: by the allowed amount of loss (in the deposit currency) and the distance from the opening price to the SL to calculate the request.volume
Question. A year ago there are two new identifiers:SYMBOL_TRADE_TICK_VALUE_PROFIT andSYMBOL_TRADE_TICK_VALUE_LOSS. And how are the corresponding values calculated? More exactly, why is the value of a tick in a profitable position different from the value of a tick in a losing position? And is the value of a tick in a losing position always greater than in a profitable one? The purpose of the question: by the allowed amount of loss (in the deposit currency) and the distance from the opening price to the SL to calculate the request.volume
The parameter handling in formulas should not be an issue.
Honestly, I don't understand the answer :) The question has already appeared and been voiced. The question is about how specific "parameters" are calculated, namely: SymbolInfoDouble(Symbol(),SYMBOL_TRADE_TICK_VALUE_PROFIT) and SymbolInfoDouble(Symbol(),SYMBOL_TRADE_TICK_VALUE_LOSS). The question has been voiced with an explanation of its causes. Can you clarify the situation in essence?
profit=lot*point*tickval
didn't you know ?
profit=lot*point*tickval
didn't you know ?
So why do profit and loss ticks differ in value? After all, in case of both profit and loss the position is closed the same way (either in both cases at Ask or at Bid).
What do you care? Just use the appropriate tickvalue.
You need to calculate the lot for a possible loss. so use the concepts.
You don't ask why stoplevel changes. you just use its current value. and it's the same here.
You may ask why the current value of stoplevel changes for profit and loss.
this is done for other exchange instruments.
By the way, it is not a fact that in forex the tickvalue will be different for profit and for loss.
They do, it's a fact. That is why I asked.
What difference does it make to you? Just use the appropriate tickvalue.
You don't ask why stoplevel changes. you just use its current value. and it's the same situation here.