Yes, there is. Just use 127.0.0.1:YourPort/api/endpoint/parameter and it will work nicely.
I just answered to help anyone who may have the same problem, ok?
Thanks to all!
Yes, there is. Just use 127.0.0.1:YourPort/api/endpoint/parameter and it will work nicely.
I just answered to help anyone who may have the same problem, ok?
Thanks to all!
Hi,
Does anybody knows if there is a way to send http requests to localhost or 127.0.0.1 for testing an API before use a web host? I am using metatrader and today I tried to do a test but it was no good.
Thanks!
Thanks to all "helpers"! I appreciated a lot!
To get the 3rd candle I did that bellow and it worked fine! Considering I am working at M15 timeframe.
Using "Every n bars" object with Bars Count equals to 3, from 09:00 to 09:40, the first occurrency will be the 3rd candle.
... once again, thanks a lot!!

Nice answer! I got the idea and I think that is an answer!... but, is there a way to do that using the candle id?
I am using the M15 timeframe and day here starts at 09:00 AM.
Hi, how can I identify that "this is the 3rd candle of the day" to start an action (buy for example)?
@sebabahn I think that could help you. Try to find the string and get the result... https://www.mql5.com/en/docs/strings/stringfind
search for "[is_license_valid] =>". Something like this:
StringFind(
YOURstring, // string in which search is made
"[is_license_valid] =>", // what you want to find
0 // from what position search starts
);
... and then you can use a StringSubstr to extract the result. Not so elegant but, considering the mql language limitations...
StringSubstr(
YOURstring, // string
start_pos, // position to start with from your code above (StringFind)
length=-1 // length of extracted string considering "[is_license_valid] =>" length
);