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 24 of 32
Author:  AnotherBrian [ Thu Apr 25, 2013 2:43 am ]
Post subject:  Kinda funny!

Does anyone else see the humour in this thread? :lol:

I came back here to figure out why my outdated version doesn't update Empty4 after an F5. So here I am reading through the posts to find what I need and it just goes on, and on, and on,...

...the forums best coders requesting mods like newbies to the Hopwood empire!! w633 - you are a GOD :lol:

If you don't see the humour in this, you might be a coder :lol:
Author:  ovo.cz [ Mon May 06, 2013 9:53 am ]
Post subject:  Re: Just made an IDE for MQL4

Could anyone be so kind and navigate me, how to lock items in the Favourites tab, so they do not vanish after the editor closes and re-opens?

Image
Author:  gaheitman [ Mon May 06, 2013 10:56 am ]
Post subject:  Re: Just made an IDE for MQL4

I tested it on my installation and it works. Looking at the sidebar.lua code, the favorites is saved in a file called "favorites.lst" that is stored in the root of your home directory (for example, c:\users\george if you happen to have a username of "george" and are using windows 8). You can see your homepath by opening a cmd prompt and typing "echo %homepath%". The session file is held there as well.

George
Author:  ovo.cz [ Mon May 06, 2013 11:35 am ]
Post subject:  Re: Just made an IDE for MQL4

Thank you gaheitman, I located the file, it seems that it does not update. Looking at the lua code, it gives me no clue what might be the cause, so I am going to re-install the editor occasionally. The session file updates.
Author:  gaheitman [ Mon May 06, 2013 11:36 am ]
Post subject:  Re: Just made an IDE for MQL4

If you edit the file manually, does it stay up-to-date?
Author:  ovo.cz [ Mon May 06, 2013 11:38 am ]
Post subject:  Re: Just made an IDE for MQL4

gaheitman wrote:If you edit the file manually, does it stay up-to-date?
Yes. Whatever I type it shows up in the list.

EDIT:
I believe I got it. The space in the "Program files". Other paths do work, unless there is an item with a space, which erases all items.
Author:  mrmedia [ Tue May 14, 2013 6:33 pm ]
Post subject:  Re: Just made an IDE for MQL4

Would be great if you could check in and check out code in a version control.

RapidSVN on linux works all locally, not internet transfers.
Author:  droland [ Sat Jun 08, 2013 6:36 pm ]
Post subject:  Re: Just made an IDE for MQL4

SteveHopwood wrote:
garyfritz wrote:OK, this is getting stranger.

As I said, this indicator with #includes compiles fine in Metaeditor but not SciTE. Not my SciTE anyway. I tried downloading and installing a fresh SciTE -- no improvement.

I've been doing more indicators than EAs lately. The last EAs I compiled were ShelleyNOW and the BJS Basket EA. I just compiled them again and it worked fine -- and they include stdlib.mqh and WinUser32.mqh. If I copy the identical #include to the indicator I'm trying to compile, it fails. Is there something different about #includes in an indicator?

I looked at stdlib.mqh. The first line in it says "#import <stdlib.ex4>". stdlib.ex4 doesn't exist anywhere in this Empty4 tree. If it's trying to import it, why don't the ShelleyNOW / BJS compilations hit an error?

I thought, OK, it wants stdlib.ex4. So I'll compile stdlib.mq4. Didn't expect it to do much, and it didn't. No compile errors, but no .ex4 output either.

So I found a stdlib.ex4 in an older Empty4 folder under experts\libraries. Copied it to experts\libraries in my Empty4 and tried again. No improvement.

I be confoozed...
In response to this, I loaded up one of the umpteen custom indis and added

Code: Select all

#include <WinUser32.mqh>
#include <stdlib.mqh>
to it.

Now, Gary, you know that I love the rare occasion when I can get one over on you and will crow to the heavens when this happens (heroically resists the opportunity to mention the self-banning incident :lol: )

On this occasion, no, sadly. ScITE threw up the same error message you got.

Hey ho.

Luckily for me, this is Someone Else's Problem - you know my antipathy towards indi code - but definitely a problem.

:D
I am not sure if this has been suggested but why can't you simply copy these two files from whatever Empty4 platform you are using to somewhere in the ScITE subdirectory from which they can be seen by the Editor.

I don't think these files change with the respective updates of the MetaCrap platform so once they can be seen by the Editor, all compiles should work.
Author:  gaheitman [ Sat Jun 08, 2013 6:45 pm ]
Post subject:  Re: Just made an IDE for MQL4

droland wrote:
SteveHopwood wrote:
garyfritz wrote:OK, this is getting stranger.

As I said, this indicator with #includes compiles fine in Metaeditor but not SciTE. Not my SciTE anyway. I tried downloading and installing a fresh SciTE -- no improvement.

I've been doing more indicators than EAs lately. The last EAs I compiled were ShelleyNOW and the BJS Basket EA. I just compiled them again and it worked fine -- and they include stdlib.mqh and WinUser32.mqh. If I copy the identical #include to the indicator I'm trying to compile, it fails. Is there something different about #includes in an indicator?

I looked at stdlib.mqh. The first line in it says "#import <stdlib.ex4>". stdlib.ex4 doesn't exist anywhere in this Empty4 tree. If it's trying to import it, why don't the ShelleyNOW / BJS compilations hit an error?

I thought, OK, it wants stdlib.ex4. So I'll compile stdlib.mq4. Didn't expect it to do much, and it didn't. No compile errors, but no .ex4 output either.

So I found a stdlib.ex4 in an older Empty4 folder under experts\libraries. Copied it to experts\libraries in my Empty4 and tried again. No improvement.

I be confoozed...
In response to this, I loaded up one of the umpteen custom indis and added

Code: Select all

#include <WinUser32.mqh>
#include <stdlib.mqh>
to it.

Now, Gary, you know that I love the rare occasion when I can get one over on you and will crow to the heavens when this happens (heroically resists the opportunity to mention the self-banning incident :lol: )

On this occasion, no, sadly. ScITE threw up the same error message you got.

Hey ho.

Luckily for me, this is Someone Else's Problem - you know my antipathy towards indi code - but definitely a problem.

:D
I am not sure if this has been suggested but why can't you simply copy these two files from whatever Empty4 platform you are using to somewhere in the ScITE subdirectory from which they can be seen by the Editor.

I don't think these files change with the respective updates of the MetaCrap platform so once they can be seen by the Editor, all compiles should work.
The editor doesn't look for these files, it is the command line compiler, so it needs to be where the compiler wants to look.

I think there have been a couple of solutions posted to this issue later in the thread.

George
Author:  w633 [ Sun Jun 09, 2013 5:28 am ]
Post subject:  Re: Just made an IDE for MQL4

gaheitman wrote:
The editor doesn't look for these files, it is the command line compiler, so it needs to be where the compiler wants to look.

I think there have been a couple of solutions posted to this issue later in the thread.

George
Yes, to re-iterate, the easier solution is to create a directory link to "include" folder, do this on "indicators", "libraries", and "scripts" folders. just open a command console (cmd.exe) under administration mode, go to your indicator directory (c:\whatever\indicators) and use the following command:

Code: Select all

mklink /D include ..\include
All times are UTC Page 24 of 32