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 iantriestrading, Today, 09:40 AM
    4 responses
    21 views
    0 likes
    Last Post iantriestrading  
    Started by Nate G, Yesterday, 02:53 PM
    2 responses
    15 views
    0 likes
    Last Post bltdavid  
    Started by HappyTrader76, Yesterday, 04:14 PM
    6 responses
    41 views
    0 likes
    Last Post HappyTrader76  
    Started by Schools, 03-14-2025, 03:32 PM
    4 responses
    43 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by samish18, Yesterday, 06:46 PM
    2 responses
    27 views
    0 likes
    Last Post samish18  
    Working...
    X