| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| HGI custom Call https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4901 |
Page 1 of 2 |
| Author: | traderduke [ Fri Sep 16, 2016 4:39 pm ] |
| Post subject: | HGI custom Call |
Coders I appear to be missing several signals on HGI, Trend being the worst. I see changes to HGI_16.09 and I was wondering if there was any change to the icustom code for calling the HGI? I've added the redundant code, " HGI_Trend_UpArrow == true || HGI_TrendUp > 0 ||", but that didn't seem to help, The latest I have was by Tommaso in March, 2015. See Code: Code: Select all Ray |
|
| Author: | milanese [ Fri Sep 16, 2016 4:55 pm ] |
| Post subject: | HGI custom Call |
they are no changes in the way you have to use iCustom calls between 16.04 and 16.09, the only thingy was that 16.09 not worked correct with latest 1010 builds together, when you not had enough bars that is now fixed and you should consider to test again the latest 16.09 version, attached to the first post of the HGI thread.. Cheers Tommaso |
|
| Author: | traderduke [ Fri Sep 16, 2016 5:55 pm ] |
| Post subject: | HGI custom Call |
Tommaso Thanks or the quick response and information. I am using 1010, will try the latest 16.09. Ray |
|
| Author: | BobbyT [ Mon Sep 19, 2016 9:41 pm ] |
| Post subject: | HGI custom Call |
Ray, Depending on what your lookback period for trading signals is going to be you may want to have a look at using the HGI library. I found that when using iCustom the signals can degerate a certain distance into the past. I think this occurs as an iCustom call will store a snapshot of HGI in cache which is then not updated at a specific bar unless that shift is called again. If you are interested in using the library, take a gander at the wrappedHGI indi I posted in NBs forum a while back or Renes library version of his HGI matrix (which I heavily pilfered from to create wrappedHGI). Of course if you are only looking at bar0 and bar1 then all this is of little consequence to you. Cheers, BobbyT |
|
| Author: | renexxxx [ Mon Sep 19, 2016 9:55 pm ] |
| Post subject: | HGI custom Call |
Even so, it is much preferable from a technical point to use the HGI Library. As a rule, I would encourage everyone to avoid using iCustom()-calls. There are situations where it is impractical to rewrite the underlying indicator (eg. if the time series definition is recursive and would need a long lead-up to converge to a value). However, in most cases you can convert the indicator to a function and your code will run much cleaner and leaner. |
|
| Author: | BobbyT [ Mon Sep 19, 2016 11:56 pm ] |
| Post subject: | HGI custom Call |
Rene, I can only agree with you there. I initially wrote wrappedHGI using iCustom calls and it was brutal. A single chart with minimal signals/tf enabled resulted in my 6700k locking up. Although it was odd because neither the CPU nor the 16gb of ram appeared to be terribly loaded. I rewrote it with the library and there performance was infinitely better. To the point that the indi can paint trend arrows and wavies on 3 timeframes on 28 charts and only has a 1 second delay when switching between charts or timeframes. *Proud* I wonder, does Empty4 have a stupidly small cap on the amount of resources it can draw. If so is there anyway to increase system allocation to the program (similar to what is doable in R/Rstudio) Cheers, BobbyT |
|
| Author: | traderduke [ Wed Sep 21, 2016 3:03 pm ] |
| Post subject: | HGI custom Call |
Tommaso, Rene & BobbyT, Thank you for your help, I believe the newer version of 16.09 has help a lot but as you can see it’s still missing some signals even at shift = 1. I looked at BobbyT’s wrapped and compared it to 16.09, It looks pretty much the same and I don’t see any data to read in the Data Window only myHGI shows. see attached Chart: Here are the results SO far. I started at 0700 EDT, which is GMT-4. My broker FXChoice is at GMT +3. The custom call & trade code is attached as is the charts to show the good & the bad; I use 12 pr, all have Shift = 1. I’ve had 9 pairs trading. EU & UJ traded correctly GU & UCad missed their exit NU & GCad are awaiting their exit in this 4hr segment AU & UChf are working good EURJPY missed its short entry GN, GA & GJ are correctly waiting for an entry, WHAT A set of winners I missed Rene, “it is much preferable from a technical point to use the HGI Library”, what does using the HGI library call for I’m not sure if skilled enough to code it. I’ll check your matrix for some hints but any help would be appreciated. Here is my Full trade code: Code: Select all Ray |
|
| Author: | renexxxx [ Wed Sep 21, 2016 10:56 pm ] |
| Post subject: | HGI custom Call |
It is --in my opinion- much easier to get the signals from the HGI Library, than it is to fish them out of the buffers of the HGI indicator via the iCustom-call. A comparison: HGI-library; Code: Select all Code: Select all Compare the same with the iCustom-calls: To get the signal for the current symbol and period and a given shift Code: Select all As for the waveys, using the iCustom-call, it gets even longer. The waveys are hiding in buffer 6 and 7, but to find out if it is a HIGH or a LOW wavey, we must compare the indiValue with the HIGH of the candle, like so: Code: Select all To summarize the differences:
|
|
| Author: | tomele [ Fri Sep 23, 2016 12:24 am ] |
| Post subject: | HGI custom Call |
Rene, a very good explanation. Even I understand it. |
|
| Author: | dap711 [ Sat Oct 15, 2016 5:32 am ] |
| Post subject: | HGI custom Call |
Thank you so much for the explanation Rene. I too have been battling missing signals from the iCustom call and will now rewrite my code to use the library. I would also like to contribute the idea of iterating the "for" statement in a descending direction instead of ascending. The benefit of doing so is the last call to iCustom is the most current candle. Here is what I have been using .. borrowed most of it from Steve's code in HGB'nD'nSS .. Code: Select all |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|