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 llanqui, Today, 03:53 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Working...
    X