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
I really hope you didn't write this...
Here's a working function
All you have to do is enter the size of the risk, so that it doesn't count from the full free margin...
Thanks, Alexey, for your feedback! My version of lot calculation works, and only that part of the code where the array is written does not work.
Originally I designed it to be able to set different risk sizes for different currency pairs.
To be honest, I do not quite understand how to use your code for a multicurrency EA.
Regards, Vladimir.
Thank you, Alexey, for your feedback! The lot calculation in my version works, and only that part of the code, where the array is written, doesn't work.
It was originally designed to allow specifying different risk sizes for different currency pairs.
To be honest, I do not quite understand how to use your code for a multicurrency EA.
Sincerely, Vladimir.
Very simple. I didn't think that you would have difficulties with it after all you've learned.
And the function is called
double lot = contractSize(symbol[Number], Risk[Number]);
Very simple. I didn't think, after all you've learned, that you'd have any trouble with this...
And the function is called.
Thanks again, Alexey! I will try to use it in my EA tonight.
I am rather new to arrays, hence the difficulties. Until now I did not need them, but now I realize that this is a big gap that I will have to fill in the near future. I began to study the article by Dmitry Fedoseyev, but so far there is much that is not clear. I need time to assimilate the material.
Regards, Vladimir.
Here's something I've been messing with.
something - I've tried the code all over the place - it seems to work.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
It's about to start - I've got another bump in the road.
Sasha, do you also write such codes on demand in freelancing? I've always wondered how you write codes of 2 or more THOUSANDS of lines. But now I'm beginning to understand it... Calculate the number of lines in my code and yours... And checking the maximum spread, it's nonsense... It's much easier to use the "I don't know" option.
If you want it to work, but not everyone is able to understand what you've written, you can do with three lines
this code is taken from the terminal
I don't know how to write code myself - I take all functions from the documentation and with a bit of fiddling, I modify them for my own purposes.
\\\\\\\\\\\\\\\\\\\\
I also look at your codes and in the codebase. I am learning - I am not a theoretician - it is easier to dig myself than to explain - how to dig.
just to - just to amuse you.
Who else are you going to ask your clever questions to?
Leave the Gulf of Finland and come to the Black Sea with us
Leave the Gulf of Finland and come to the Black Sea with us