• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

New EA GOLD EA with AI

sebimt301

New Member
Credits
0
Hello Everyone,

I have a strategy in my mind and I would like to try and test it. I always liked the support and resistance level for the the trading. That's why I made an EA with supdem indicator and try to pair with AI like Cynera.
The strategy works fine but need the EA decision as well. The problem is the function of webrequest.

Plase help me to fix this this problem. I always got this error: API Request failed. Error= 4051, HTTP Code= -1

I tested the json request via Postman and works fine, so I think the problem in MT4 but I tried everything and I do not have new idea.

Thank you for your help!
 

Attachments

I send the neccessery keys. I mean API key and org-id. If I test the json request with externel tool, like Postman working fine. So I need that check somebody if have more experience about MQL promming like me. Please, someone help me because I want to test if my idea works, and I can't calm my mind until I see the result. :)
 
Ogni 30 minuti l'EA invia i dati del mercato (RSI, ATR, e MA) all'API di OpenAI per ricevere una decisione ("BUY", "SELL" o altro).
 
I am trying to understand your strategy but I couldn't. All I understood from the code is that you are using an api key to filter the trades that the indicators give you.... Here are some points. First, you will need to improve the performance of the code and handle errors in a better way. You can add additional procedures to check the response and handle errors. Since the data is fetched every 30 minutes, it will take time.... I wanted to help, but since you don't know anything about coding, it will make it a bit difficult.

Thank you for your help! Currently everything in printing mode because of debug. Yes I am not a professional developer that's why what I need help. I need only the webruest function. So the callapi() section. Every parameters looks good and still dows not work. I think some little syntax or slt the probelm.
Thank you!
 
Back
Top