Malang, East Java - Indonesia
Posts: 3 since Jul 2014
Thanks Given: 1
Thanks Received: 1
|
Hello,
Perhaps the title is not really correct, but here is the explanation with screenshot.
There are 3 lines in the chart (attached), upline, downline and midline.
The green block is after the midline crossdown the downline. Even after the midline cross up the downline again but not crossing up the upline, then it's still green.
The blue block is after the midline crossup the upline. Even after the midline cross down the upnline again but not crossing down the downline, then it's still blue.
The color is only change to blue if the midline cross up the upline and change to green if the midline cross down the downline. Cross down the upline and cross up the downline is not counted.
Lets say blue means trend=10, green means trend=20
So we have:
Upline
Midline
Downline
trend
All we need is to determine the latest trend.
I draw 2 color blocks just for the explanation purpose. Is there any way to code it on thinkscript?
We can also check the bar number of each crosses and compare them, the latest bar will determine the latest trend. But I also don't know how to code that.
I've try to do it for a week without result. It'll be appreciated if anyone can help.
Thank you
|