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 chbruno, Today, 04:10 PM
            0 responses
            1 view
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            436 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            6 views
            0 likes
            Last Post FAQtrader  
            Started by rocketman7, Today, 09:41 AM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frslvr, 04-11-2024, 07:26 AM
            9 responses
            127 views
            1 like
            Last Post caryc123  
            Working...
            X