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

Referencing position profit or loss within an indicator

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

    #16
    I tried adding the code to a generic indicator I use for testing but have a compile error. It questions whether I need an assembly or missing a directive.

    Any ideas?


    thanks and regards,
    taddypole...
    Attached Files

    Comment


      #17
      Hello Taddypole,

      Thank you for your post.

      This is intended for use in a strategy.

      Comment


        #18
        Thank you Patrick but the topic of this thread was "Referencing position profit or loss within an indicator". That is exactly what I'm trying to do. So I thought maybe I could get some help getting position updates within my indicator.

        Still would like to do that...
        regards,
        taddypole...

        Comment


          #19
          My indicator uses following:

          #region Using declarations
          using System;
          using System.ComponentModel;
          using System.Diagnostics;
          using System.Drawing;
          using System.Drawing.Drawing2D;
          using System.Xml.Serialization;
          using System.Collections.Generic;
          using NinjaTrader.Cbi;
          using NinjaTrader.Data;
          using NinjaTrader.Gui.Chart;
          #endregion

          Cheers,
          Martin

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Rogers101, 05-05-2024, 11:30 AM
          15 responses
          45 views
          0 likes
          Last Post Rogers101  
          Started by ninza33, Today, 12:31 PM
          2 responses
          9 views
          0 likes
          Last Post ninza33
          by ninza33
           
          Started by Bobin, 03-12-2024, 08:51 AM
          15 responses
          480 views
          0 likes
          Last Post fiddich
          by fiddich
           
          Started by Skifree, Today, 11:21 AM
          4 responses
          13 views
          0 likes
          Last Post Skifree
          by Skifree
           
          Started by Bogdan097, Today, 03:25 PM
          0 responses
          6 views
          0 likes
          Last Post Bogdan097  
          Working...
          X