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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Help to decompile my own ex4 file 2 replies

.EX4 File Problem 5 replies

Share EA with .ex4 file only? 1 reply

Viewing an .ex4 file 1 reply

Can't get ex4 file to work. 5 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: How to create an .EX4 file?
Exit Attachments
Tags: How to create an .EX4 file?
Cancel

How to create an .EX4 file?

  • Post #1
  • Quote
  • First Post: May 17, 2010 9:42pm May 17, 2010 9:42pm
  •  Fish
  • | Joined May 2009 | Status: Member | 34 Posts
How do you create and .ex4 file in MT? After compiling the code I get the .mq4 file but there is no .ex4 file? I looked in the Programs.../experts folder and there is only the one .mq4 file for the code I just compiled/saved...

I know there are decompilers to open up the .ex4 file but I'm not worried about that right now.
  • Post #2
  • Quote
  • May 18, 2010 1:11am May 18, 2010 1:11am
  •  nightyhawk
  • | Joined Sep 2009 | Status: Member | 296 Posts
U are sure, that compiling was successful?
 
 
  • Post #3
  • Quote
  • May 18, 2010 3:39am May 18, 2010 3:39am
  •  etrijuni
  • | Joined Jan 2008 | Status: Member | 8 Posts
Are you sure there isn't any error at your script?
 
 
  • Post #4
  • Quote
  • May 18, 2010 8:21am May 18, 2010 8:21am
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
The subject of this thread has sparked a crazy idea in my mind: How about re-engineering the .ex4 format with the goal of creating a better language along with a compiler for it to make important missing features like for example anonymous functions and closures possible?
 
 
  • Post #5
  • Quote
  • May 18, 2010 9:34am May 18, 2010 9:34am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 32 y/o Investor/Trader/Programmer | 5,016 Posts
How about developing a .ex4 generator which is impossible to easily decompile.

E.G. The .ex4 generator is compiled with a scrambler hash of some sort. So the decompiler would have to guess the code to successfully decompile the code.

Just thinking out loud here. =)
 
 
  • Post #6
  • Quote
  • May 18, 2010 3:27pm May 18, 2010 3:27pm
  •  Fish
  • | Joined May 2009 | Status: Member | 34 Posts
Everything compiles fine, no errors, and functions as needed....just don't see the ex4 file. Hmmm....I'll do a search on the C drive when I get home to specify the ex4 file type. It might be throwing it somewhere else for some reason although I don't know why.

And yes, if MT could compile and save with a user encryption for the code that'd be great......

I'll report later tonight....
 
 
  • Post #7
  • Quote
  • May 18, 2010 3:36pm May 18, 2010 3:36pm
  •  nightyhawk
  • | Joined Sep 2009 | Status: Member | 296 Posts
Quoting Ronald Raygun
Disliked
How about developing a .ex4 generator which is impossible to easily decompile.

E.G. The .ex4 generator is compiled with a scrambler hash of some sort. So the decompiler would have to guess the code to successfully decompile the code.

Just thinking out loud here. =)
Ignored
What a great idea *laugh...

And by that way you would even force the interpreter to guess the code... so every EA is a kind of RR-coin-toss... nice!
 
 
  • Post #8
  • Quote
  • May 18, 2010 4:25pm May 18, 2010 4:25pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting Fish
Disliked
How do you create and .ex4 file in MT? After compiling the code I get the .mq4 file but there is no .ex4 file? I looked in the Programs.../experts folder and there is only the one .mq4 file for the code I just compiled/saved...

I know there are decompilers to open up the .ex4 file but I'm not worried about that right now.
Ignored
Hi Fish,

mq4 file -------------> compile ------> ex4 file
ex4 file will be saved to the same folder as that mq4 file
if it is an EA, normally it would be in experts folder
indicator goes to experts/indicators
script goes to experts/scripts
to run EA/indicator/script, you only need ex4
to edit EA/indicator/script, you need mq4
to convert ex4 to mq4, you need decompiler

hope this help
 
 
  • Post #9
  • Quote
  • May 19, 2010 3:29pm May 19, 2010 3:29pm
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
Quoting Fish
Disliked
Everything compiles fine, no errors, and functions as needed....just don't see the ex4 file.
Ignored
Maybe yet another instance of the "write into program folder"-problem. Although it is not allowed for programs to write into "c:/program files/*" windows won't throw an error mesage and instead silently maps the file to elsewhere.

MT4 is designed to run on windows98 where there were no user rights settings and home folders. Unfortunately nobody has told the metaquotes people that since more than 12 years we have newer and better versions of windows now in most places outside of Siberia or wherever they live.

change the permissions of the installation folder of MT4 to give the user full write access or install metatrader somewhere else (my documents or wherever the user has write permissions).
 
 
  • Post #10
  • Quote
  • May 19, 2010 8:52pm May 19, 2010 8:52pm
  •  Fish
  • | Joined May 2009 | Status: Member | 34 Posts
