[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 398
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Please advise what is wrong in the code. The robot should close a sell order and if it is not there, it should buy. Error 4105 appears, which I try to handle, but there is no result. Maybe there are other ways to process it?
Replace
to
Good day! Dear experts, please help me... I need: on the basis of indicator i-Regr (attached) write a program block, which is able to determine the width of the channel in points with a periodicity of 1 time per minute and display this number on the chart. Thanks in advance!
I think that with this task is better to apply to the service
Good day! Dear experts, please help me... I need: on the basis of indicator i-Regr (attached) write a program block, which is able to determine the width of the channel in points with a periodicity of 1 time per minute and display this number on the chart. Thanks in advance!
Thank you very much for the tip!
There are some subtleties. The information is displayed as 0.0026, which corresponds to 26 points. I have changed the bottom line and now it looks like this:
if(Time[0]!=Time_){Alert(NormalizeDouble(sqh[0]*10000-sql[0]*10000,4));Time_=Time[0];}
The output is now shown as 25.6809
Please advise how to round off this number programmatically to display the information in whole points instead of fractional.
Regards magogy
Can you please tell me how to round off this number programmatically so that the information is displayed as whole points and not as fractions.
Regards magogy
heh... how simple and obvious it all is to a professional and how scary and incomprehensible it all is to a novice...
thanks so much for your help!
Please tell me what's wrong. In the script I declare imported and call the function:
I tried to get the value by reference and by pointer in DLL (in C++). If by reference it doesn't work, in case by pointer I get pointers with zero value. The code is in DLL:
Thanks.
Please tell me what's wrong. In the script I declare imported and call the function:
I tried to get the value by reference and by pointer in DLL (in C++). If by reference it doesn't work, in case by pointer I get pointers with zero value. The code is in DLL:
Thanks.
MQL4 by reference and pointer only works with arrays and strings (also arrays).