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 DJ888, Today, 10:57 PM
    0 responses
    2 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X