Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can indicators work using trade data?

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

    Can indicators work using trade data?

    Hi NT 7,

    I am trying to make an indicator that uses trade data. looking to have it display the entry price once I enter a trade, and then when I exit with partial profits, it would 'move' the entry price line to show what my new break-even price would be given the new profits. Can an indicator do this? or a strategy? Thank you!

    #2
    Hello Austiner87,

    Thanks for your reply.

    In NinjaTrader7 you are a bit limited in what you can do along these lines.

    From a non-programming approach, open two charts (same instrument and same account) and on one apply the strategy and on the other enable the chart trader. The chart trade will display the entry price line according to the value of Position.AvgPrice. The same is true if you manually trade (with the chart trader) as well.

    From a scripting point of view, I would suggest looking at my colleague Jesse's example of accessing account data from an indicator: https://ninjatrader.com/support/foru...rategy?t=68029 as Jesse notes this is undocumented and unsupported in NinjaTrader7. You can do this in NinjaTrader8 where it is documented and is supported.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    85 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    47 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X