Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Help Request

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

    Strategy Help Request

    Could someone please help me build the following strategy? Code example wold be greate!

    1. It will enter multiple positions (long or short).
    2. If Position.Quantity > 3 && Unrealized PnL is < -n then exit the first entree that was made and wait to make a next entree. After it makes another entree and UPnL is < -n then exit the next entree that was made after the 1st. And so on....

    So basically if we entered the following: Entree 1 + Entree 2 + Entree 3 + Entree 4 and UPnL < -n then close Entree 1. Make another Entree 5 and if UPnL < -n then close Entree 2.

    Thank you

    #2
    Hello Relogical,

    Thank you for your note.

    There are two reference samples that would help in getting you started in this area.
    The first one is on how to scale out with your strategy and the second uses Trade Performance for the strategy -
    http://www.ninjatrader.com/support/f...ead.php?t=3751
    http://www.ninjatrader.com/support/f...ead.php?t=4084

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X