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.
Sergey Dymov 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.
You have to see the code...there are no telepaths here)
Sergey Dymov changes in order parameters come, but the alerts from the EA do not come... I do not know what is the reason, google did not give me any answers. The alerts are reflected in the terminal itself.
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.
2021.12.0703:05:56.888 test GBPUSD,M1: Buy Stop rename onto Buy Stop false error 02021.12.0703:05:53.408 test GBPUSD,M1: Buy Stop rename onto Buy Stop false error 02021.12.0703:05:53.408 test GBPUSD,M1: Stop Loss rename onto Buy Stop false error 02021.12.0703:05:53.408 test GBPUSD,M1: Buy Stop rename onto Sell Stop true error 02021.12.0703:05:53.408 test GBPUSD,M1: Sell Stop rename onto Buy Stop true error 02021.12.0703:05:53.408 test GBPUSD,M1: Sell Stop create true error 4204
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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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