Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

condition based on entry signal price?

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

    condition based on entry signal price?

    Dear all,

    I am developing a strategy and would like to use the entry signal price as one of my exit condition. E.g. the exit will be based on a macd crosser AND a 1% minimum profit.

    After going through the manual and the forum I don't think I can use a stop (as I do not want to limit my exit at a 1% profit) and I haven't discovered a function recalling the entry price.

    I would be very grateful if you could point me in the right direction.
    Hope my newbie question is not too obvious

    Cheers, Ch90

    #2
    Hello Ch90,

    You can work with Position.AvgPrice for this:


    It's also possible to get the execution price for a specific order, but requires advanced NinjaScript, working with IOrders and exposing execution details:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      A quick and efficient reply. I am definitely impressed by the soft and the great support. Congrats to all the team. Ch90

      Comment


        #4
        Thanks for your kind words, CH90. Have an excellent weekend!
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        656 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        371 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        579 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X