Coders,
Just trying to confirm I’ve set up this TRIX signal line screener correctly.
Trying to create a screener which identifies when TRIX crosses the signal line (not the zero line).
I’ve tested it on all 47 majors spot fx on 1m TF but no luck so far.
Cheers.
Here is the code so far:
indicator1 = TRIX[9](typicalPrice)
indicator2 = ExponentialAverage[9](indicator1)
c1 = (indicator1 >= indicator2)
indicator3 = TRIX[9](typicalPrice)
indicator4 = ExponentialAverage[9](indicator3)
c2 = (indicator3 CROSSES UNDER indicator4)
indicator5 = TRIX[9](typicalPrice)
indicator6 = ExponentialAverage[9](indicator5)
c3 = (indicator5 <= indicator6)
indicator7 = TRIX[9](typicalPrice)
indicator8 = ExponentialAverage[9](indicator7)
c4 = (indicator7 CROSSES OVER indicator8)
criteria = TRIX[9](typicalPrice)
SCREENER[c1 AND c2 AND c3 AND c4] (criteria AS "TRIX")
This code should be better:
indicator1 = TRIX[9](typicalPrice)
indicator2 = ExponentialAverage[9](indicator1)
c1 = (indicator1 CROSSES UNDER indicator2)
c2 = (indicator1 CROSSES OVER indicator2)
criteria = TRIX[9](typicalPrice)
SCREENER[c1 or c2] (criteria AS "TRIX")
You were trying to catch at the same time a bullish AND a bearish crossover, and it’s of course impossible ..