Forex



Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #171 (permalink)  
Old 06-20-2009, 05:37 AM
Junior Member
 
Join Date: Feb 2009
Posts: 2
efex01 is on a distinguished road
Exclamation Lot size calculator - aggressive money management

Hello Everyone,

I am a manual trader and i am looking to program a simple MT4 indicator to display on the main chart the required lot size to take on the next trade as following:

Lot size =(Equity x 1%) / (open spread + arbitrary number of pips +(Distance between current candle OPEN and SMA50))


The indicator should simply display the calculated Lot size on the screen and refresh it at every new candle
I'd like to have the following variables:
Risk (1% in the above example)
Arbitrary number of pips. This variable would be useful to decrease the lot size) default =zero.

Any help would be apprecaited in directing the right way with Metatrader programing. I never programed.

Thanks,
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
  #172 (permalink)  
Old 07-28-2009, 06:37 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 516
Beno is on a distinguished road
Range Based MM Idea ???

Gidday


I am looking for a mm system that is based on using the daily range as the TP and SL.


The way I am looking for it to work is the greater the range the more of the FreeMargin is risked and vice versa.

I have attempted to code it my self but have had a bit of trouble

My maths might be wrong but this is what I am looking to acheive.

bar2

H = 1.64947

L = 1.64889

Range = H-L = 58


bar1

H = 1.64922

L = 1.64771

Range = H-L = 151


Percentage Risk = 151-58/151=0.61*100=61%


if there is $1250free margin I would like to the Percentage Risk as above the differance between bar ranges so 1250*61% = 762.5 risked on the next trade.

the Tick value is $10 so $762.5/$10 = 76.25 pips ? i think


the range is 151 from the previous bar so w divide 76.25/151= 0.50 so my lot size is 0.50.


double Range = (H-L);


Is this able to be coded

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
  #173 (permalink)  
Old 09-14-2009, 03:36 PM
Junior Member
 
Join Date: Nov 2008
Posts: 19
4x4all is on a distinguished road
Calculator(s) for Auto MM etc.

Need a calculator for this:

Starting balance 500.00 (this is a plug-in number)

MM=1 (auto money management is on)

Risk set to 1

52 weeks (plug-in number)

Equity growth per week 5% (plug-in number)

So, if user is starting with 500.00 account balance and gains a consistent 5% per week and the lot size adjust by .01 (1 nano lot) for every 5% gain on account, what would the account be at the end of 52 weeks.

I've seen this or something similar but not locating it so hopefully someone has it or can write it. Thank You, Kevin
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
  #174 (permalink)  
Old 09-18-2009, 06:00 AM
fosgate_r's Avatar
Member
 
Join Date: Nov 2008
Posts: 91
fosgate_r is on a distinguished road
Thank you. I need to refresh my mm stuff. A little bit lost now :P
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
  #175 (permalink)  
Old 11-07-2009, 06:25 AM
Junior Member
 
Join Date: May 2008
Posts: 3
mrheredia is on a distinguished road
Check out this tread by leeb, he made this EA wich shows you your entry, TP and SL with visual lines which you can move and the data will also change, very nice job!
Useful money management expert
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
  #176 (permalink)  
Old 11-14-2009, 03:53 AM
radatats's Avatar
Senior Member
 
Join Date: Feb 2006
Location: NY
Posts: 266
radatats is on a distinguished road
Quote:
Originally Posted by efex01 View Post
Hello Everyone,

I am a manual trader and i am looking to program a simple MT4 indicator to display on the main chart the required lot size to take on the next trade as following:

Lot size =(Equity x 1%) / (open spread + arbitrary number of pips +(Distance between current candle OPEN and SMA50))

Thanks,
Not sure I understand your request. You want to know what size trade to take to risk 1% of your equity based on how far away from the 50SMA price is at the moment? Is that because you are using the 50 as your stop level? If so I have attached two scripts that will do it for you. You just have to input how many pips it is yourself.

Otherwise I can't see how the 50SMA has any relation to your trade size. Risk is totally dependent on your stop size. The bigger the stop the smaller the trade size and vice versa for the same risk percentage.

Try the scripts. Remember 4digit 20 pips = 5 digit 200 pips.
Attached Files
File Type: mq4 Buy with SL and TP w Confirm.mq4 (1.7 KB, 7 views)
File Type: mq4 Sell with SL and TP w Confirm.mq4 (1.7 KB, 6 views)
__________________
Change everything till it works!!! Test, test, test...
Click here to see my trading...
http://letsgetreal.mt4stats.com
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
  #177 (permalink)  
Old 11-14-2009, 04:11 AM
Junior Member
 
Join Date: Jun 2009
Posts: 3
wadams19 is on a distinguished road
Auto Lot Calc

Here's what I use to calculate position sizes.

You can set three variables:
Risk: The percentage of equity you want to risk for the trade.
SL: Stop loss distance in pips away from the entry
Balance: If kept at zero, the equity amount used in calculations is the current account equity. However, I like to keep the dollar amount of risk constant for a day or so. So, I allow for a user defined equity input.
Attached Files
File Type: mq4 Lot Calc.mq4 (1.7 KB, 12 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
Reply

Bookmarks

Tags
forex, money management, money management code, money management indicator, moneymanagement


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Help Needed Making Perfect Trailing Stop EA sbwent Expert Advisors - Metatrader 4 31 08-07-2009 07:41 PM
The perfect trader black ice General Discussion 9 11-14-2006 06:51 AM
10k lot size brokers kevmcfoster Suggestions for Trading Systems 12 10-07-2006 12:25 AM
Must have utility for MT coders who are not 100% perfect ycomp Tools and utilities 2 02-23-2006 11:45 PM


All times are GMT. The time now is 01:07 PM.



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