hi johan, i like this script. however, since i am not so clear as to why you chose the #s you did, could you please explain a little why did you choose these particular #s (4, 9, 13, 14, 15, 16)? what's your rationale?
Hi, iso. well it's TD tom demark's sequential code. And it's far from finished. Those 14,15,16 numbers don't have any big rationale at all,. but since pine script is sort of limited conditionality wise, i just chose some. Different currencies and indicies and stocks probably have different numbers as best matches, you can't run tests here, but i've done my fair share of work in R code.
But the basic # 9 and and price flip (# 4), are just straight from Tom Demark.
read more if you're interested on DeMark: http://en.wikipedia.org/wiki/Thomas_DeMark
And a pretty good explanation: http://tradetrekker.wordpress.com/tdsequential/