| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Just made an IDE for MQL4 https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=627 |
Page 21 of 32 |
| Author: | alex_forex [ Sun Aug 19, 2012 1:14 pm ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Awesome job w633 !! Thanks for that Regards Alex |
|
| Author: | f-trader [ Sun Sep 16, 2012 10:47 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Symbolic links are not possible in WindowsXP. There is a free program which helps to create junction links. http://www.rekenwonder.com/linkmagic.htm This works for me. |
|
| Author: | gaheitman [ Mon Oct 22, 2012 12:53 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Man am I behind... So, I hit this problem with the first indicator I compiled but instead of putting in a symbolic link, I changed the compile.bat file to switch to the Experts\ directory and then call the metalang.exe file from the same directory as terminal.exe. The old code (other\compile.bat) was: Code: Select all Code: Select all George |
|
| Author: | gaheitman [ Mon Oct 22, 2012 8:34 am ] |
| Post subject: | Slight Changes |
Unwilling to leave well enough alone, I made a couple of changes to my settings. First of all, I changed the search function to use the dialog box instead of the strip at the bottom of the screen. I'm old school that way. The settings to change are in SciTEGlobal.Properties under the [Search and Replace] section. Surprisingly enough, they are: Code: Select all You can do this too, by adding the following lines to SciTEGlobal.Properties after the [Shortcuts] section: Code: Select all George |
|
| Author: | dietcoke [ Mon Oct 22, 2012 10:00 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Does anyone know how the autocomplete is configured? I'd like it to be able to see imported and included functions if possible. |
|
| Author: | w633 [ Tue Oct 23, 2012 3:59 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
currently there's no easy way for that, it is incapable of dynamically parsing source code to spit out function info. you'll have to add the functions statically by editing "api\mql.api". |
|
| Author: | gaheitman [ Tue Oct 23, 2012 7:28 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Actually, the sidebar code does dynamically scan the source code to give you the list of functions that it displays. From MultiBob: It would probably be possible to modify the lua code to create a secondary api file so you could see the calltips. Autocomplete also presents you a list of keywords from your existing buffer when nothing matches your current typed text from the api file. For example, as you type "calc" you'll see the following: "c" "ca" "cal" matches nothing, but once you type "calc" This example just showed functions being displayed, but it will show you variables as well. BTW, I've added the rest of the reserved words to the api file, which is why I got so many choices to begin with. I haven't mentioned this yet, but I'm loving this editor! George |
|
| Author: | dietcoke [ Tue Oct 23, 2012 7:46 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
George, would you mind posting your mods? |
|
| Author: | SteveHopwood [ Tue Oct 23, 2012 8:01 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
It has revolutionised my coding life. |
|
| Author: | gaheitman [ Tue Oct 23, 2012 9:41 am ] |
| Post subject: | Re: Just made an IDE for MQL4 |
Certainly. First off, I have hacked together a way to create an api file from source using the existing sidebar functionality. You need to tell SciTE to use a secondary mql.api file. I named it _mql.api and it is in the same directory as the first. To do this, modify mql.properties -- This: Code: Select all Code: Select all Context menu: After running "Save api" on MultiBob, here's the Calltip (after the autocomplete, of course, since I had the case wrong :>) Calltip from MultiBob: I also changed the file mask to be *.mq4 so the directory view is immediately useful (for mql programming, that is). EDIT: Updated mql.txt to include all constants. George |
|
| All times are UTC | Page 21 of 32 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|