Discussion of article "The Optimal Method for Calculation of Total Position Volume by Specified Magic Number" - page 2

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 price constant ENUM_APPLIED_PRICE corresponds to 0 in ePosVolTest.mq5 :
?
What price constant ENUM_APPLIED_PRICE corresponds to 0 in ePosVolTest.mq5 :
?
I don't know whose code it is, but you should write the names of enum identifiers instead of trying to use integer values instead. It is problematic to figure out such code later.
The code from the article: "Optimal method of calculating the volume of the aggregate position by a given magic number", from the ePosVolTest.mq5 application .
Is using 0, in this case, acceptable or incorrect?
Code from the article: "Optimal method for calculating the volume of an aggregate position by a given magic number", from the appendix ePosVolTest.mq5 .
Is using 0, in this case, acceptable or incorrect?
With zero as on Close works. It is wrong, there is no such identifier with the value 0, but it works. The goal was not to open positions according to RSI, but just to open positions on different symbols at different times, the Expert Advisor copes with this task.
after some update they removed the numerical value of identifiers....
After some update the numerical value of identifiers was removed....
How can they be removed? They are there, but unlike MT4 the values are very unusual, especially for timeframes.
I decided to use the ePosVolTest code, but to calculate not the total volume, but the total profit collected on all positions by making appropriate changes in the code. Now the code is called ePosProfitTest )) I successfully compiled the code after some syntax parsing. Now I need to find where in the ePosVolTest code is actually what the ePosVolTest code is made for, namely - the cumulative volume collected by the code for all positions.
If it is not too difficult, please tell me.
The answer of course lies on the surface, but the trick is that I am not a programmer
I decided to use the ePosVolTest code, but to calculate not the total volume, but the total profit collected on all positions by making appropriate changes in the code. Now the code is called ePosProfitTest )) I successfully compiled the code after some syntax parsing. Now I need to find where in the ePosVolTest code is actually what the ePosVolTest code is made for, namely - the cumulative volume collected by the code for all positions.
If it is not too difficult, please tell me.
The answer of course lies on the surface, but the trick is that I am not a programmer.
PositionGetDouble(), POSITION_COMMISSION, POSITION_SWAP, POSITION_PROFIT.
PositionGetDouble(), POSITION_COMMISSION, POSITION_SWAP, POSITION_PROFIT.
Wrong. We need deals in history - HistoryDealGetDouble(), DEAL_COMMISSION, DEAL_SWAP, DEAL_PROFIT.
I didn't understand the last sentence, Integer, if it's not too much trouble, please explain what you wanted to say
Perhaps you suggest replacing PositionGetDouble(), POSITION_COMMISSION, POSITION_SWAP, POSITION_PROFIT. with HistoryDealGetDouble(), DEAL_COMMISSION, DEAL_SWAP, DEAL_PROFIT.
.