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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X