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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PhillT, Today, 02:16 PM
    2 responses
    3 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by gentlebenthebear, Today, 01:30 AM
    2 responses
    14 views
    0 likes
    Last Post gentlebenthebear  
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    17 views
    0 likes
    Last Post PaulMohn  
    Working...
    X