| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Holy Graily Candle Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5517 |
Page 4 of 5 |
| Author: | slipshod [ Tue Sep 11, 2018 12:21 am ] |
| Post subject: | Holy Graily Candle Bob |
Resistance may not be visible on the H1 timeframe, but here's what EURAUD looks like on the Daily chart... Thing is, this resistance could well prove strong enough to stop the current upsurge. Maybe not the red zone that it's almost worked through, but potentially the pink one above it. This is a bit of a problem if, on H1 timeframes, there either aren't enough candles to discover the older zones or the library isn't looking back far enough. In this instance it's incorrect to say "there's no resistance" when a glance at longer timeframe charts shows it quite clearly. Edit: Perhaps something like this could help. On line 262 I added:- Code: Select all Code: Select all I haven't tested this so I have no idea if it works, but in theory it might provide a solution ... ? |
|
| Author: | Ehrenmat [ Tue Sep 11, 2018 2:11 pm ] |
| Post subject: | Holy Graily Candle Bob |
Hey Steve, Hey Andrew That were exactly my thoughts, too. I just didn't have the time to write everything down before my holydays (next three weeks from now on). The jump on the next higher TF of the S/R indi was my solution, too. I simply didn't have the time. Before my departure, I implemented the following before leaving: It's called CloseOnHGIMixedSignal or sth like that and it was already included in my "draft" I've sent you, Steve. It closes trades if HGI goes from a full "Down" or "Up" to a "Mixed" signal. Maybe that's a second option for a falling rope if there is no support or resistance zone for TP or SL. In my modulation of the EA, this control point seems to work but I also don't get the full TP eventually since the robot checks the CloseOnHGIMixedSignal permanently and not only in the case of missing S/R zones. More to come in three weeks from my side... I have some ideas for an eventual entry "zone" Cheers Mat |
|
| Author: | slipshod [ Wed Sep 12, 2018 1:33 am ] |
| Post subject: | Holy Graily Candle Bob |
I've noticed the EA is repeatedly entering orders on the same pair, regardless of whether there's existing entries. Here are its AUDUSD trades yesterday:- All entered at a very similar price. I imagine if it keeps getting sell signals it'll just keep stacking up the entries, which is increasing the risk if the price decides it wants to reverse & start rising. I've also noticed that Empty4 is going beserk, using most of the CPU, to the point where it could barely manage a Remote Desktop connection... I eliminated all indicators from charts, so it was just the EA running, and it was still burning lots of cycles. I removed the EAs, and the CPU use dropped to 0-5%. Adding one instance of the EA bumped it back to 50%, so it's the EA responsible. Note that I'm running this on an Amazon EC2 T1.Micro machine, not very powerful, but capable of running EAs if they're nice & efficient. To get around this I've introduced a couple of changes in my local copy of the EA. Firstly I created a new user option:- Code: Select all Code: Select all These changes succeeded in dropping the CPU usage down to around 0-10% with spikes up to 60% every now & then, which is ok. |
|
| Author: | SteveHopwood [ Wed Sep 12, 2018 1:42 pm ] |
| Post subject: | Holy Graily Candle Bob |
V 1i is in post 1.
|
|
| Author: | slipshod [ Wed Sep 12, 2018 2:10 pm ] |
| Post subject: | Holy Graily Candle Bob |
Sorry Steve, I started this long post right before you added yours above but it took me a while to finish, hence I'm unfortunately saying all this right after you've created a new version. Nevermind, there's no point rushing this stuff... EDIT: Actually hold fire on making any of the following changes - the reason it's running fast for me now is that it's no longer finding _any_ zones. I'll need to look into this a bit deeper. Ok, so another thing that's very inefficient about the EA right now is its use of SSSR_UpdateZones(). On every occasion its called, the first parameter is "false", which means the library will recalculate all the S/R zones - a very expensive operation and a completely unnecessary one if it just did the same thing the previous tick. I'd suggest adding the following function:- Code: Select all Code: Select all There is one instance where you may want the EA to call it with a "false" parameter, forcing a zone recalc, and that's right before a new trade is to be sent. I suggest the following in the LookForTradingOpportunities function:- Code: Select all This will force the zones to be recalculated and double-checked before any trades are sent to market. Once I implemented the above in my version, Empty4's CPU usage has dropped to negligible levels except for when the candle changes on the hour, or on the odd occasion when the EA wants to place a trade. |
|
| Author: | SteveHopwood [ Wed Sep 12, 2018 2:54 pm ] |
| Post subject: | Holy Graily Candle Bob |
Thanks Andrew. My cpu usage dropped right down the moment I changed SSSR_UpdateZones(false, Symbol(), NewTf); to SSSR_UpdateZones(true, Symbol(), NewTf); About the rest of this. My code cycles through time frames to find zones if there is one missing on the chosen time frame. Does yours do this without being so long-winded? |
|
| Author: | slipshod [ Wed Sep 12, 2018 3:24 pm ] |
| Post subject: | Holy Graily Candle Bob |
Hi Steve, I haven't yet had a chance to look at the new version of the EA. As soon as I do I'll get back to you on the timezone cycling. My suggestion was to allow the user to choose a higher timeframe, so that's all the code checks - one extra call. Walking up through the all timeframes until a zone is found ... could be quite expensive. This discussion has however revealed a shortcoming in LibSSSR - it only caches the zones for the last symbol+period it was called to update, so if the EA wants to look for other timeframes it will force a recalc - not good. Hence this calls for a new version of the library, which I'll get onto asap, hopefully without breaking anything! |
|
| Author: | SteveHopwood [ Wed Sep 12, 2018 4:27 pm ] |
| Post subject: | Holy Graily Candle Bob |
V 1j is in post 1. The code to spot when the market is within a zone and so close the trades was in the wrong place, so it was only being checked at the open of a new TradingTimeFrame candle. DIYers, do a search for "//SR closure" and move the entire block to underneath the OldCcaReadTime block, like this: Code: Select all |
|
| Author: | SteveHopwood [ Wed Sep 12, 2018 4:29 pm ] |
| Post subject: | Holy Graily Candle Bob |
Thanks Andrew. ![]() |
|
| Author: | SteveHopwood [ Wed Sep 12, 2018 8:18 pm ] |
| Post subject: | Holy Graily Candle Bob |
I see the stop loss insertion error still exists. I will sort this out eventually. Not sure when. Or how. |
|
| All times are UTC | Page 4 of 5 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|