molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming http://www.molanis.com/forum/ |
|
Maximum percentage at risk http://www.molanis.com/forum/viewtopic.php?f=11&t=6063 |
Page 1 of 1 |
Author: | RobinB [ Sun Aug 17, 2014 6:20 pm ] | ||
Post subject: | Maximum percentage at risk | ||
I can't get this feature to work. I made a simple .mol file but I can't get it to work there either. I'm always getting lots that are 0.01 in the mt4 strategy tester. Here is the file:
|
Author: | molanisfx [ Tue Aug 19, 2014 9:01 pm ] |
Post subject: | Re: Maximum percentage at risk |
I tested it on my end and it works fine. Got 0.18 for micro and 0.2 for standard. In the Start icon Try setting account type to standard account. The calculation is done like this: lot=NormalizeDouble(AccountFreeMargin()*(MaximumPercentageatRisk/100)/1000.0,tmpdecimal); Some mt4 servers does not give info to AccountFreeMargin() so you cannot get the calculation done. If your deposit is in USD it should be fine. The stop at 3 pips will be rejected by the server. It is too small. Most server require 15 to 20 pips. |
Author: | RobinB [ Tue Aug 19, 2014 10:02 pm ] |
Post subject: | Re: Maximum percentage at risk |
The problem was that I used a demo account that use standard lots and I wanted to use micro lots. So I opened a new micro demo account and now it works. Thank you. |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |