Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Automated Strategy - Losong positions show as "Profit Target"

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

    Automated Strategy - Losong positions show as "Profit Target"

    Hi Support

    I am running my automated strategy in Market Replay and noticed that i am getting some "long" and "short" positions exiting at a loss but the "exit name" is saying "Profit target".
    This is happening randomly and not on a specific signal, or entry name as can be seen from the pics below.

    Strategy is set to exit and close all positions on session close, or by hitting profit target, as can be seen, some positions exit on session close but randomly other positions exit on "Profit target" which is not actually a profit target, but a loss.

    Also on the "Summary" page, will those losing positions interfere with the Strategy Performance figures listed?

    #2
    Hello TrendFollowingCapital,

    From the images it appears the orders were paired based on the order they were submitted, do you have a sample of the logic used to submit the orders and targets that I could explore?


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi Jesse

      Thank you for your reply, strategy does enter multiple pending orders but that does not explain "Profit target"

      Example code:

      EnterShortLimit(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ,"BackToBase1DOWN");
      SetProfitTarget("BackToBase1DOWN", CalculationMode.Ticks, 50);

      In each instance a Limit order is placed and stays until price hits it, then take profit is triggered. All open positions / pending orders cancel or exit on session close.

      Thank you, Jason

      Comment


        #4
        Hello TrendFollowingCapital,

        Thank you for the reply.

        Yes from the provided information I could not say what may be happening in the image, do you have a sample of the logic you had used so that I could explore the situation in more detail?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by zstheorist, Today, 07:52 PM
        0 responses
        2 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        149 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Working...
        X