| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Automatic Loss Recovery System (ALR) - read this first https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3682 |
Page 26 of 40 |
| Author: | Lagrange [ Sun Aug 03, 2014 6:47 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Yes please I sure want to take it to the next level! I am totally not interested in trading EA's,I trade manual, but this ALR EA can be useful to manage trades. About the pip/lotsize issue; http://www.mql5.com/en/charts/2196963/e ... tments-inc This was my entry on EURNZD last week.Entry was late for some pips to the downside but I wanted to test this EA. Because the EA took 0.05 lots instead of 0.04 I could get out fast. The red line was calculated by the ALR EA, very far, but I closed at the high manually for almost breakeven because it was just before NFP...see how they pushed up before news, haha. ps initial entry was 0.03 lot best Lagrange |
|
| Author: | blazecrown [ Tue Aug 05, 2014 9:06 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Hi folks, i noticed from the original formulas: H(n) = {[(sum_of_P(n-1)+A)(z+h) +0.1*C]/[s+h]} - sum_of_H(n-1) P(n) = {[(sum_of_H(n)(z+h+s) +0.1*C]/[p+s]} - [sum_of_P(n-1) + A] the above formulas are in the assumption that pip value is $10/pip. shouldn't it be that the factor 0.1*C should be C/V instead, wherein V is an input parameter of the currency pair's pip value? i think this should take care of the correct T/P zone relative to Target Profit in $. what do you think fellas? |
|
| Author: | TheInsider [ Thu Aug 07, 2014 12:20 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Hi! My first post here. I hope that I can contribute. I'm both a trader and a programmer. FYI, I have this EA (original ALR), so I can run and publish tests here. First, this is how the external settings look like... ![]() Everything default except 'ProfitInDollar' which by default is 0. Since this EA only manages one initially open trade, running backtests with it will ONLY open one random position and then manage its trades. I have noticed that the lot size increases if the setting 'ProfitInDollars' is higher. The backtests that I share here are based on DukasCopy TickData with Real spread, no spread markup and $10 per lot deducted in Commission (well aware that this is much more than what most brokers charges). When running backtests for ALR in most cases it opens 1 position which then is also closed in profit, so no additional positions are opened. I had to try to find a date where it triggers additional hedged positions. I started with 2014.01.01 and ended up with 2014.01.05. I changed 'MaximumOrders' to 20 to make sure that this settings does not restrict the trading (as with the default value of 15 it did open 15 positions, when in fact it opened 17 positions). Then run 3 tests, with the 'ProfitinDollars set to 0, 10 and 500. Attached is a zip-file with the 3 tests. https://www.sendspace.com/file/1c9qre |
|
| Author: | kotsh [ Thu Aug 07, 2014 1:26 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Hi Insider, thanks for sharing the info about the original ALR. A few question though: - what happens when ALR trades are triggered and then the terminal is reset or connection is lost ? - Can you change the ALR zone size once ALR has kicked in to avoid getting chopped in a ranging market? |
|
| Author: | TheInsider [ Thu Aug 07, 2014 8:50 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
I haven't tested this yet, but will, and then let you all know how it behaves. Stay tuned! On a 100K demo account. I just opened a EURUSD Buy position of 1.00 lot, added ALR and set the ticket number for that order. It then instantly opened a sell stop order and modified the open order with a SL and TP. I then wanted to restart the Empty4 to see what happened, so I clicked on the X in the upper right corner of the Empty4. A window pops up saying that there's an existing ALR pending order, and it's asking if that pending order should be deleted or not. I clicked on No and the Empty4 closed. I then restarted it and can confirm that the pending order is there. Opened another chart and opened a Sell order for 1 lot, and added ALR and set it to the ticket number for that order. If I change the ALRZoneSize setting while it's running it instantly modifies the pending stop orders. But it does not change anything in the first opened market order. Both the Buy and the Sell order was closed with $150 in profit, a total of $300 in net profit. Pending hedged orders was deleted. Then ALR stopped automatically and was also automatically removed from the chart! I will make more tests to see how it behaves. I will edit this post and add more info. |
|
| Author: | Dewey McG [ Fri Aug 08, 2014 12:06 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Will have a look this weekend when I have some time. My schedule has been swamped the last few days |
|
| Author: | TheInsider [ Sun Aug 10, 2014 6:55 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Hi again! Here is a slightly modified version of 'Wealthmasters' "ALR_with_spread". Thius is what I've done... - Cleaned code to make it more readable and easier to modify. Tab = 3, block { } in same column, added spaces. - Added external 'FirstOrderDirection' in order to make comparable test with original ALR, and adjusted first OrderSend accordingly. - Moved 'TradeComment' to external in case someone want to test it on live demo or real accounts. - Overruled rounding as comparable tests shows that the increased lot size does not have any positive effect on the outcome. I also renamed XYZ to 'Profit', since in the original ALR there's a setting to add profit. Attached are some tests made with the original ALR and profit set to 50. And attached is a zip with similar tests made the same dates using this modded version of 'Wealthmasters' ALR with Spread. All tests are based on DukasCopy TickData with Real Spread, no spread markup added but $10 per lot as Commission deducted from each closed position. Note: There's one missing comparable test - for ALR_with_Spread on 2014.01.05 due to an error 130 ( SL/TP ) once it reached order 16. I have to look into this...
|
|
| Author: | Dewey McG [ Sun Aug 10, 2014 6:59 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Fantastic job and thanks so much for your contribution. I will have to test yours to see if it has the same issue, but I did have an issue with the prior one: I use FinFX ECN Pro which has a minimum size of .1 for a trade. Because of that ALL the trades were rounded up: .1, .2 (instead of .14 etc.) Will this one work correctly with ECN brokers? |
|
| Author: | Dewey McG [ Mon Aug 11, 2014 3:01 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Here is what I mean. I put this new one on FinFX's ECN Pro Demo. The progression of trades goes from .1 to .2 and on up but always rounds up. The correct 2nd trade for instance would be .14, not .2 See PICs of EA on chart and the spreadsheet |
|
| Author: | Lagrange [ Mon Aug 11, 2014 9:13 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Here a snapshot, the settings/lotsize seems to be right: http://www.mql5.com/en/charts/2225781/e ... x-group-of cheers L |
|
| All times are UTC | Page 26 of 40 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|