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 algospoke, Yesterday, 06:40 PM
            2 responses
            19 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            45 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            20 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            181 views
            0 likes
            Last Post jeronymite  
            Working...
            X