| 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 36 of 40 |
| Author: | ronkeous [ Sat Dec 06, 2014 5:04 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
for your closing trades try using this... I never had any issues closing. try this Code: Select all CloseAllTrades(true,902101321); note the 902101321 is just a value to pass.. if you know the ticket number it will close all trades except for that. |
|
| Author: | ronkeous [ Sat Dec 06, 2014 5:06 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
if your pending order fails because too close or maybe even gap try entering on Market. I use something like this... Code: Select all |
|
| Author: | ronkeous [ Sat Dec 06, 2014 5:43 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
i wish I could upload an image here to show you my initial analysis but here it is in text eur/usd from Jan1 2014 to dec 2014 Initial Trade 90 Pips target Zone 30 pips Zone Take Profit 90 ZoneCount_X[1] : 4 : 0.14 ZoneCount_X[2] : 10 : 0.09 ZoneCount_X[3] : 3 : 0.12 ZoneCount_X[4] : 5 : 0.16 ZoneCount_X[5] : 4 : 0.21 ZoneCount_X[6] : 4 : 0.28 ZoneCount_X[8] : 4 : 0.51 ZoneCount_X[10] : 2 : 0.91 ZoneCount_X[12] : 1 : 1.61 ZoneCount_X[14] : 1 : 2.87 ZoneCount_X[15] : 1 : 3.82 the numbers in [] are the Zone trade count.. ie [3] means it took 3 zone trades (initial trade, 1st sell, 2nd buy, 3rd sell leg in order to hit Zone Take Profit to close all trades) : 0.14 is the lot size used during this time strategy to just by if currently no open orders with initial TP of 90 Pips... it only hit TP 5 times... all the rest was the ALR trades to try to get out at break even. broker used has leverage of 400:1 so after 15 Lets the margin used to open all trades was about $1800. I typically don't have much time to post or reply so it may take me a while to respond. btw in some other test i think it went up to 19 trades Ron |
|
| Author: | ronkeous [ Sat Dec 06, 2014 5:48 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
i figured it out |
|
| Author: | macman [ Sat Dec 06, 2014 7:20 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Thanks for the interesting posts. ALR is an interesting concept for sure BUT to be of any real use the code of any EA needs to be 100% bullet proof, or at least able to warn users it is no longer functioning correctly. My own earlier post details how an ALR EA got stuck in a loop. This opens up the can of worms that is the current state of Empty4/5 right now. My own programming skills are not good enough to attempt this, so for now ALR is still a proof of concept for me. Best regards, Macman |
|
| Author: | ronkeous [ Sat Dec 06, 2014 8:05 pm ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
i can see you getting issues if you lost the zone count and you need to start from the start again. Trt having a label to display the current zone count. i am not 100% sure but if you change timeframes your variable might reset... depends on your int OnInit() and OnDeinit() functions on your ea. try playing around with golbal variables so your count or varables remain the same. string MaxTradesAllowed = "MaxTradesAllowed"; // Global settings for all pairs GlobalVariableSet("MaxTradesAllowed",7); GlobalVariableGet(MaxTradesAllowed); Set("MaxTradesAllowed",7); say you need to reboot the computer or clost Empty4 then try external variables to re-initialize your Zone count or zone levels. so default would be 0 to let the program set it, but if not 0 then use the override settings. hope that helps your cause. Ron |
|
| Author: | Jack1 [ Sun Dec 07, 2014 3:00 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Empty4 close order function often fail, due to unknown reasons, may be brokers side servers. ALR big threat is a failure to open/close orders when market is volatile or price change fast, and your EA have to run 24/5 mode on a reliable cloud environment. Another issue is fixed target or recovery zone size. Dynamically size down (or scale down) recovery zone size to quickly bail out ALR processing may be needed for avoid of a stuck in the zone. see my attached xls |
|
| Author: | TambaTrader [ Sun Dec 07, 2014 8:04 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
I have been changing timeframes on the chart that is running the EA so if that can cause problems that may have happened on mine. I remember reading somewhere on this thread/forum about a version of ALR where you have stop losses so as to keep the lot size down. I am going to test that next I think. In my opinion the maths seems good for ALR but having so many trades open at such large lot sizes isn't good. In theory they are hedging and the net lot size isn't high. In reality something could go wrong. There is more than one benefit to closing each trade before starting a new one. 1. Can keep lot sizes smaller as discussed already 2. No risk of one side of trades closing leaving you exposed 3. Results of each trade are independent from each other so if market is ranging and not hitting your take profit you can wait a few days/ weeks and finish off the ALR later when it's trending again. Or you can move to a completely different currency pair if you want. Do you think point 3 is correct or is it just like a martingale then? Point 3 would mean you don't even need an EA you could just have your excel with the maths worked out and trade manually if you wanted. Shona |
|
| Author: | Radar [ Mon Dec 08, 2014 7:55 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Hey Shona Check out SpiderX's http://www.stevehopwoodforex.com/phpBB3 ... =81&t=3792 That system doesn't hedge, just closes out, and calculates the next lot-size, then enters in the opposite direction. A few months ago, I had written a basket trader that incorporated ALR, using GlobalVariables to store all info needed in case of a restart/reboot, but I didn't like the death-runs, (and they always come eventually), so I threw it away As for whether ALR is a martingale, well, yeah, it is... It's just that we're increasing our risk by much smaller increments than with the standard martingale. Have fun! Radar =8^) |
|
| Author: | ronkeous [ Thu Dec 11, 2014 4:06 am ] |
| Post subject: | Automatic Loss Recovery System (ALR) - read this first |
Here is an interesting stat that you might want to consider. Leverage 400:1 0.01 Lots = $0.10 or 10 cents per Pip 30 Pip Zone and 90 Pip Take Profit Total Margin and Drawdown @ 21 Zone Trades before it exit everything at Break Even is about $6600.00 Just something to consider when assessing potential risk. I know that most people will argue that their strategy will not encounter this (especially if they are playing breakouts) however I don’t have such a good strategy so I just need to be aware of that and ensure that I am well funded for the hard times. Happy Trading Ron |
|
| All times are UTC | Page 36 of 40 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|