Catabolist:
. . . My very last struggle is how I will be able to have it point to a file that's hosted online (or what could be done to accomplish the same end goal). So far I can only make this work with a local file (though that file can be anywhere in the computer).Any and all help is GREATLY GREATLY GREATLY appreciated! I highlighted the main portion that I'm concerned about in black
You might consider using the functions from Windows' WinINet.dll. See Microsoft's documentation for WinINet.dll on MSDN. It appears others on this forum have used it, so you should do a search for wininet.dll.
Okay, looking into this now. Thanks for the heads-up! I'm still a shameful noob at this, so just to clarify: will I be using a HTTP GET to retrieve the file via URL?
Just looked into some of the other options - looks like InternetReadFile is spot on for what I need. Now to figure out how the hell to implement it...haha
Catabolist:
Just looked into some of the other options - looks like InternetReadFile is spot on for what I need. Now to figure out how the hell to implement it...haha
Just looked into some of the other options - looks like InternetReadFile is spot on for what I need. Now to figure out how the hell to implement it...haha
here is an example.
Files:
grabweb.mq4
3 kb
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
Hey guys, this is my first post and just wanted to say thanks real quick to everyone here who has contributed. This site is a goldmine as long as you're willing to take the time, be patient, and use the search function.
So anyway, after a long struggle but eventual success, I created a script. The idea is to simply plot some horizontal lines on the screen at a few price points...of course the coding gets a bit ridiculous for something that seems so simple :P The idea is to actually have a .txt file with the levels in it. The end goal would be to host that file online somewhere and have it update in that one location, so that whoever is using this script will automatically have the levels updated if they're updated in the file online.
Honestly, I have just about EVERYTHING set up the way I want it and it's running very smooth. I even got through the workaround to point to files that aren't in the experts/files or experts/include folders using the import Kernel32.dll and its associated commands. I simply use that to essentially copy the text file from the anywhere directory and paste it into the experts/files folder for further, easier use. My very last struggle is how I will be able to have it point to a file that's hosted online (or what could be done to accomplish the same end goal). So far I can only make this work with a local file (though that file can be anywhere in the computer).
Any and all help is GREATLY GREATLY GREATLY appreciated! I highlighted the main portion that I'm concerned about in black
Okay, and here's the .txt file for reference so you know what I'm trying to pull out of it to create those lines: