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

Uptick Downtick for NT7

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

    Uptick Downtick for NT7

    I created an indicator to allows me to access Uptick & downtick on a historical basis.
    I don't understand why this is not a standard feature on NT even though this has been available on Tradestation or Multichart etc...for a long time.

    Seems to work fine though I am not 100% sure about the result (see the picture).

    But when I try to use it in another indicator it won't work. For example, this snippet :

    Down += Downtick[10];

    I get the CS0021 error type so basically I cannot re-use it in another code. How can I make it work like Close,High,Low ?
    Attached Files
    Last edited by baba123; 10-23-2011, 03:51 AM.

    #2
    baba123, I didn't see Down or Downtick anywhere in your code. How are you trying to implement this downtick indicator in other indicators? The CS0021 error means a variable is trying to be accessed like an array or a dataseries.
    AustinNinjaTrader Customer Service

    Comment


      #3
      because this is in ANOTHER script. Try to put this snippet in a script and you will understand the issue I am running threw....

      Maybe I should write Downtick()[x] when using it in another code ?
      I also have a problem with Downtick as an indicator because NT will see it as a DataSeries (like any indicator) and I want it to be an IntSeries. This way I don't have to convert it each time I call it. Is it possible ?

      Comment


        #4
        Nevermind, I finally get it to work :-)

        You can close this thread.

        Comment


          #5
          baba123, glad to hear you got it figured out.
          AustinNinjaTrader Customer Service

          Comment


            #6
            I would love to have uptick downtick. Is it something you wouldnt mind passing on?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Brevo, Today, 01:45 AM
            0 responses
            2 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            3 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            238 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            384 views
            1 like
            Last Post Gavini
            by Gavini
             
            Started by oviejo, Today, 12:28 AM
            0 responses
            4 views
            0 likes
            Last Post oviejo
            by oviejo
             
            Working...
            X