Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Question about Tsi4JeffFromTMFT Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Question about Tsi4JeffFromTMFT Indicator

    Hello.

    I've added a DataSeries, OscDir[0] to the Tsi4JeffFromTMFT Indicator.

    {
    OscValue.Set(0, Osc[0]);
    if( OscValue[0] > OscValue[1] ) { OscDir.Set(0,"up"); }
    if( OscValue[0] < OscValue[1] ) { OscDir.Set(0,"down");
    }

    So far so good. My problem is when I try to access OscDir in another indicator.
    I've created another indicator where I want to reference the OscDir[0] value.

    I'm having trouble with handling all the parameters required in the Tsi4JeffFromTMFT indicator.

    I've got ..

    _rcsTMFT = Tsi4JeffFromTMFT(angle, barsBack, bgColorDown, ...)

    No problem with the "int", "bool", or "Color" variables, but not sure how to handle the following

    1. DMAType mA1Type
    2. DMAType mA2Type
    3. Type maType.

    Can you give me correct syntax to put in the new indicator to handle the above 3 data types in _rcsTMFT = Tsi4JeffFromTMFT(... ??? ..)

    Regards,
    R. C.

    #2
    Hello,

    Unfortunately I do not have access to this 3rd party indicator and would not be able to test the syntax.

    Hopefully another member with experience can shed some light, or I would suggest contacted the author of this indicator.
    MatthewNinjaTrader Product Management

    Comment


      #3
      hi Matthew,

      I'm the author of the new indicator.

      I'm trying to get the syntax correct so I can include the following statement in it.

      _rcsTMFT = Tsi4JeffFromTMFT(... ?? ..)

      I just want the correct syntax to complete the above statement. Having trouble with those 3 datatypes in Tsi4JeffFromTMFT

      1. DMAType mA1Type
      2. DMAType mA2Type
      3. Type maType.

      I hope I being clear.

      Putting the question another way. How you would create the code snippet to access Tsi4JeffFromTMFT() from a new indicator?

      Comment


        #4
        RC,

        I do not know what arguments this method would need for these data types. Can you give me an idea of what you would use from the indicator parameters or from the code of the indicator itself?

        Please also review our Reference sample on Ensuring indicator plots are valid before programmatically accessing them:

        MatthewNinjaTrader Product Management

        Comment


          #5
          hi again.

          I'm attaching two indicators.

          1. rcsTsi4JeffFromTMFT
          2. rcsBridge (my new indicator that attempts to access rcsTsi4JeffFromTMFT)
          Attached Files

          Comment


            #6
            Thank you. I will have a look at this when I have a moment. You should get an update this evening.
            MatthewNinjaTrader Product Management

            Comment


              #7
              RC,

              Sorry, the Tsi4JeffFromTMFT Indicator indicator has some references to another indicator that I do not have access too as well, so I was not able to compile and these scripts for you.

              Do you know how to contact the author of the Tsi4jeffFromTMFT indicator? They would probably know beter than anyone.

              However if I were to guess, I would think you would use DMAType.EMA or DMAType.WMA

              For the MA type, try something like JHL.Utility.MA.Type.HMA

              However since I am missing some portions of this system, I was not able to test for accuracy. Please let me know if that gets you in the right direction.
              MatthewNinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by kevinenergy, 02-17-2023, 12:42 PM
              118 responses
              2,778 views
              1 like
              Last Post kevinenergy  
              Started by briansaul, Today, 05:31 AM
              0 responses
              9 views
              0 likes
              Last Post briansaul  
              Started by traderqz, Yesterday, 12:06 AM
              11 responses
              28 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by PaulMohn, Today, 03:49 AM
              0 responses
              8 views
              0 likes
              Last Post PaulMohn  
              Started by inanazsocial, Today, 01:15 AM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_Jason  
              Working...
              X