| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| MA of Hurst Target https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4014 |
Page 1 of 1 |
| Author: | Radar [ Fri Dec 26, 2014 9:13 am ] |
| Post subject: | MA of Hurst Target |
Hey Gang, I'm pretty crap at setting TP targets, so I am very happy that Pips400 shared his Hurst Target indi I'd like to get a moving average of its output, so that I have an idea of whether I can scale-in on a move, how many times, and at what distance apart. I'm not after code, just the steps 1. On init... a. Look back through the history, and count the cross-overs until I reach MA_Period + 1. b. Walk forward from there, storing the pip value of each target into an array. c. Run iMAOnArray on that array. 2. On each new cross-over... a. ArraySetAsSeries = false b. Replace the last element with the current target. c. ArraySetAsSeries = true. d. Run iMAOnArray on the array. e. Goto 2a. Have I missed anything, (or added something that's not needed)? Have fun! Radar =8^) edit... If you haven't looked at Hurst Target, what is does (for a cross Up) is... 1. Finds the lowest Low between the current cross up and the previous cross down. 2. Subtracts the price of the LL from the price of the cross up. 3. Adds a percentage (user configurable) of the result of step 2 to the price of the cross up, thereby giving you a potential TP point. |
|
| Author: | Radar [ Sun Jan 04, 2015 6:17 am ] |
| Post subject: | MA of Hurst Target |
Done, but not quite the way set out above... I have 2 functions called "void tma_centred_value". One takes a look-back parameter, and is called during init, the other doesn't/isn't. Here's the code to find the crossovers (slightly modified from Pips400's original code (so all errors are mine, I tell you! All mine! Ahahahahahaaaa!))... Code: Select all Code: Select all I hope the code's right, and can be of some use to us all. Have fun! Radar =8^) |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|