TRIX signal line screener – please test

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27276 quote
    Dimi.ADimi.A
    Participant
    Average

    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.

    Trix-Signal-Line-Cross.itf
    #27279 quote
    Dimi.ADimi.A
    Participant
    Average

    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")
    #27567 quote
    NicolasNicolas
    Keymaster
    Legend

    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 ..

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

TRIX signal line screener – please test


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Dimi.A @dimi-a Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by NicolasNicolas
9 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/06/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...