Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ProfitTarget is True

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

    ProfitTarget is True

    In the NinjaScipt Editor how would you write the condition "If ProfitTarget is filled", do this?
    thanks

    #2
    Hello,

    Thank you for your note.

    This would require advanced unmanaged approach to order entry to do this which is reserved for advanced programmers only:



    However using the managed approach with NinjaTrader. A way to do this is check if you are flat. However with this check it does not differenciate with if the profit target was filled or the stop loss.



    if (Position.MarketPosition == MarketPosition.Flat)

    What are you trying to do and I can mabye offer another suggestion if you do not want to use unmanaged orders.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Is it necessary to use the "unmanaged approach" to set 2 different profit targets? Say one for buys and another for sells. Or can this be done "using the managed approach with NinjaTrader"? The "real" goal is to be able to set 2 separate profit targets, one larger for Trending and another smaller one for Trading, depending on the strategy parameters.
      thanks
      Last edited by kenb2004; 10-16-2010, 04:00 PM.

      Comment


        #4
        Ken, you can set two different targets with the managed approach, just create a separate one for each uniquely named entry and tag them together via the signal naming.

        Comment


          #5
          With 2 separate profit targets one for "TrendBuy or TrendSell" and another for "TradeBuy or TradeSell" could you point me to some sample code that would demonstrate this technique?
          thanks.

          Comment


            #6
            Sure, you could take a look at a strategy I modified some good time ago for NT 6.5 (concept nonetheless still valid), if you run this on Unique entry handling you would see the scale out with different targets for longs and shorts, thus 4 target values to enter as choice.

            Comment


              #7
              Thanks, I'll check it out.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              558 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              324 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              545 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              547 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X