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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    110 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    59 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    37 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    41 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    78 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X