Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1536
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
Try this, it should work.
Nope. It keeps beeping an alert. Here's the whole code and the indulgences. Maybe I'm doing something wrong
Guys, help me make an alert for an indicator. I want to test a combination of different indicators, but I need an alert function. I want the alert to be shown only once when arrow appears. If you are not hard please help me write this function, I can not do it, alerts pop up a whole minute or all the time, even mt4 hangs.
Add a variable
if not a signal the variable becomes false
if (signal and variable== false) {
alert;
variable=true;
}
Add a variable
the variable becomes false if a new candle appears
if (signal and variable== false) {
alert;
variable=true;
}
will be no more than 1 per candleok. thank you.
Okay. Thank you.
I changed it there.
Hi all, I have an indicator that shows the angle of the trend in degrees (not normalised though). Everything is great on the chart. It can be on the angle curve itself (blue) or on its mean curve (green) - Fig. 1. When calling the indicator in the Expert Advisor through double Custom = iCustom(Symbol(), window, "Angle", 0, 1), the program produces some huge numbers - Figure 2. The dialog window - chart period, "Angle" - indicator name, 0 - zero buffer where the blue line is calculated (I can put 1 - green MA buffer, but the result will be similar), 1 - shift. What could be the problem?
Could you please tell me how to make an object selectable? I couldn't find anything like that in the Help
OBJPROP_SELECTED
Object selection
mql5
mql4
Can you please tell me how to programmatically make an object selected? I haven't found anything like that in the Help
If you use the standard object creation function, the default setting is selection = true. For example, for the trend line, the 4th line from the bottom: