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 26 of 32
Author:  Jimdandy [ Fri Jul 12, 2013 10:10 pm ]
Post subject:  Re: Just made an IDE for MQL4

Thanks Steve... for the suggestions... yea that's what i've been doing is just running it from a shortcut..

....I am about to introduce some folks to this editor that are wanting to learn some mql4. (God help them) I will mention this thread in the process.. I already have a link to your site from my site. Actually when i saw the coding question earlier I was wondering if I was in the right place.. LOL

...I'm going to make a short video on how to install it and some of it's features although I don't think I know 10% of them. At any rate it's a great improvement on what's provided by our Russian friends.

....Let me get this straight because I don't want to tell them wrong. What I did on mine was unzip it in the crap/root folder and then do the "mklink /D include ..\include" from the scripts,libraries and indicators folder. Then i just make it my default program for mq4 files.. that's about it. Whenever i open an mq4 if opens in Scite.... Is that pretty much it?......
Author:  Jimdandy [ Sun Jul 14, 2013 4:26 am ]
Post subject:  Re: Just made an IDE for MQL4

Ok Steve I put up the video.. the link to it is at the bottom of this page..Lesson 27. For any wanting to learn to be a coding guru like Steve .. This page has links to youtube videos I made in an attempt to help some learn it... http://www.jimdandyforex.com/lessonvideo-links/ any one that uses this editor needs to drop a couple bucks in ole 633's donation bin.. It's a fine piece of software.. PipPip...Jimdandy.
Author:  Jelks [ Wed Aug 07, 2013 6:52 pm ]
Post subject:  Re: Just made an IDE for MQL4

I just started using this IDE a couple of days ago. I only had two issues, I couldn't find out how to customize the astyle formatting defaults (hint: it's in the Commands.properties file, not SciTEGlobal.properties as stated in the wiki) and how to display content in the .chm help on Windows 7. The former I found by just poking around, the latter by a helpful post earlier in this thread (right-click on the docs/mql.chm file in Explorer and click "Unblock").

With those two things resolved, this thing is truly the bomb. Will, thank you sir!

Is there a way to add icons/commands to the toolbar? I would like to add Code Beautifier (astyle) and compile icons.

Many thanks again -- I'm so glad I found this site!
Author:  Jelks [ Wed Aug 07, 2013 9:56 pm ]
Post subject:  Re: Just made an IDE for MQL4

SteveHopwood wrote:O wow. Guys, wait till you try this:
  • - go into your Empty4 base folder.
    - rename MetaEditor.exe as MetaEditor.exe.old or some-such to hide it (or even delete it).
    - unzip scite-mql-1.3.2.zip to this folder.
    - rename SciTE.exe MetaEditor.exe
    - unzip a second copy just of SciTE.exe to the folder, so that you have two identical .exe files but with different names
Hey presto. From the platform, open a file for editing, press the MetaEditor icon or the F4 key, and your file opens in ScITE. The only thing we haven't got is the transfer from SciTE back to the platform via the F4 key. Perhaps you could add this the next time you do an update, w633?

Fantastic, or what?

:D
I am using the Strategy Tester (with Birt's Tick Data Suite -- indispensable IMO if you use the Tester). I just installed Scite in the root of C:\Empty4-Test, which is where my Tester version of Empty4 is on Win7.

I renamed MetaEditor.exe to MetaEditor.Old.exe (just so I could run it if I ever for some perverse reason wanted to). I made a copy of SciTE.exe, and renamed the copy to MetaEditor.exe.

For some reason, neither the MetaEditor icon in the platform toolbar, right-clicking the EA in the Navigator and choosing "Modify", nor the "Modify Expert" in the Tester launch the IDE.

Any ideas?
Author:  SteveHopwood [ Wed Aug 07, 2013 11:36 pm ]
Post subject:  Re: Just made an IDE for MQL4

Jelks wrote:
SteveHopwood wrote:O wow. Guys, wait till you try this:
  • - go into your Empty4 base folder.
    - rename MetaEditor.exe as MetaEditor.exe.old or some-such to hide it (or even delete it).
    - unzip scite-mql-1.3.2.zip to this folder.
    - rename SciTE.exe MetaEditor.exe
    - unzip a second copy just of SciTE.exe to the folder, so that you have two identical .exe files but with different names
Hey presto. From the platform, open a file for editing, press the MetaEditor icon or the F4 key, and your file opens in ScITE. The only thing we haven't got is the transfer from SciTE back to the platform via the F4 key. Perhaps you could add this the next time you do an update, w633?

Fantastic, or what?


:D
I am using the Strategy Tester (with Birt's Tick Data Suite -- indispensable IMO if you use the Tester). I just installed Scite in the root of C:\Empty4-Test, which is where my Tester version of Empty4 is on Win7.

I renamed MetaEditor.exe to MetaEditor.Old.exe (just so I could run it if I ever for some perverse reason wanted to). I made a copy of SciTE.exe, and renamed the copy to MetaEditor.exe.

For some reason, neither the MetaEditor icon in the platform toolbar, right-clicking the EA in the Navigator and choosing "Modify", nor the "Modify Expert" in the Tester launch the IDE.

Any ideas?
Nope. Those bastards at Crapperquotes really are shitheads. Come up with something to make their appalling bollocks work as you want it to, and they will spend thousands of dollars paying coders to make sure it will stop working. Stupid fuckers.

These days, I forget about launching Scite from within Empty4 and use a desktop shortcut instead. Works fantastically and cuts out the crap from the shitheads.

Any moron from Crapperquotes happen to be reading this. I DO NOT USE YOUR CRAP IDE, OK? IT IS RUBBISH.

Sorry about my language. In a bad mood tonight.

:D
Author:  Jelks [ Thu Aug 08, 2013 2:22 pm ]
Post subject:  Re: Just made an IDE for MQL4

SteveHopwood wrote: Nope. Those bastards at Crapperquotes really are shitheads. Come up with something to make their appalling bollocks work as you want it to, and they will spend thousands of dollars paying coders to make sure it will stop working. Stupid fuckers.

These days, I forget about launching Scite from within Empty4 and use a desktop shortcut instead. Works fantastically and cuts out the crap from the shitheads.

Any moron from Crapperquotes happen to be reading this. I DO NOT USE YOUR CRAP IDE, OK? IT IS RUBBISH.

Sorry about my language. In a bad mood tonight.

:D
LOL!

Funny thing is, my first Scite installation (what, 5 days ago?) was in a HotForex demo account. I still have that, and launching Scite from the platform there works just fine. But in my Tester platform (Alpari-US pro demo), nothing.

I notice that the HotForex install is build 445 (it's logged into Alpari, maybe that's why) while the Alpari/Tester one is 509. At any rate, launching Scite from within the platform seems to work on earlier builds. I wonder if MetaQuotes actually disabled this functionality in later builds...

Desktop shortcut is one workaround. Another is pinning it to the Start menu -- you don't have to minimize anything to get to it.
Author:  aSushiRoll [ Thu Aug 15, 2013 6:57 am ]
Post subject:  Re: Just made an IDE for MQL4

gaheitman wrote:
dietcoke wrote:
gaheitman wrote:
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

George,

would you mind posting your mods?
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

api.$(file.patterns.mql)=$(SciteDefaultHome)\api\mql.api
becomes this:

Code: Select all

api.$(file.patterns.mql)=$(SciteDefaultHome)\api\mql.api;$(SciteDefaultHome)\api\_mql.api
The attached Sidebar.lua (uploaded as sidebar.txt since the board doesn't allow .lua) file adds an item to the context menu of the Functions/Bookmarks pane to "Save api". When selecting this, it will basically write the contents of that pane to the _mql.api file. Unfortunately, SciTE doesn't immediately re-read api files, you have to switch to a different file type (in another buffer) and then switch back. Working on that....

Context menu:
IMG_41.gif
After running "Save api" on MultiBob, here's the Calltip (after the autocomplete, of course, since I had the case wrong :>)

Calltip from MultiBob:
IMG_42.gif
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

what do you mean with "save api" on MultiBob... what's multibob?
So i rename that api.txt to _api.<what?>
and I rename sidebar.txt to sidebar.lua?

I'm not exactly sure what steps I need to perform to get the "save api" option
Author:  gaheitman [ Thu Aug 15, 2013 9:50 am ]
Post subject:  Re: Just made an IDE for MQL4

aSushiRoll wrote:
what do you mean with "save api" on MultiBob... what's multibob?
So i rename that api.txt to _api.<what?>
and I rename sidebar.txt to sidebar.lua?

I'm not exactly sure what steps I need to perform to get the "save api" option
Multibob is an expert advisor that was on everyone's mind at the time. It was just an example, you can run the command on any MQ4 file that is loaded.

You don't change the apt.txt file, you configure a secondary api file by making the changes specified to mql.propertiies. The script will overwrite this secondary file every time you run it.

The script itself is included in the sidebar.txt file I attached. You put this in place of the existing sidebar.lua file, which gives you the Save Api menu item as well.

George
Author:  atharmian [ Sat Aug 17, 2013 2:49 am ]
Post subject:  Re: Just made an IDE for MQL4

1. Does anyone know if there is a way to highlight a region of code in MQL4 native editor? Does w633+ updates afford such a facility?

2. I wonder if there is a ready made w633 version that includes all the above mods, including gheitman's :) Or do we necessarily have to install all the fixes manually?

Just beginning to look at coding.

Regards,
Athar.
Author:  jjasper7 [ Tue Sep 24, 2013 12:47 am ]
Post subject:  Re: Just made an IDE for MQL4

i'm having a problem compiling a new ea. each attempt to compile has no redlines (compiler error messages), but I do see a message:
'"C:\fx\scite-mql-1.4.2"\other\refreshcrapt4.exe' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 9009"
what does that mean and where is it from? and anyone have an idea how to fix it?
All times are UTC Page 26 of 32