Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to change Setprofittarget amount in day trading.

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

    Is it possible to change Setprofittarget amount in day trading.

    Hi All,

    Is it possible to change Setprofittarget amount in day trading.

    Example 1st trade profit $75 and second trade $50 like that. Any Solutions?

    Thanks!!
    Antony

    #2
    Originally posted by Antony View Post
    Hi All,

    Is it possible to change Setprofittarget amount in day trading.

    Example 1st trade profit $75 and second trade $50 like that. Any Solutions?

    Thanks!!
    Antony
    Tag your orders, and set the profit target based on the individual tags. Look up "SetProfitTarget" in the NT Help.

    Comment


      #3
      I just saw Koganam's post, and it is definitely a much more elegant solution using the SetProfitTarget() command. So please ignore my post. I leave it quoted below in this post, because maybe the rest can be of some help to you.

      The trick is to create to separate sell-limit orders each positioned so that they yield the $75 and $50 profit.

      First set signal name of 1st entry to "entry_1" , second entry will be "entry_2".
      After 1st entry, set a limit sell order with "fromEntrySignal=entry_1 " using ExitLongLimit something like this:

      ExitLongLimit( 0, true, Quantity of 1st trade, Position.AvgPrice + (daily ProfitTarget / multiplier / Quantity of 1st trade ) , "exit_1" , "entry_1" );

      for shares multiplier will be 1, do the same for the second entry, but use exit_2 and entry_2

      Be sure to cancel the orders at the end of the trading session because they are live until cancelled (unless you use ExitOnClose to flatten the strategy)


      this is the syntax in the NinjaTrader Help for the ExitLongLimit:
      ExitLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName, string fromEntrySignal)

      Marco
      Last edited by marcow; 12-01-2012, 02:09 PM.

      Comment


        #4
        Great Koganam..

        Thanks!!
        Antony

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X