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 ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X