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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X