Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  #11 (permalink)  
Old 02-09-2008, 06:24 PM
Dan7974's Avatar
Senior Member
 
Join Date: Jul 2006
Posts: 264
Dan7974 is on a distinguished road
Quote:
Originally Posted by newdigital View Post
First of all you must decide: is it EA or indicator?
Because everything should be placed in different folders ...
This post will help you http://www.forex-tsd.com/92940-post7.html
So, after placing your, let's say, EA in right foder you must open MetaEditor.
It is more good to open MetaEditor from MetaTrader.
I am having few copies of Metatrader in my PC so if I do not want to be confused about which MetaEditor for which Metatrader so I am openning MetaEditor from Metatrader: right mouse click on any indicator and select "Modify". MetaEditor will be opened.

Find your EA (or indicator) in MetaEditor.
Use this one:

Attachment 54196

or this menu:

Attachment 54197

And open your EA (or indicator) and compile it. Just click on this one:

Attachment 54198

If you have any errors so you will see it here:

Attachment 54200

If no error so you can find your ex4. Do you remember the forder where you placed your EA or indicator?
This post http://www.forex-tsd.com/92940-post7.html

So go to the same folder and you will find your ex4 file.

If you want to change your ex4? Do the same - compile the code and MetaEditor will generate new ex4.

Because Metatrader is using ex4 files.

Thanks NewsDigital.
You have helped me a lot!
__________________
God Bless Everyone, and their trading logic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-10-2008, 03:17 AM
fxgrm's Avatar
Member
 
Join Date: Mar 2007
Posts: 89
fxgrm is on a distinguished road
Need simple money management code for EA

Could someone post code for a simple MM feature for an EA along with some instructions on where to place it?

Thanks in advance!

Last edited by fxgrm; 02-13-2008 at 12:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-10-2008, 09:37 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,942
Blog Entries: 64
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Check this thread Money Management - because i am not sure exactly but it should be some MM library files with more than 20 kinds of MM and instruction about where to place one line in the code to (just one line only). But I am not sure ... may be I did not ppst it ... it was on some old thread and I posted it exactly ...
As I remember I made MM for MACD sample EA using one of this library file just for 1 minutes ...
Try to search the thread. If not so I will ry to find it later on the forum or inside my PC (it will be easy on the forum).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-10-2008, 12:10 PM
fxgrm's Avatar
Member
 
Join Date: Mar 2007
Posts: 89
fxgrm is on a distinguished road
Unhappy Checked MM Thread

Doesn't seem to be any code for simple MM there. just some theory.

I just want a risk percent setting and have it calculate the first initial lot size based on my available account balance.

I have seen it on other EA's like 10pts3 and I tried to cut and paste it into my EA but I got errors I couldn't fix.

Maybe if you find some code you could point me in the right direction.

Thanks newdigital

Last edited by fxgrm; 02-10-2008 at 05:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-04-2008, 02:55 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,122
matrixebiz is on a distinguished road
How do you put an expiry date on an EA? So that after a month or whatever set time it wont work anymore?

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 03-04-2008, 06:39 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,942
Blog Entries: 64
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Look at this thread How to LOCK/Encrypt EA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/11801-expiration.html
Posted By For Type Date
World of Forex Trading » Expiration This thread Pingback 01-14-2008 01:05 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting An Expiration Date On Indicator emersond Indicators - Metatrader 4 10 08-05-2007 09:33 AM
EA expiration date jyrik Expert Advisors - Metatrader 4 6 04-12-2007 04:32 PM
Place expiration on EA troydavis1010 General Discussion 1 04-10-2007 09:05 PM


All times are GMT. The time now is 06:51 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.