Søren Lauritsen:
// Konverter JSON-data til char-array
StringToCharArray(postData, data);
The last character is string terminator '\0'
Just constraint the resulting array to ArraySize(data) - 1 or StringLen(postData).
ArrayResize(data, ArraySize(data) - 1);
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,
I am kind of new to JSON in mql4. But i had an idea i wanted to try send some indicator data to a google docs spreadsheet.
I have made the Google Apps Script, and when i send the data from postman it updates perfect in my spreadsheet so i know my problem is within MQL4.
When i run my expert advisor i get the message below which i dont understand, so if someone can tell me what i am doing wrong it would be much appreciated. :)
Here is the code i use to build the parsing: