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

useing a Custom Indicator

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

    useing a Custom Indicator

    I have written a custom indicator called EAVE

    Can I use that indicator in a Ninja Strategy ie:-

    if (GetCurrentAsk() > EAVE[0])

    Does this work or can it be made to work i.e can I reference a custom indicator from a strategy??

    #2
    Hi nigeleyre, yes you can reference your custom indicator from a NinjaScript strategy - if you want this also plotted visually this tip is helpful - http://www.ninjatrader-support2.com/...ead.php?t=3228
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand and for the code samples, so do I use the following code in the Intitialise section :-

      Add(eave());

      Please confirm thanks

      Nigel.

      Comment


        #4
        Yes, but remember NinjaScript as C# is case sensitive, so if you called EAVE, then also reflect this in your call, Add(EAVE());
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Yes good point many thanks fr the help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tin34, Today, 03:30 AM
          2 responses
          16 views
          0 likes
          Last Post Tin34
          by Tin34
           
          Started by sastrades, Yesterday, 09:59 AM
          2 responses
          30 views
          0 likes
          Last Post brucerobinson  
          Started by ETFVoyageur, Today, 12:52 AM
          1 response
          15 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by lollers, Today, 03:26 AM
          0 responses
          10 views
          0 likes
          Last Post lollers
          by lollers
           
          Started by aliyahany, Today, 03:16 AM
          0 responses
          4 views
          0 likes
          Last Post aliyahany  
          Working...
          X