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 AaronKoRn, Today, 09:49 PM
    0 responses
    7 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,978 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X