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

value of profit target depent of a condition

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

    value of profit target depent of a condition

    Dear all.

    My strategy generates a profit factor that obtain good results in the major of cases but in some conditions, the profit is filled and let off higer profit.

    I would like to develop a profit that if the Price reach the profit and one condition is satisfaced the position continues opened until new profit (higher tan the last).

    How can i program this condition.

    Bes regards

    #2
    Hello,

    Thank you for the post.

    I wanted to check, are you currently using the SetProfitTarget specifically or is this target another type of order you are already controlling with logic?

    Also can you tell me, are you using the Strategy builder or manually programming?

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

    Comment


      #3
      Hello Jesse.

      Yes im using SetProfitTarget. The strategy was created manually programing.

      tnaks in advance

      Comment


        #4
        Hello,

        Thank you for the reply.

        In this case, you would just need to create logic that supports your idea. Because you are manually programming you can continue to use SetProfitTarget.

        One way to approach this would be to first create a condition to set your target which you already have it sounds like or to just set this when you enter.

        Next would be a condition that checks for the criteria for more profit, by nature a target will fill if it can so you would need to ensure this condition can happen before the order fills. This condition if true could call SetProfitTarget again with a new price to update the existing target.

        This is likely how I would suggest approaching this but you could certainly do it other ways. Another approach would be to not use SetProfitTarget and instead use only logic and market orders. You could check for the condition to exit, and then submit your market order that time. Using this approach you could make complex logic and there would be no target to fill until your logic says to.

        We have a sample of modifying stop or target orders at the following link: http://ninjatrader.com/support/forum...ead.php?t=3222

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,609 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        16 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X