• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
      Patrick H.NinjaTrader Customer Service

      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 shmarola, Today, 01:01 AM
          0 responses
          1 view
          0 likes
          Last Post shmarola  
          Started by CriticalMind, 11-29-2015, 12:39 PM
          3 responses
          1,321 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by novel168, 06-14-2019, 09:20 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by johnnybegoode, Yesterday, 08:00 PM
          3 responses
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by digibob, Yesterday, 03:00 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X