• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:46am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:46am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Saving ex4 file to indicator folder 3 replies

Please Help! No Expert Folder in MT4 Folder 12 replies

Need Help with FileMove from Common Folder to Common Folder 3 replies

Where is the real MT4 indicators/experts folder? 3 replies

copy and move experts/files to another folder 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: experts advisor file not in experts folder
Exit Attachments

experts advisor file not in experts folder

  • Post #1
  • Quote
  • First Post: May 9, 2010 3:09pm May 9, 2010 3:09pm
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
I am in the process of writing some EA for experiment. However, when I launched the metaEditor by pressing F4 key, select File -> New, create file, save as in the experts folder. It compiled oK, and it can be attached to the chart with no problem.

However, if you try to look for the file with windows explorer, under c:\program files\metatrader 4\experts folder, there is no such EA file which I just created.

I can actually see the EA from the navigator pane, only problem is when I trying to locate it, it is not in the expert folder.

If I click file, save as, and walk down to experts folder, I can actually see this EA file, but its icon has an lock on top, different from other EA file I manually copied into the experts folder.
Anyone know what's the problme and where the metatrader save the ea file?
  • Post #2
  • Quote
  • May 9, 2010 3:55pm May 9, 2010 3:55pm
  •  TJPLD
  • Joined Jan 2008 | Status: Inertial Member | 2,297 Posts
Have you tried Windows searching for your file?
Maybe you have multiple MT4s on your PC (made a copy to run 2 instances at the same time) and the compiler is linked to another folder.
  • Post #3
  • Quote
  • May 9, 2010 10:12pm May 9, 2010 10:12pm
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
I did a search on these file but none of these file is found. That is really weird.
I don't think metatrader save these files with hidden attributes, since I changed my windows explorer to show hidden files.

Or maybe my windows 7 need a reinstall. It have undergone multiple upgrade from vista to window 7 beta, then windows 7 RC, and then finally to window 7 professional. So there might be bug for that.
  • Post #4
  • Quote
  • May 10, 2010 6:50am May 10, 2010 6:50am
  •  eagle4x
  • | Joined Sep 2005 | Status: pip my ride | 629 Posts
Did you change "Files of Type" from "Programs" to "All Files"? Individual files will appear only after "All Files" is clicked. If you tried that already, and you still don't see your file, just go to Navigator, right click on the EA, click modify - then copy and try saving again with new file name (_2, etc.).
  • Post #5
  • Quote
  • May 10, 2010 9:27pm May 10, 2010 9:27pm
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
Not sure what you mean by changing "File of Type". But I did select All file when I tried to save the file.

I can open or edit the file by right click the file in the Navigator pane without any problem. I can also save the file as a different file name, but it just not visible under windows explorer when try to look for it. It seems like the MetaTrader program save this file somewhere hiding from you.

As seen the screenshot as attached, The MACD sample.mq4 file is manually created in the experts folder, There is no lock on the file icon, however, MakeMillion.mq4 is created by MetaEditor, by using File -> Save As menu, you can see the lock on the file icon, and you have no way of finding it if you dig into the experts folder.

It is really odd. The other thing is when I try to take a screenshot of the chart with WindowScreenshot function, I can see the function return no error, but it does not create the screenshot file. You would think metaTrader can access the program file folder, even though only administrator can modify this folder under windows 7 security level.

I am guessing I need to wipe this machine clean and reinstall the whole system.

Quoting eagle4x
Disliked
Did you change "Files of Type" from "Programs" to "All Files"? Individual files will appear only after "All Files" is clicked. If you tried that already, and you still don't see your file, just go to Navigator, right click on the EA, click modify - then copy and try saving again with new file name (_2, etc.).
Ignored
Attached Image (click to enlarge)
Click to Enlarge

Name: Untitled.png
Size: 31 KB
  • Post #6
  • Quote
  • May 10, 2010 10:00pm May 10, 2010 10:00pm
  •  lmyyyks
  • | Joined Mar 2010 | Status: it's an "L", not an "I" | 204 Posts
Quoting neomn
Disliked
Not sure what you mean by changing "File of Type". But I did select All file when I tried to save the file.

