Conversion of TAC-DMI from TradeStation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #85188 quote
    FriendFriend
    Participant
    Average

    Hi, the text in the first attachement tells the working of this indicator.
    The code of TradeStation is here below. This is from http://traders.com/Documentation/FEEDbk_Docs/2012/11/TradersTips.html
    This page shows more TAC-DMI codes from trading software programs.

    The EasyLanguage code is:

    _TAC_3x_ADX ( Indicator )

    { Identify the Start of a Trend With DMI }
    { Technical Analysis of Stocks and Commodities,
    November 2012 }
    { BC Low, CMT }

    inputs:
    ADXLength1( 3 ),
    ADXLength2( 4 ),
    ADXLength3( 5 ),
    HiRefLevel( 70 ), { high reference level }
    LoRefLevel( 30 ) ; { low reference level }

    variables:
    ADX1( 0 ),
    ADX2( 0 ),
    ADX3( 0 ) ;

    { calculate the 3 ADX values }
    ADX1 = ADX( ADXLength1 ) ;
    ADX2 = ADX( ADXLength2 ) ;
    ADX3 = ADX( ADXLength3 ) ;

    { plot the ADX values and reference levels }
    Plot1( ADX1, “ADX1” ) ;
    Plot2( ADX2, “ADX2” ) ;
    Plot3( ADX3, “ADX3” ) ;
    Plot4( HiRefLevel, “Hi Ref” ) ;
    Plot5( LoRefLevel, “Lo Ref” ) ;

    _TAC_3x_+DI ( Indicator )

    { Identify the Start of a Trend With DMI }
    { Technical Analysis of Stocks and Commodities,
    November 2012 }
    { BC Low, CMT }

    inputs:
    DMIPlusLength1( 5 ),
    DMIPlusLength2( 8 ),
    DMIPlusLength3( 14 ),
    HiRefLevel( 50 ), { high reference level }
    LoRefLevel( 10 ) ; { low reference level }

    variables:
    DMIPlus1( 0 ),
    DMIPlus2( 0 ),
    DMIPlus3( 0 ) ;

    { calculate the 3 +DMI values }
    DMIPlus1 = DMIPlus( DMIPlusLength1 ) ;
    DMIPlus2 = DMIPlus( DMIPlusLength2 ) ;
    DMIPlus3 = DMIPlus( DMIPlusLength3 ) ;

    { plot the +DMI values and reference levels }
    Plot1( DMIPlus1, “+DMI 1” ) ;
    Plot2( DMIPlus2, “+DMI 2” ) ;
    Plot3( DMIPlus3, “+DMI 3” ) ;
    Plot4( HiRefLevel, “Hi Ref” ) ;
    Plot5( LoRefLevel, “Lo Ref” ) ;

    _TAC_3x_-DI ( Indicator )

    { Identify the Start of a Trend With DMI }
    { Technical Analysis of Stocks and Commodities,
    November 2012 }
    { BC Low, CMT }

    inputs:
    DMIMinusLength1( 5 ),
    DMIMinusLength2( 8 ),
    DMIMinusLength3( 14 ),
    HiRefLevel( 50 ), { high reference level }
    LoRefLevel( 10 ) ; { low reference level }

    variables:
    DMIMinus1( 0 ),
    DMIMinus2( 0 ),
    DMIMinus3( 0 ) ;

    { calculate the 3 -DMI values}
    DMIMinus1 = DMIMinus( DMIMinusLength1 ) ;
    DMIMinus2 = DMIMinus( DMIMinusLength2 ) ;
    DMIMinus3 = DMIMinus( DMIMinusLength3 ) ;

    { plot the -DMI values and reference levels }
    Plot1( DMIMinus1, “-DMI 1” ) ;
    Plot2( DMIMinus2, “-DMI 2” ) ;
    Plot3( DMIMinus3, “-DMI 3” ) ;
    Plot4( HiRefLevel, “Hi Ref” ) ;
    Plot5( LoRefLevel, “Lo Ref” ) ;

    #85275 quote
    NicolasNicolas
    Keymaster
    Legend

    There are no attachments to your post?

    Anyway, these indicators are “clusters” of ADX and DMI. They just plot 3 different periods of the ADX (3, 4 and 5 periods) and DMI (5, 8 and 14 periods) on the same indicator’s window.

    #85277 quote
    FriendFriend
    Participant
    Average
    #85291 quote
    NicolasNicolas
    Keymaster
    Legend

    ADX:

    i1 = adx[3]
    i2 = adx[4]
    i3 = adx[5]
    hi=70
    lo=30
    
    return i1,i2,i3,hi,lo

    DMIplus:

    i1 = diplus[5]
    i2 = diplus[8]
    i3 = diplus[14]
    hi=50
    lo=10
    
    return i1,i2,i3,hi,lo

    DMIminus:

    i1 = diminus[5]
    i2 = diminus[8]
    i3 = diminus[14]
    hi=50
    lo=10
    
    return i1,i2,i3,hi,lo
Viewing 4 posts - 1 through 4 (of 4 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

Conversion of TAC-DMI from TradeStation


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Friend @friend Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
7 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/19/2018
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...