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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X