| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| script to automatic calculate stop loss and lot size https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3203 |
Page 1 of 1 |
| Author: | SteveHopwood [ Tue Oct 15, 2013 8:10 pm ] |
| Post subject: | Re: script to automatic calculate stop loss and lot size |
Give it a few days to see if someone posts a script. If not, get in touch with me via pm. Or maybe someone else can knock this script together. The code is all in my shell ea. You will need to tell us how to calculate your stop loss. |
|
| Author: | matt_32 [ Wed Oct 16, 2013 8:18 am ] |
| Post subject: | Re: script to automatic calculate stop loss and lot size |
Check out this tool (Easy Order) in http://www.forexfactory.com/showthread.php?t=281772 I hope this is what you are looking for Matt |
|
| Author: | joswald [ Wed Oct 16, 2013 10:28 am ] |
| Post subject: | Re: script to automatic calculate stop loss and lot size |
Try http://www.mt4trademanager.com.au Cheers, |
|
| Author: | jago25 [ Fri Oct 25, 2013 10:10 am ] |
| Post subject: | Re: script to automatic calculate stop loss and lot size |
Are there any more solutions out there for risk/money management that you've found? If it's really good I don't mind paying a reasonable amount for a small tool. Any more words to help me search? My broker is currently FXCM. Ideally I'd like something standalone so I'm not tied to a platform. Ideally it would be cross platform. It could even run on android - I'd be happy to chart on the desktop but actually execute trades on a phone. There are a few manual out there but you have to type in the numbers yourself - too slow. Track'n'Trade does MoneyManagement really well but it's subscription based, overkill for this little job. I like this program rather a lot but I'm not ready to start spending money on such things just yet - need to learn more and practice first. EasyOrder uses a dll that doesn't seem to work under linux. mt4trademanager works but the buttons flash on screen update. The FXCM windows desktop app converts the stake per pip to $ but it doesn't on the web frontend or Android app. Can I use Usd Mr (used margin) as a rough guide? |
|
| Author: | joswald [ Fri Oct 25, 2013 11:59 am ] |
| Post subject: | |
Try this... I removed all the unnecessary stuff. It's a tad slow calculating the position size but works fine. |
|
| Author: | fxdaytrader [ Wed Dec 11, 2013 6:09 pm ] |
| Post subject: | Re: script to automatic calculate stop loss and lot size |
Last year I published on ordersend-script which computes the lotsize based on risk. In the meantime I have found a nicer way of doing the same, so I decided to use jmw1970's way in my stuff (cui honorem, honorem Attached you will find a mql4-file. This file consists all parts you have to insert to your existing EA or ordersend-script to computed lots based on risk and stoploss (not pips, the price!). If you do not know the price and want to deal with fixed pips, change the external variable "CalcWithSlPipsIfNoSlGiven" to your needs. That are the external vars, find the functions / instructions in the attached mql4-file (in fact you only have to copy&paste all to your exisiting ea) Code: Select all lots = CalcLotsAndCheckMargin(Symbol(),OP_BUY,lots,RiskPercentage,Bid,0.0); if the last var is 0, then a distance of price-CalcWithSlPipsIfNoSlGiven pips will be used, if you want to specify a certain price it goes analogue, for example: double stoplossprice=1.3590; lots = CalcLotsAndCheckMargin(Symbol(),OP_BUY,lots,RiskPercentage,Bid,stoplossprice); please try |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|