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.

      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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          28 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          9 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          10 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          17 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X