Hi,
I want a code that screens for the price closing above the Ichimoku Tenkansen for a number of periods
For example: Lets say price closing above Tenkansen for last 10 periods
Tenkansen = (highest[9]+lowest[9])/2
close > Tenkansen for the last 10 periods
How would I write this?
Thanks
You can use a summation of the last 10 periods tested condition:
Tenkansen = (highest[9]+lowest[9])/2
test = summation[10](close>tenkansen)=10
screener[test]
If the sum of the true conditions is 10, then the ‘test’ variable is also true.
That’s perfect thank you Nicolas