Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM strategy selection mode

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

    ATM strategy selection mode

    Hi,

    I have a chart with Chart Trader turn on and I set the "ATM strategy selection mode" to "Display selected ATM strategy only".

    I then duplicate this chart so I have 2 identical charts.

    On the first chart, I clicked on the Chart Trader's default "Buy Market" button. After a while, on the second chart, I clicked on the Chart Trader's default "Sell Market" button. Because the ATM selection mode is set to "Display selected ATM strategy only", these 2 orders are treated as 2 separate orders instead of canceling out each other. This is good for situations whereby I am holding onto a winning buy position and still wish to scalp short positions.

    I built a simple strategy that draws a clickable buy market button and a sell market button. The buy market button executes the EnterLong() command whereas the sell market button executes the EnterShort() command.

    I loaded this strategy onto the 2 identical charts above. On the first chart, I clicked on the strategy-drawn buy market button and it opened a buy position. However, on the second chart, when I clicked on the strategy-drawn sell market button, it closed my buys position instead of opening a separate sell position.

    Kindly advise what I should do to get the second sell order to execute a separate sell position.


    #2
    Hello Rainmakersg,

    You would need to submit the orders using Atm methods so that the ATM strategy selection mode applies.

    From a NinjaScript Strategy this would involve using AtmStrategyCreate() to create the entry and attach the Atm.


    Included with NinjaTrader is the SampleATMStrategy which has sample code of using Atm Strategy methods.


    Note, that account position in this situation would actually be flat. This forum post goes into detail.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X