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 Option Whisperer, Today, 09:55 AM
    1 response
    11 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    1 view
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    3 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    2 views
    0 likes
    Last Post 00nevest  
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Working...
    X