Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tracking manually opened position with an ATM strategy

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

    Tracking manually opened position with an ATM strategy

    I want to program a simple exit ATM strategy to track a manually opened trade.

    I am familiar with NinjaScript (indicator programming) and went through most of the documentation, and but I am unable to figure out in the documentation how to detect open positions (manually) for a particular contract.

    Assume, I manually opened a position - say BUY 1 contract of ES.
    Now, I want this position to be tracked using my exit ATM strategy on 1-hour chart. If the price moves by more than 2 standard deviations during the current candle (Current Price - candle Open Price is greater than 2 standard deviations) then the manually opened positon must be closed.

    How do I proceed ? In my NinjaScript code, how do I find all open positions ?

    #2
    Hello adheer,

    Thank you for your post.

    NinjaScript strategies are designed to place orders automatically and do not detect open positions. There is no supported NinjaScript code to detect an open position and then use an ATM Strategy to protect the position. The NinjaScript strategy would monitor it's own internal position and automate entry and exit based on it's conditions and actions as defined in code.

    For more information please visit the following link: http://ninjatrader.com/support/helpG...strategies.htm

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,789 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,293 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    13 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    63 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X