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

Reference a different indicator

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

    Reference a different indicator

    Hello

    I have a custom Ichimoku indicator that was imported into NT7.

    I am trying to reference it in another indicator but I keep getting a message saying that it does not exist.

    The name of the indicator is "Ichimoku"

    I only care about the KijunSen line within the indicator which, according to the indicator settings, is called "KijunSen"

    There does not appear to be any issues with the Ichimoku indicator as it plots on my chart properly.

    Here is the code that I am using to reference it:

    Code:
    If (Close[0] > SMA(20)[0]
    && Close[0] > Open [0]
    && Close[0] > Ichimoku(9,26,52).KijunSen[0])
    
    {
    BarColorSeries[0] = Color.Blue;
    }
    Is there something that I should be doing differently to reference a custom indicator? It has no problem referencing the SMA - but that is not custom.

    #2
    Hello jg123,

    Thank you for your post.

    So I may test the syntax needed for the indicator can you provide the link to where you downloaded the indicator or possibly add the .cs as an attachment to your response? You will find the .cs file in the following directory on your PC: (My) Documents\NinjaTrader 7\bin\Custom\Indicator

    Comment


      #3
      Just to make sure that everything was okay, I just downloaded another ichimoku indicator from here on the forums and now everything is working properly. So maybe it was just an incorrect indicator.

      Thank you for your help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by giulyko00, Yesterday, 12:03 PM
      2 responses
      10 views
      0 likes
      Last Post giulyko00  
      Started by r68cervera, Today, 05:29 AM
      0 responses
      3 views
      0 likes
      Last Post r68cervera  
      Started by geddyisodin, Today, 05:20 AM
      0 responses
      6 views
      0 likes
      Last Post geddyisodin  
      Started by JonesJoker, 04-22-2024, 12:23 PM
      6 responses
      36 views
      0 likes
      Last Post JonesJoker  
      Started by GussJ, 03-04-2020, 03:11 PM
      12 responses
      3,241 views
      0 likes
      Last Post Leafcutter  
      Working...
      X