Forex
Google
www.rentasignal.com Metatrader Signals Marketplace

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4

Notices


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

View Poll Results: Will this expert help with your trading ?
Yes 2 33.33%
No 1 16.67%
Maybe 3 50.00%
Voters: 6. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-10-2008, 07:37 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 363
leeb is on a distinguished road
Useful money management expert

Hi everyone,

As any real trader knows money management is a key part to successful trading.
I have spent many hours coding the expert below and have decided to share it with the forum as a thanks for all the knowledge I have obtained from it over the years.
This is not an auto-trading expert, it shows you market information and money management. You place it on the chart and adjust the lines as below:

Green line= Take profit
Red line = Stop loss
Blue line = Entry point

You see this is a very easy way to quickly manage your trades as you can just drag the lines and the information adapts !
There are not many inputs to know just the following:
1= Forex
0= CFD or other markets

It has taken me a long time to code this and I hope it helps some of you out there...
I have attached a screenshot and the code.
Attached Images
File Type: gif MM.gif (16.4 KB, 1085 views)
Attached Files
File Type: mq4 #MoneyManagement-v2.mq4 (5.5 KB, 384 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 11-10-2008, 07:43 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 363
leeb is on a distinguished road
The outputs of the expert

Most of the outputs shown are quite obvious but I will detail some of the less obvious ones here:

First of all remember to set risk (as percentage) and type (eg: forex or CFD) when you attach the expert.

It will display:
Useful market information such as Swap, leverage size, and your entries points as well as:

R/R Ratio: The risk/reward ratio, the higher this number the better.

R/R Ratio close of bar: The same as above but instead of being calculated from the blue entry line is calculated from the close of bar - very useful in fast moving markets.

Lot Size: How many lots you should risk given your risk percentage input.

Lot Size close of bar: The same as above but instead of being calculated from the blue entry line is calculated from the close of bar - again, very useful in fast moving markets.

Time until next bar: Time until the open of next bar, I also find this info very useful. Everything else should be quite self explanatory.

Would appreciate any feedback.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 11-10-2008, 07:46 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 363
leeb is on a distinguished road
Requests for improvements

Hi guys,

I think this is a really useful tool and I know there are some very experienced coders in this forum. If you can see anyway to improve it I would be grateful for any updates. I think two of the most important things would be:

1) The data would be better displayed in a seperate window to make it more readable.

2) If there is a way of integrating pip value and pip size so it automatically changes for forex/CFD we could get rid of that input which would be good.

I would give this expert 8/10 as it is with the great coders here I am sure we can make it 10/10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 11-10-2008, 07:55 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 478
Beno is on a distinguished road
That's great

I will use it

Cheers

Beno
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 11-10-2008, 08:20 PM
Senior Member
 
Join Date: Feb 2006
Posts: 579
Michel is on a distinguished road
Quote:
Originally Posted by leeb View Post
Hi guys,

I think this is a really useful tool and I know there are some very experienced coders in this forum. If you can see anyway to improve it I would be grateful for any updates. I think two of the most important things would be:

1) The data would be better displayed in a seperate window to make it more readable.

2) If there is a way of integrating pip value and pip size so it automatically changes for forex/CFD we could get rid of that input which would be good.

I would give this expert 8/10 as it is with the great coders here I am sure we can make it 10/10
Hi Leeb,
Thanks for your work !
PHP Code:
double PipValue MarketInfo(Symbol(), MODE_TICKVALUE);   // Pip Value in the deposit currency
double PipSize MarketInfo(Symbol(), MODE_TICKSIZE);   // Pip Size in the quote currency 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 11-10-2008, 08:54 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 363
leeb is on a distinguished road
Text Legibility

Does anyone know how the text legibility could be improved ?
I thought about putting it in a new window but the lines still need to be moved in the current window so not possible ?
Maybe a rectange or fill behind the text ? Has anyone done anything like this / have any ideas ?

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 11-10-2008, 09:45 PM
Senior Member
 
Join Date: Feb 2006
Posts: 579
Michel is on a distinguished road
Quote:
Originally Posted by leeb View Post
Does anyone know how the text legibility could be improved ?
I thought about putting it in a new window but the lines still need to be moved in the current window so not possible ?
Maybe a rectange or fill behind the text ? Has anyone done anything like this / have any ideas ?

Cheers
I think it may be easier to have an indicator instead of a script.
If you put the indic in a new window, the main window will still be the N° 0, thus the ObjectCreate(entry, OBJ_HLINE, 0, ...) will still draw the line on the main window (the third parameter is the window number). And ObjectGet() doesn't care about which window contains the object. So I think it should work.
Also an indicator is automatically called at each tick, so you don't need anymore an endless loop nor a sleep() inside.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 11-11-2008, 03:54 PM
Member
 
Join Date: Jun 2007
Posts: 43
cattus is on a distinguished road
Many thanks to share it, leeb.

gus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 11-23-2008, 10:43 PM
Junior Member
 
Join Date: Nov 2008
Posts: 2
Jackdaniel is on a distinguished road
Hi Leeb,

Thanks for sharing and directing me to a possible solution. I didn't play around with it for long but it didn't seem that simple to adjust the lines (stop, target and entry). My question in my post was if it's possible to create something like a tool that you'd click it of the tool bar and then click on the graph.
I'll take a closer look at the code to see if i can adapt it to my needs.

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 11-26-2008, 11:28 PM
Junior Member
 
Join Date: Nov 2008
Posts: 5
dustin82 is on a distinguished road
Which

I just downloaded this EA. It is the first time that I'm using one of those, I had been seeking for one that works for scalping but haven't found. I'll try this and see if it works fine. Which pairs and TF should I use it with?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
money management, money management indicator

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Money Management cardio Tools and utilities 170 06-20-2009 04:37 AM
BBANDS ( ISAKAS II ) + 100% Win Money Management Million_Fund Expert Advisors - Metatrader 4 8 12-20-2007 05:12 AM
Order Management Kurka Fund Expert Advisors - Metatrader 4 10 12-06-2006 03:28 AM


All times are GMT. The time now is 02:42 AM.



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