| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Peaky on Steroids https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5204 |
Page 7 of 97 |
| Author: | tomele [ Tue Jun 27, 2017 2:35 pm ] |
| Post subject: | Peaky on Steroids |
As a wise man once said: "Not even the merest beginnings of the slightest hint of the opening gambit of a clue". OrderType(), OrderTakeProfit() and OrderOpenPrice() seem to be ok. |
|
| Author: | tomele [ Tue Jun 27, 2017 2:38 pm ] |
| Post subject: | Peaky on Steroids |
In line 2312, change the call (add symbol) Around line 1884, overwrite the function with my version. |
|
| Author: | SteveHopwood [ Tue Jun 27, 2017 5:32 pm ] |
| Post subject: | Peaky on Steroids |
V 1d is in post 1 with Thomas' fix for the codaphobes here. It is a curious problem that cropped up. Here is what I am surmising. We type the code in a 'high level' language that is 'compiled' into machine code that the computer can 'read'. I did a BBC Assembler course about 1,000 years ago. As I recall, it is all about accessing, manipulating and signposting memory locations - you can think of computer memory as being lots and lots of storage boxes that contain information. Somehow, the location that is holding the OrderSymbol() is being overwriten, or maybe the signpost that should be pointing to a particular memory location has been turned around by that jealous Dotty someone mentioned earlier. It is a wonder that stuff like this does not happen more often. We are torturing crapql4 with stuff it was never intended to cope with. |
|
| Author: | tomele [ Tue Jun 27, 2017 5:46 pm ] |
| Post subject: | Peaky on Steroids |
Thats exactly what I think. The copy process from the server to the local buffer might also got corrupted in the latest version. It used to work before. What do we do with the other instances of OrderSymbol() in the code? |
|
| Author: | SteveHopwood [ Tue Jun 27, 2017 6:23 pm ] |
| Post subject: | Peaky on Steroids |
Nothing. It turns out I had made a schoolboy error that leaped off the page as soon as I looked. Look at line 1903: if (!DoesStopOrderExist(symbol, OP_SELLSTOP, price, dd)) DoesStopOrderExist(.........) cycles through the orders list and so the wrong OrderSymbol() is selected. The original code would have been fine if I had reselected LatestTradeTicketNo. The Take Profit is correct because I set it before calling DoesStopOrderExist(.........). |
|
| Author: | Zool [ Tue Jun 27, 2017 6:26 pm ] |
| Post subject: | Peaky on Steroids |
Here is my other observation about the "FollowAdverseMarketWithStopOrders" function: I'm running Peaky on H1 on a demo account, and it took almost the same sell on EURJPY that PoS took on an other account. The EURJPY decided to go against the sell order. Peaky started to place stop orders behind the price building a grid of sell stops, and there is the basket TP on those sells, so when a retracement comes, it doesn't need to make that big movement down to reach the basket TP because of the grid. PoS had some problems with the add-on orders, but after tomele found the solution it placed a sell stop at the correct place at time (MarketDistancePips/2). Now here comes the weird thing: PoS moved this stop order up just below the trading zone (bufferpips amount below the sixth) it was the 1st order. It keeps moving up the stop order since then, as EURJPY making new peaks instead of building up a grid of sell stops. With this kind of behaviour PoS will need a much bigger retracement to exit this trade since there will be no grid. Attached a picture about Peaky and PoS for comparsion. The PoS a bit messy because it has 4 timeframe's trades on it, the yellow line where was the add-on trade opened, and now you can see that stop order moved to the top of chart (the sell stop sitting at the highest). |
|
| Author: | tomele [ Tue Jun 27, 2017 6:55 pm ] |
| Post subject: | Peaky on Steroids |
Gosh.. Right.. |
|
| Author: | SteveHopwood [ Tue Jun 27, 2017 7:51 pm ] |
| Post subject: | Peaky on Steroids |
V 1e is in post 1, with the positive swap trades only filter. From the updated user guide:
|
|
| Author: | John [ Tue Jun 27, 2017 9:08 pm ] |
| Post subject: | Peaky on Steroids |
Phenomenal work, Steve et al... Really impressed which, having been around these parts for quite some time, can't be understated! Hey ho... John |
|
| Author: | SteveHopwood [ Wed Jun 28, 2017 3:46 pm ] |
| Post subject: | Peaky on Steroids |
V 1f is in post 1, with another anti-overtrading filter. From the update user guide:
|
|
| All times are UTC | Page 7 of 97 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|