Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1798
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
Hi all.
I'm asking for help with this question.
I have an mt4 terminal and an Expert Advisor (homemade) which generates alerts for trading signals. I want the alerts to be sent to the mobile terminal. I configured it, the test comes, changes in order parameters come, but the alerts from the EA do not come... I do not know what the reason is, google did not give me any answers.
The alerts are reflected in the terminal itself.I need to see the code... no telepaths here)
Everything is standard
if ((EURTP>=3)&&(JPYTP<=0)&&(z!=2))
{Alert("Buy EURJPY. EUR=", EURTP, ", JPY=", JPYTP); z=2;} //
https://www.mql5.com/ru/docs/network/sendnotification
https://docs.mql4.com/ru/common/sendnotification
Everything is standard
if ((EURTP>=3)&&(JPYTP<=0)&&(z!=2))
{Alert("Buy EURJPY. EUR=", EURTP, ", JPY=", JPYTP); z=2;} //
OK, I've created and deleted lines by click only, and the colour and name change with the location of the cursor and... nothing has changed, same problems. The line is created depending on the location of the button bar. I have it at the bottom, so by condition it is yellow (Sell Stop) but here there is an occurrence in condition if(price > Ask) because when I click on the button for some crap price is equal to the highest price on the chart, that is higher than Ask, so at this point price > Ask = true. Well, fuck it, logically the next move of the mouse should fix everything, but no. Log only one click on the button.
I don't know why 4204 (No Object) maybe it's a past error.
After clicking on the button you can see a green line at Bid level, the line does not respond to a mouse cursor shift. If the cursor moves above the Asc, the messages are continually poured out
My advice to you, as a novice programmer. Learn how to use debug (a very powerful tool). And figure it out for yourself. It's interesting. If it gets complicated (which is unlikely), start with an easy one. Debug will help you figure out how your application works in great detail.
My advice to you, as a novice programmer. Learn how to use debug (a very powerful tool). And figure it out for yourself. It's interesting. If it gets complicated (which is unlikely), start with an easy one. Debug should help you figure out how your application works down to the smallest detail.
I usually don't need it because it doesn't work in the tester, but in this case it works with real data and you should give it a try. What I understand, version of this code with renaming object is not different from last time, when objects were recreated with colour change, because renaming does the same thing: it creates object with new name and deletes old one.
UPD
Buttons I use to create lines in mql4 in debug mode are absent in the chart