Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1779

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
Hello !
Please check where I made a mistake (it does not want to work)
I want the buy signal to be shifted by thedeviation * _Point (set in settings)if(GetLotSize()>LotControl)
LotControl - also set in the settings
GetLotSize() - as recommended:
Thank you. It didn't have any effect for some reason.
Thank you. it didn't have any effect for some reason.
I wrote:
But still opens two differently directed positions on the same tick? That can't be right!
About this code, it may well be that nothing has changed. Since the orders are executed in the closing order.
Sort out your algorithm as well as possible.
You should check your algorithm. Here, you are entering by the Buy and Sell signals and nothing further. What may not work here? No entry or exit functions...
Forum on trading, automated trading systems & strategy testing
Any questions from newbies on MQL4 and MQL5, help and discussion on algorithms and codes
MakarFX, 2021.12.02 18:30
What's in here? You have not changed anything in essence. You just made more calls to OrderCloseTime. The code was stretched into one line. And it became less readable. But the result is still the same.
What about here? You haven't changed anything in essence. You just made more calls to OrderCloseTime. But the result is the same.
open your eyes
Arguments in the studio, please
Arguments in the studio, please.
Now open your eyes
What about here? You haven't changed anything in essence. You just made more calls to OrderCloseTime. And we have stretched the code into one line. And it became less readable. But the result is the same.
As far as I can see, the difference is in the following:
Now open your eyes.
(sighs) Okay. I missed that moment. I admit it.
as far as I can see, the difference is as follows: