Forum

Trouble with OpenAI API call in MQL5 – “You didn’t provide an API key” error

Hi everyone, I'm trying to send a POST request to the OpenAI API from a MetaTrader 5 script using WebRequest , but I'm getting this response: "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer

Keep session open to use MQL5 expert.

Hello, do I have to keep the MQL5 account with which I bought the expert advisor open in order to use it? I mean, if I log out, will the robot be able to continue working

MQL5 VPS configuration question

Hello everyone, I have a question about the VPS : Once the migration is done should the “Algo Trading” button be re-activated again

Maximum number of lots that can be opened MQL5.

Does anyone know how I can know how many lots I can open for example in a buy knowing the available capital? double max_lots() { double lots = MathMin (( AccountInfoDouble ( ACCOUNT_BALANCE )* AccountInfoInteger ( ACCOUNT_LEVERAGE )/ SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_CONTRACT_SIZE ))