Errors, bugs, questions - page 2728
![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
Thank you.
I found this other thing that maybe 1)is a blocking broker.
https://www.mql5.com/ru/forum/38456/page127
https://www.mql5.com/ru/forum/304679
2) I've seen 110% and 70% jumping constantly and strongly, I haven't counted it yet. Maybe it has something to do with load, but I don't think so. I opened small things and the leverage in the specs is the same and the balances are almost the same.
A common thread about signals is this one
https://www.mql5.com/ru/forum/10603/page394
For information.
Bug MT5 (build 2390) incorrectly counts curly braces in class structure description.
Thanks for the post, fixed
that's how it works:
so no (always 0)
direction -1; +1; 0
that's how it works:
so no (always 0)
direction -1; +1; 0
And so
And this way.
also works, the second option doesn't work
I myself have faced such problems recently. I had no problems before. But I was asked to correct the code and it did not want to work properly until I cast it to double.
You have the direction declared as int. That's what you get. Lately, many functions have become rather finicky about values. It's better to take care of the conversion.
I myself have faced such problems recently. I had no problems before. But I was asked to correct the code and it didn't want to work properly until I brought it to double.
Yes, int. But it's multiplication - in integers it's also 30*1=30. I'm 100% sure that a few builds ago it worked fine in the second variant as well, as these 30 were determined by picking...
looks like another "feature" of MT5... At least the block is decorative, but if somewhere like autolot or stoploss - sadness may happen - I often reverse by multiplying by -1...
Thanks, I'll use another crutch...
also works, the second option doesn't work.
Ah. I inadvertently copied the wrong code.
Konstantin is right, why put int where double is expected... This is not a feature of mql5, it's just some attempts to get used to order.
Please help.
The indicator is throwing out with an array out of the range error.
In the code I have defined the buffers
Declared global variables
In Init() I have defined the properties
In OnCalculate(), the code defines a condition - the up variable.
If it is true, then the following code is executed
Please clarify whether it is normal that during the indicator's debugging, the values of this indicator are not visible on the opened chart? I.e., for example, we open MACD in the debugger. We set a breakpoint in the cycle of writing values into the buffers. After value writing ChartRedraw(). I expect to see this value on the chart at once after the value is written but I only see an empty window.
Build 2380 x64.