Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetProfitTarget

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

    SetProfitTarget

    Once in a trade can SetProfitTarget be adjusted with every bar close? Meaning can I change the profit target dynamically with every bar close with SetProfitTarget in OnBarUpdate method?

    Thanks,
    Eleven
    Last edited by eleven; 08-08-2010, 05:27 PM.

    #2
    eleven, yes you can call SetProfitTarget() whenever you wish. Please see the help guide entry for SetProfitTarget() for details.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks Austin. I set a profit target on 60 min and 15 min bars in a MTF strategy at the same time (not knowingly). Back testing this strategy yielded very good results. What was happening was that if profit target was reached on 60 min it would exit trade, if not it would fall back to the less agressive profit target of the 15 min bars and exit trade. Basically, it would always default to the best trade. Real time testing this would fall apart. I think I got this figured out now.

      Comment


        #4
        I want that 'default' just like Hillary Clinton did

        Originally posted by eleven View Post
        ... What was happening was that if profit target was reached on 60 min it would exit trade, if not it would fall back to the less agressive profit target of the 15 min bars and exit trade. Basically, it would always default to the best trade. Real time testing this would fall apart. I think I got this figured out now.
        eleven,

        How are you coding 'default to the best trade' ? If you have a 60min bar, and have to wait 15min to have a compare, the price @60min isnt there anymore.

        Jon

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X