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

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
Straightforward to add to the condition.
Or == 0, more likely. Or better to use search for object by name, if there is no such object, then create one. And it doesn't matter if the button is clicked or not.
OBJPROP_STATE
It still changes when the button is clicked.
So far, I've solved it this way
Hello. 2020.10.28_05:19:00 GMT+3. I translated the LeManTrend_Indicator.mq5 indicator into the fourth version .mq4 .
Have you built the indicator ? I built it, it seems to be the same - I just need to download this indicatorhttps://www.mql5.com/ru/code/9096
I did, but
still changes when pressed
So far I've solved it this way.
What is the general problem?
What is the general task?
If there is an object, you press the button and it gets
and you need to keep it true as long as there is an object on the chart
When the button is clicked the object is created and the button receives
if there is an object, you press the button and it gets
and keep it true as long as there's an object on the chart.
Then just return the property back before drawing
and I do... you can see in the code
Not everything. I highlighted in my example
This prevents the button from sticking when pressed if there is a line on the chart.Not everything. I highlighted in my example
This prevents the button from sticking when pressed, if there is a line on the chart.The problem is neither... I just need it to stick, but OBJ_BUTTON itself is clickable, even if it doesn't do anything.
I need to make the button inactive, and it, as I understand it is not possible(
That's not the problem... I just need it to stick, but OBJ_BUTTON itself is clickable, even if it doesn't do anything.
I need to make the button inactive, and this, as I understand it is not possible(
What do you mean by "inactive" or "not clickable"? And what's the point of it?
If you want the button to have the appearance of being clicked, then instead of true on that line, put false and delete the line
which before creating the line...
What do you mean by "not active" or "not clickable"? And what's the point of that?
If you want the button to have the appearance of being clicked, then instead of true on that line, put false and delete the line
which is before the line is created...
this is the button's pressed look...
don't bother...it's not relevant anymore.
Thank you.