
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
The errors are very clear and exactly what they state.
The compiler warns you that it is unable to find the include file.
The include file holds the missing functions which is why additional errors are generated.
You have to make sure that the file telegram.mqh exists in the files folder.
Start there as there are more errors which seem to be related to other code issues.Is it possible to make it from custom indicator instead of expert advisor?
Is it possible to make it from custom indicator instead of expert advisor?
If you try to call the function WebRequest from an indicator, GetLastError() will return error 4014 — "Function is not allowed for call".
To do this, you need to remake the project to work with Wininet.dll from indicators.
If you try to call the function WebRequest from an indicator, GetLastError() will return error 4014 — "Function is not allowed for call".
To do this, you need to remake the project to work with Wininet.dll from indicators.
thank you, will take a look at it
look in the
Aimak:
I would appreciate if you could help me finding the error. Thanks in advance.
Switch your channel to public mode. Or using chatID (not channel name) for communication with your private channel.
The channel is public and I getting the same result using channel name or ID. See screenshot
Do you use the latest release of Telegram.mqh and Jason.mqh?
Dear Andrey,
thanks a lot for your work. I've installed your files and configured an expert that does the following:
1) the expert sends messages to the bot every x minutes (just for test) ,
2) i read the message on telegram and click "open trade" on the keyboard of telegram client,
3) the metatrader opens the trade (if possible).
Everything works fine but after a while the bot is not anymore reachable; to make it work again i have to wake up him by pressing some command on the keyboard menu (for example charts or /start or account info....). The metatrader says "bad request:chat not found" but if I wake up the bot again it works perfectly for one hour or more but then it stops.
I've created the bot as you have suggested (with botFather). How can I solve this issue?
Thanks again
Thanks for the interesting article. There is an error in the code (you can see it on the screenshot):
Need fixes in SendPhoto method of CCustomBot class. I suggest this option:
Thanks for the interesting article. There is an error in the code (you can see it on the screenshot):
Need fixes in SendPhoto method of CCustomBot class. I suggest this option:
Thank you for your message. However, your corrected variant works only with Latin characters.
Logically, you should convert the string into an array with UTF-8 encoding and substitute it as caption in the request body.
My variant is in the attachment.