Okay so everybody properly tried to lay in bed at night- awake- thinking about that holy grail you just are about to discover- tossing and turning- gold-struck! well that was me this night. So went up and started working on this code again, that I’m been working on since last week and the whole sunday, and it all came down to these two lines, that didn’t quite make it. well sometimes you just stare, and can’t see the forest because of the trees. Anyway I got it.
var1= (highest[9](close)+lowest[9](close))/2
var1 = (highest[26](close)+lowest[26](close))/2
so before you get a good laugh, please remember that I started trading 5 weeks ago- unsuccessfully of cause, and 2 weeks since I started coding… 😀
\elsborgtrading