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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        61 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        98 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X