| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Holy Graily Bob 'n Dotty https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4892 |
Page 20 of 26 |
| Author: | Wavegarrick [ Thu Feb 16, 2017 4:03 pm ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Hi Guys. Early days and thanks Steve for this. I have started tests today, the concept is great Cheers Leon |
|
| Author: | kennychua [ Fri Feb 17, 2017 3:03 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Hi Steve I believe the following code in LookForTradeClosure function from line 3586 to 3591 is not necessary Code: Select all Anyway, it doesn't affect the logic of the program as the LookForTradeClosure function doesn't trigger if position is hedged. |
|
| Author: | SteveHopwood [ Fri Feb 17, 2017 9:24 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Brilliant Leon. There is a lot more coming over the next week or so. |
|
| Author: | SteveHopwood [ Fri Feb 17, 2017 9:27 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Dead right on both counts. It is one of the thingies I noticed when recoding HGBnDnSS and I removed the snippet from the shell. That this snippet only appeared in one of the conditionals suggests that I intended removing it a long time ago and only remembered to remove one of them. I have not bothered updating V1 here because it makes no difference. |
|
| Author: | Wavegarrick [ Fri Feb 17, 2017 6:22 pm ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Please do take your time Steve. I believe we are heading in the right direction. Looking forward to the upcoming additions Cheers Leon |
|
| Author: | SteveHopwood [ Sat Feb 18, 2017 10:06 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
A member posted this in the Basics thread: I think this is worth discussing here. The markets do not spend a lot of time in the top and bottom sixths. Using the sixths filter will cut trading no close to zero. Should be damn good ones when they do happen. I had some nice CADJPY sells on Friday on a demo with sixths disabled and using buy low sell high instead of sixths. Four pendings filled and the position closed at +40 - not sure why but that is another matter. These trades were nicely in the top half of the chart and I am speculating that having both the latest filters enabled but with ChartDivisor set to 2 so we only sell in the top half of the chart and buy in the bottom. We shall see. |
|
| Author: | pakeha [ Sat Feb 18, 2017 7:40 pm ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Steve I have been finding the same thing, using sixths, quarters and halves in price moves that should have triggered a trade (I had the trend and trading timeframes set up on different charts with the same broker) on the Empty4 strategy tester (note: I wasn't trying to do a "backtest" but rather just monitor the dynamic of the trade). I have used quarters (quartiles) in my trading in the past so am quite familiar with the technique. It could be the strategy tester, or it could be the code - not sure. Others may have been more successful. |
|
| Author: | kennychua [ Sun Feb 19, 2017 12:18 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
I have HGBnDB with the Sixth function on real since it was released. I have made modifications to my code to remove the use of HGI. There is nothing wrong with HGI, it is just personally I do not run an EA with codes I cannot read (source code). I also added my own code for debugging the EA. In very unique circumstances, the Sixth function does not work correctly. Also it definitely doesn't work in the tester. Not using Sixth or the BuyLowSellHigh solve the problem. But for me, without the HGI indicator, my EA is prone to make a lot of trade, and therefore the Sixth functionality is very helpful. I have been trying the whole night to pinpoint the cause and how to remedy it and after I slept on it I had some idea on possible solutions. I just need to test it properly first and that take some times now that the market is closed. |
|
| Author: | kennychua [ Sun Feb 19, 2017 10:38 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
Hi Steve I have done some debugging and I am quite confident that the following line of code inside GetSixth doesn't work as expected. The first one: Code: Select all If we wish to save the current chart period, the code should be. Code: Select all The second one: Code: Select all Although this is similar to how one may manually change to a different timeframe by clicking on it with the mouse, and then changing back to our original timeframe, as a way of reloading the chart, it doesn't really work that way when used for coding because of one big difference: Changing the chart by code - Doesn't actually change it, because the next line of code continue to execute without waiting for the "lag or delay in changing the chart period". Changing it manually - Does actually change it, as the chart will lag, and we will wait before doing anything. The ChartSetSymbolPeriod only place a queue in the chart event for the chart symbol and period to be changed. It doesn't actually force or make sure the chart is change, before executing the next line of code. The queue may be slow or fast to execute depending on many factors out of our control, including the number of chart the user is running Dottybot on and the number of indicator on the chart. Therefore, the next line of code, may execute before the chart is changed or may execute after the chart is change. There is really no way to tell. Furthermore when the chart is changed, the EA would run OnDeinit and OnInit again and also reload any other indicator used by the EA or loaded on the chart. I believe this is also the cause for the Sixth line not showing properly and requiring a recompilation of the code to force a reload. I have coded a workaround that doesn't require ChartSetSymbolPeriod. I compare the value of the trading timeframe peak and higher timeframe peak from the workaround with the existing "version 1" loaded in another terminal and it have exactly the same value, except some. Some of the chart have different current peak high or current peak low (either one of them) with the workaround. I believe the discrepancy is that the existing one doesn't calculate the Sixth value correctly sometime when ChartSetSymbolPeriod didn't change the chart fast enough before the next line of code in the EA start executing. This is because the existing version 1 is showing the current peak high or low in the middle of the chart, while the workaround is showing it at top and bottom of the chart. I will be waiting for the market open to test the workaround and see how reliable it is. |
|
| Author: | SteveHopwood [ Sun Feb 19, 2017 11:27 am ] |
| Post subject: | Holy Graily Bob 'n Dotty |
I am completely rewriting the code, which does not work as I hoped and is not necessary. |
|
| All times are UTC | Page 20 of 26 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|