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 davian05, 12-31-2024, 05:05 AM
    10 responses
    237 views
    1 like
    Last Post workfornowork  
    Started by timmbbo, 06-06-2022, 09:12 PM
    4 responses
    281 views
    0 likes
    Last Post Fertryd2  
    Started by llanqui, 03-05-2025, 06:03 AM
    16 responses
    102 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by Daniel Roa, Today, 09:56 AM
    2 responses
    17 views
    0 likes
    Last Post Daniel Roa  
    Started by Playdc, Today, 03:33 PM
    1 response
    9 views
    0 likes
    Last Post bltdavid  
    Working...
    X