[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 313
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
How to make it so that when a trend parameter is passed to this function, which will be responsible for the transfer of the assumed main trend at the moment, the calculation will be based on this parameter.
I.e., if trend == downward, the function in the loop was like now, and iftrend == upward, the Open[i] and Close[i] were swapped in the loop, so that the conditions were observed. Because in that case the close price of the bar will be lower than the open price and the difference will be minus.
In that case2*trend-1takes values +1 and -1, i.e. if trend=true it will be up and trend=false it will be down while Δ will be respectively taken with right or wrong sign. This is just an example of where maths replaces if.
gyfto, is the test script from the kit working for you?
I would have done so:
The rest is correct. Didn't get into the data transfer protocol only.
Creating, opening and allocating memory are optional. These functions are for speeding up memory handling. For the simplest library operation , you only need the read and write functions. The library will do the rest. Moreover, you can read before you write. Memory in the size requested will be allocated and the function will return zero. Since there is nothing there yet.
Zhunko, I think not. Comment() doesn't output, it only writes in the log, in the log:
It's all on one line, I moved it here so there's no abnormal screen width here.
Zhunko, I think not. Comment() doesn't output, it only writes in the log, in the log:
It's all on one line, I moved it here so there's no abnormal screen width here.
TarasBY artmedia70 hoz
Thank you gentlemen officers!
TarasBY artmedia70 hoz
Thank you gentlemen officers!
What, you shot yourself? :)))
Twice 8-[
Hello! Please help me on this topic:
https://www.mql5.com/ru/forum/144634
Thank you very much!
I got the fucking error myself. In fact, there is no logic at all. To open a pending order according tohttps://book.mql4.com/ru/appendix/limits, the opening price should be either below Bid (for selling) or above Ask (for buying). I am doing as required.
From time to time I get 0 and 130 errors. Although 130 is an error of wrong stop, which can happen during modification, but not during order opening.
On the screenshot the situation and the print displayed using the pr function.
Please advise how to get rid of this bug. I am really sick and tired of this error. Logically, it is not on the subject at all.