Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        51 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        127 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X