| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Array out of Range Divergence Indicator https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5625 |
Page 1 of 1 |
| Author: | BobbyT [ Sun Feb 24, 2019 11:14 pm ] |
| Post subject: | Array out of Range Divergence Indicator |
Hi Y'all I'm trying to modify the 9ofX indi from dwain to show divergences. I've been using a CCI divergence indicator as a template. I've included it for clarity I keep getting array out of range during the divergence routine but for the life of me I cant work out what the hell is going on. Printing the indexes to the terminal shows that there are enough data points in the array. The 9ofX indi used was v2. Cheers |
|
| Author: | SteveHopwood [ Mon Feb 25, 2019 1:09 am ] |
| Post subject: | Array out of Range Divergence Indicator |
Just so you know, I have read your post several times and still have no idea what you are talking about. I am a bit on the thick side of thingies. Even so, those on the brighter side of thingies might need you to be a tad on the clearer side of thingies if they are going to be able to help. |
|
| Author: | BobbyT [ Mon Feb 25, 2019 6:37 am ] |
| Post subject: | Array out of Range Divergence Indicator |
Fair point Steve. I'll see if I can't make this a bit easier for everyone. I'm trying to combine the attached cci indicator with the attached 9ofX indicator. This is the result of some toying I have done with 9ofX/price divergence and scalping on the short time frames. I thought it would be as easy as just swapping out the calls to CCI in the divergence indicator but as I'm sure you can appreciate, indis be a strange beast wto tame. If this still doesn't make sense then I can always try again haha Cheers Edit: the array out of range error appears linked to Strengthbuffer being accessed when trying to find the most recent trough.....am I helping.....probably not..... |
|
| Author: | renexxxx [ Mon Feb 25, 2019 8:58 am ] |
| Post subject: | Array out of Range Divergence Indicator |
Hi BobbyT, You might want to have a look at this loop: Code: Select all Hope this helps. Rene. |
|
| Author: | BobbyT [ Mon Feb 25, 2019 2:44 pm ] |
| Post subject: | Array out of Range Divergence Indicator |
Thanks for dropping in Rene. So changing Code: Select all Changing Code: Select all Code: Select all So the question now becomes....what on earth is wrong with this indi? The original CCI divergence indicator that I have been using finds divergences just fine. Why on earth the peak/trough logic no longer works with a different line has me beat :/ |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|