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 XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    7 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X