• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to split an automated order into single lots

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

    How to split an automated order into single lots

    Hi,

    So lets say I have a 2 target strategy that is 2 lot size, first target is 10 ticks, second target is 20 ticks, stop is 10 ticks

    I achieve the 10 tick target with 1 lot off, then decide to add 1 lot to my position at some point before the 20 tick target is hit.

    Now automatically I would have a 2lot stop and 2lot target, how do I split up those orders in the quickest way? Particularly on the stop, is there a way to break up that 2 lot stop into two separate 1 lot stops (say 1 at 10ticks from the original entry and the 2nd 8 ticks from its own entry point)? Or alternatively if I want the add to have a target of 30 ticks whilst the original stayed at 20. (obviously which order is the add and the original doesn't matter at all, just emphasizing that they were triggered at different times)


    What is seeming to happen is when I add, both the original position and the add has the same target and stop, consolidating the 2 orders. The problem I'm having is I want those positions to have individual stops and I don't want to have to cancel the current stop order to manually replace 2 stops. I trade fast paced conditions so the less I have to do manually the better and I never want to be in a no-stop position. What should I do?
    Last edited by GoldLinx; 11-09-2019, 06:56 PM.

    #2
    Hi GoldLinx, thanks for your note.

    Depending on the method being used to set the stop and target, the SetStopLoss and SetProfitTarget methods can take a "fromEntrySignal" string. If you give an order "SignalName1" and the stop and target also contain "SignalName1" then the stop and target prices will be unique to that order. These stack together so you can have multiple calls to SetStopLoss and SetProfitTarget, setting different signal names every time.

    Please let me know if this does not resolve your inquiry.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by vitrxotinusa, Yesterday, 11:56 PM
    0 responses
    5 views
    0 likes
    Last Post vitrxotinusa  
    Started by vitrxotinusa, Yesterday, 11:55 PM
    0 responses
    3 views
    0 likes
    Last Post vitrxotinusa  
    Started by vitrxotinusa, Yesterday, 11:53 PM
    0 responses
    6 views
    0 likes
    Last Post vitrxotinusa  
    Started by raymonds, Yesterday, 10:23 PM
    0 responses
    4 views
    0 likes
    Last Post raymonds  
    Started by Gbnowpes, Yesterday, 09:21 PM
    0 responses
    5 views
    0 likes
    Last Post Gbnowpes  
    Working...
    X