alsu: You 're not normalizing it correctly. If you want to normalize to 4 digits, write NormalizeDouble(...,4) - read again what the second parameter means: number of decimal places. Multiply 3 or 5 by 10 like you do - you get 30 or 50 digits, but not 4.
Exactly! It should be if (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What about the JPY?
Exactly! It should beif (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What should we do with JPY?
if (Filtre()=="S" && NormalizeDouble(Bid, Digits*pip)==NormalizeDouble(ma, Digits*pip))
Let me ask you another way. Why do we have to add the hundred-fold matching condition in the comparison? You can use >= or <=, and you don't even need normalization.
If you have ==, you may wait years to open one trade IMHO.
Exactly! It should be if (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What about the JPY?
Please clearly state the problem. Digits/pip is how much? If pip=10, In case of 3 digits we get 0.3, in case of 5 digits we get 0.5; is this what we need, or not? This is if you have pip of type double. And if it is declared as int pip; then in both cases it will be 0, i.e. the number will be truncated to the integer part.
alsu: Formulate the task clearly. Digits/pip is how much? If pip=10, In case of 3 digits we get 0.3, in case of 5 digits we get 0.5; is this what we need, or not? This is if you have pip of type double. And if it is declared as int pip; then in both cases it will be 0, i.e. the number will be truncated to the integer part.
Here is an example for you to study:
double x,y,z;
x = 1.2363353;
y = NormalizeDouble(x,5); // полчуается y = 1.23633
z = NormalizeDouble(x,0); // здесь будет в точности z = 1
Found an indicator that draws Wolf waves 0_CTL/mq4. Why can't I get it to work? In the explanations it says that you have to drag the icon up and 5 icons will appear. But they don't appear...
Help me remember....? When I started on the market, I had a hedge which one, I'm sorry I forgot ! Well,it is understandable that 5-6 years have passed ... Karoche her help, I could work for one terminal to duplicate the transaction in the other terminal ... In general, there was a need, what would work one account in one terminal-work more two accounts opened in other DTs, one brokerage house of which is zabugornyy, so that all transactions, what, I have already said, duplicated from one head terminal ... Hopefully, I explained more-measuredly:)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You 're not normalizing it correctly. If you want to normalize to 4 digits, write NormalizeDouble(...,4) - read again what the second parameter means: number of decimal places. Multiply 3 or 5 by 10 like you do - you get 30 or 50 digits, but not 4.
Exactly! It should be if (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What about the JPY?
There is no file copying function as such. But you can, for example, do it like this:
Looks like it should be the other way round(?) -
Thank you very much!
Exactly! It should beif (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What should we do with JPY?
Let me ask you another way. Why do we have to add the hundred-fold matching condition in the comparison? You can use >= or <=, and you don't even need normalization.
If you have ==, you may wait years to open one trade IMHO.
Exactly! It should be if (NormalizeDouble(Bid, Digits/pip)...
NormalizeDouble(...,4) but it doesn't work that way. What about the JPY?
Formulate the task clearly. Digits/pip is how much? If pip=10, In case of 3 digits we get 0.3, in case of 5 digits we get 0.5; is this what we need, or not? This is if you have pip of type double. And if it is declared as int pip; then in both cases it will be 0, i.e. the number will be truncated to the integer part.
Here is an example for you to study:
It looks like it should be the other way round(?) -
Good health to all!!!
Help me remember....? When I started on the market, I had a hedge which one, I'm sorry I forgot ! Well,it is understandable that 5-6 years have passed ... Karoche her help, I could work for one terminal to duplicate the transaction in the other terminal ... In general, there was a need, what would work one account in one terminal-work more two accounts opened in other DTs, one brokerage house of which is zabugornyy, so that all transactions, what, I have already said, duplicated from one head terminal ... Hopefully, I explained more-measuredly:)
You have to manage one account from the other. Or manage two accounts from the outside.
The point of the question is to hedge positions with positions in another account.
Please advise which way to dig.