I can open or edit the file by right click the file in the Navigator pane without any problem. I can also save the file as a different file name, but it just not visible under windows explorer when try to look for it. It seems like the MetaTrader program save this file somewhere hiding from you.

As seen the screenshot as attached, The MACD sample.mq4 file is manually created in the experts folder, There is no lock on the file icon, however,...
Ignored
mq4 file can not be used in the metatrader4,
you have to compile the mq4 file to ex4 file through the "compile" function in the metaeditor, you can do this by simply pressing F5 in metaeditor.
  • Post #7
  • Quote
  • May 10, 2010 10:36pm May 10, 2010 10:36pm
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
the compiled ex4 is not shown either.

Quoting lmyyyks
Disliked
mq4 file can not be used in the metatrader4,
you have to compile the mq4 file to ex4 file through the "compile" function in the metaeditor, you can do this by simply pressing F5 in metaeditor.
Ignored
  • Post #8
  • Quote
  • May 12, 2010 9:06pm May 12, 2010 9:06pm
  •  eagle4x
  • | Joined Sep 2005 | Status: pip my ride | 629 Posts
I did a test using same method you used, and I could find the file in my experts folder. Did you create this file yourself? Reason I'm asking is that I don't see how the file could become locked unless intentionally programmed to do so. Saw an ad for s/w that costs $1K to lock EA's. I wouldn't wipe your machine clean and start over just to try to get the file unlocked - I don't think it would work. May consider finding a programmer you trust that is willing to look at it by doing remote access.
  • Post #9
  • Quote
  • May 17, 2010 2:47am May 17, 2010 2:47am
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
This file is create my myself, but I do think it is related to the machine cause it has other kind of funky problem like it would not create log file and screenshot. Thanks for the suggestion though.
Quoting eagle4x
Disliked
I did a test using same method you used, and I could find the file in my experts folder. Did you create this file yourself? Reason I'm asking is that I don't see how the file could become locked unless intentionally programmed to do so. Saw an ad for s/w that costs $1K to lock EA's. I wouldn't wipe your machine clean and start over just to try to get the file unlocked - I don't think it would work. May consider finding a programmer you trust that is willing to look at it by doing remote access.
Ignored
  • Post #10
  • Quote
  • May 22, 2010 12:57pm May 22, 2010 12:57pm
  •  neomn
  • | Joined Jan 2010 | Status: Member | 86 Posts
Finally find the problem. I post this just for reference in case anyone has similar problems.

It turned out windwows 7 default UAC on, so if you logon is not administrator, even your windows user belong to administrator group, when you launch metatrader, metatrader will not be able to create file in program file directory, rather, the files are created under c:usersyourusernameappDataLocalVirtualStore.

To enable the program create file under program files directory, you have to disable UAC, or you can launch metaTrader with administrator right.

Microsoft UAC is pretty much a hindrance to productivity, and not really make your system more safer.
  • Post #11
  • Quote
  • Sep 10, 2010 9:55am Sep 10, 2010 9:55am
  •  amam08
  • | Joined Sep 2010 | Status: Junior Member | 1 Post
neomn - thank you so much for sharing this! I was almost spaz'ing with my mq4 file that I just edited and saved with another name not showing in the Windows explorer - but it was showing in the MQ navigator. Isn't it crazy how we still (have to?) use mr. softy...sigh...sigh...

Thanks for sharing your wisdom!
  • Post #12
  • Quote
  • Oct 7, 2010 8:07pm Oct 7, 2010 8:07pm
  •  schindawg
  • | Joined Feb 2009 | Status: Junior Member | 1 Post
And thank goodness for search engines. Was having this exact same issue. Turned off UAC and now back to bliss.
  • Post #13
  • Quote
  • Last Post: Nov 27, 2010 1:32pm Nov 27, 2010 1:32pm
  •  netwel
  • | Joined Nov 2010 | Status: Member | 6 Posts
Yes! So happy you solved this one for me. As I was runing into the same problem, it was getting more and more annoying.

Thanks a lot, neonm!
  • Platform Tech
  • /
  • experts advisor file not in experts folder
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021