Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot StopLoss and ProfitTarget

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

    Plot StopLoss and ProfitTarget

    I am looking to plot this data in realtime. Where do I get these figures? Which object do i Call?

    #2
    Oil_Trader,

    The Set() methods do not return IOrder objects. To track where they are you would need to create your own variable to match their values right as you submit the Set() method. So for instance if the Set() value is 10 ticks below entry price, you can create your own double variable and have it equal to Position.AvgPrice - 10 * TickSize.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      How do I pass the close[0] value back to the "plotline indicator" when the price was triggered?


      Can i place this inside the OnBarUpdate within the strategy?


      Line.Set(Close[0]);
      Last edited by Oil_Trader; 09-19-2010, 02:51 PM.

      Comment


        #4
        Not sure I follow what your requirement is to pass it back. If you want to set it, you should instead go to the indicator and modify the indicator logic to implement this directly.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Yes but I need the execution price at Close[0]...how do I set that for the indicator value?

          Comment


            #6
            Oil_Trader,

            You should not be setting values back to an indicator. The relationship should be one direction. If you absolutely need this type of logic, please see this reference sample: http://www.ninjatrader.com/support/f...ead.php?t=6651
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            102 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            144 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            71 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            125 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            79 views
            0 likes
            Last Post PaulMohn  
            Working...
            X