Custom TRIX indicator

Forums ProRealTime English forum ProBuilder support Custom TRIX indicator

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • #174885

    I have found that TRIX indicator gives interesting results for entry positions, possible turning points in the market.

    I searched the forums but couldn’t find the code for TRIX so I coded it.

    The results seems identical to the built in TRIX indicator, however it gives you the option to use different types of Moving Averages. I have found that Time Series gives interesting results with either Zero Line Crossing (how the indicator is intended to be used, I believe) or when the direction of the indicator changes:

    //Bull

    c1 = cTRIX[1] < cTRIX[2] and cTRIX > cTRIX[1]

    //Bear

    c2 =cTRIX[1] > cTRIX[2] and cTRIX < cTRIX[1]

    If you end up using (or already using?) this indicator in your strategies it would be great if you like to share how.

    Reference for PRT Moving Averages (‘Type’ variable in the cTRIX indicator)

    0 = SMA

    1 = EMA

    2 = WMA

    3 = Wilder

    4 = Triangular

    5 = End point

    6 = Time series

    7 = Hull (PRT v11 only)

    8 = ZeroLag  (PRT v11 only)

    1 user thanked author for this post.
    #174889

    Ah… sorry moderators of PRC, this should have been posted in ProBuilder. It’s my first attempt to make an indicator and the fact that I spend most of my time in the ProOrder section of this forum, I totally forgot that it should have been posted in a different section. I can’t see how I can move it over so would appreciate if you can do so, if necessary.

    #174895

    No problem I’ll move it

    #175464

    Trix indicator is also an available instruction of the ProBuilder Language: TRIX

    #175491

    Hi Nicolas,

    Yes, I noticed that too but I wanted to add the ability to change type of MA. There is no way to do this with the built in TRIX indicator, is there? Perhaps it’s not longer a TRIX once MA is changed but I’m getting interresting results with Times Series Average applied to this instead of EMA.

    #175501

    There you go:

     

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login