Quoting 7bit
Disliked
Maybe yet another instance of the "write into program folder"-problem. Although it is not allowed for programs to write into "c:/program files/*" windows won't throw an error mesage and instead silently maps the file to elsewhere.

MT4 is designed to run on windows98 where there were no user rights settings and home folders. Unfortunately nobody has told the metaquotes people that since more than 12 years we have newer and better versions of windows now in most places outside of Siberia or wherever they live.

change the permissions of the installation...
Ignored

Ahhh...Grasshoppuh....

For some reason Vista didn't give me, the administrator...ruler of all that enters through thine keyboard...Full Access to the folder...

There ya go..thanks boss...

Us forecks tradurs are prettee smat peepl...
 
 
  • Post #11
  • Quote
  • Mar 23, 2011 11:09am Mar 23, 2011 11:09am
  •  nagarajnow
  • | Joined Oct 2010 | Status: Member | 3 Posts
Hi Everyone. I am new to MT4 language. ANd I am also facing the same problem in creating .ex4 files.

I have a mql file and I compile it it shows 0Errors and 0warning in MetaEditor.

And I use File->Save As->filename.ex4

And I cant make the file as EX4 file. Pls help me out to overcome this problem
 
 
  • Post #12
  • Quote
  • Mar 23, 2011 4:31pm Mar 23, 2011 4:31pm
  •  CockeyedCowboy
  • Joined Apr 2006 | Status: Trader Keit | 286 Posts
interesting idea..... wow what if ?



Quoting 7bit
Disliked
The subject of this thread has sparked a crazy idea in my mind: How about re-engineering the .ex4 format with the goal of creating a better language along with a compiler for it to make important missing features like for example anonymous functions and closures possible?
Ignored
Attached Image (click to enlarge)
Click to Enlarge

Name: What If.jpg
Size: 111 KB
Trader Keit ... Methods Of A Dirt Road Mad Man....
 
 
  • Post #13
  • Quote
  • Mar 24, 2011 1:35am Mar 24, 2011 1:35am
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting nagarajnow
Disliked
Hi Everyone. I am new to MT4 language. ANd I am also facing the same problem in creating .ex4 files.

I have a mql file and I compile it it shows 0Errors and 0warning in MetaEditor.

And I use File->Save As->filename.ex4

And I cant make the file as EX4 file. Pls help me out to overcome this problem
Ignored
If you're running Vista, you need to re-install MT4 somewhere other than under the Program Files folder, like 7bit says.

Apparently Vista does not allow you to write files (e.g. .ex4 files) to folders under Program Files. No doubt it's very frustrating. That's one reason why I'm stubbornly refusing to downgrade from my Win XP. LOL.
 
 
  • Post #14
  • Quote
  • Mar 28, 2011 6:53am Mar 28, 2011 6:53am
  •  nagarajnow
  • | Joined Oct 2010 | Status: Member | 3 Posts
Quoting hanover
Disliked
If you're running Vista, you need to re-install MT4 somewhere other than under the Program Files folder, like 7bit says.

Apparently Vista does not allow you to write files (e.g. .ex4 files) to folders under Program Files. No doubt it's very frustrating. That's one reason why I'm stubbornly refusing to downgrade from my Win XP. LOL.
Ignored
HI. Thanks for the reply. But me laos using XP only. I got some other idea now and let me try with it and see.
 
 
  • Post #15
  • Quote
  • Jul 20, 2011 5:31am Jul 20, 2011 5:31am
  •  essenza
  • | Joined Nov 2008 | Status: Member | 818 Posts
I have script attach to the chart but i also have an indicator attach to the chart however the script one which is come only in ex4 cause their text to be on top or overwrite text generated by the indicator (actually the text that is generated by indicator is completely hiding by the text generated by the script). Can anyone suggest how to overcome this as i want my indicator text to be viewed instead my script text. Of course not by removing the script LOL. Thans
 
 
  • Post #16
  • Quote
  • Jan 8, 2012 1:44pm Jan 8, 2012 1:44pm
  •  Goodfocker
  • | Joined Feb 2011 | Status: Junior Member | 4 Posts
Hi traders

can anyone help me to create mq4 and ex4 files?

Any help welcome
or skype me thefxtrader1
cheers guys
 
 
  • Post #17
  • Quote
  • Jan 9, 2012 4:22pm Jan 9, 2012 4:22pm
  •  tarrentino
  • | Commercial Member | Joined Jan 2010 | 173 Posts
Quoting Goodfocker
Disliked
Hi traders

can anyone help me to create mq4 and ex4 files?

Any help welcome
or skype me thefxtrader1
cheers guys
Ignored
Write your mq4 files in the Metaeditor and click "Compile" - the result is an ex4 file. Assuming your syntax is correct.
 
 
  • Post #18
  • Quote
  • Last Post: Jan 9, 2015 1:15am Jan 9, 2015 1:15am
  •  ddien
  • | Joined Dec 2014 | Status: Member | 90 Posts
find the ex4 file user download file and copy paste both mq4 and ex4 file your indicator program
 
 
  • Platform Tech
  • /
  • How to create an .EX4 file?
  • 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 / ©2023