Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Preventing Multiple ATM Entries

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

    Preventing Multiple ATM Entries

    I am running an automated strategy which executes an ATM when entry order conditions are met. To prevent having multiple entries occur while I still have an active ATM running I test to see that there are no ATMs active at the time I would be entering another order using the following code:

    Code:
    && GetAtmStrategyMarketPosition("BCMTW_ATM_CL") == MarketPosition.Flat)
    This is one line embedded along with all the other market entry conditions I am using.

    "BCMTW_ATM_CL" is the name of the ATM I invoke when I want to enter the trade. Is this the proper way to test for the presence of an active atm, because it doesn't appear to be working. Because of my market entry conditions it is possible to get multiple entries on the same trend up or down, but since I am using an ATM, and it has a runner in it, I will usually have a single contract running up or down, depending on the trend direction. That is how I want it, but I am getting multiple entries, and it can create too much account risk for the account size I am trading.

    Is there a better way to check for the presence of an active ATM before entering a new trade using an atm?

    Thanks

    DaveN

    #2
    Dave, have you seen the sample built into NinjaTrader that shows how to track various ATM statistics? You can find it from Tools -> Edit NinjaScript -> Strategy -> SampleAtmStrategy.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 11:51 AM
    0 responses
    16 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    13 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    20 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X