Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy Keeps Resetting Entry

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

    ATM Strategy Keeps Resetting Entry

    I've uploaded my code. For some reason it works fine during slow movements. but if market moves just a bit fast, the strategy Resets Entry Orders and Resubmits them at each New Higher Volume Bar.

    This is for Range Bars. 20 tick EUR/USD, or 23 tick AUD/JPY. on "TenthOfAPip".

    I've rechecked my code like 5 times to see where it Resets the Entry, and it works fine until a little movement. Then it Does NOT want to Update Stop Loss either. If a New High Volume Bar appears, the strategy acts like if it's NOT In Current Position.

    The Entry Condition is Very Specific: if(!LONG) { GoLong } and vice versa.

    Can someone check it out and tell me what I'm doing wrong please.

    thank you
    Attached Files

    #2
    Hello ginx10k,

    Thank you for your patience.

    Can you attach a screenshot of the ATM Strategy settings and the Stop Strategy settings?

    Comment


      #3
      jUST Uploaded the Latest Version. Please just Use the Default Settings. The Old Version was using Position.MarketPosition instead of "GetAtmStrategyMarketPosition".

      Yet the problem still occurs. Somehow, and Sometimes not all the time, the Current Trade will stay on and the Strategy will act like if it doesn't Exist. it won't update the Stop Loss, and It'll Open NEW Entries if conditions are met.

      It looks so simple, yet I can't figure out why it's doing this.
      Attached Files

      Comment


        #4
        Hello ginx10k,

        I can use any ATM Strategy or do you have specifics?

        Comment


          #5
          You can use any Template. The Strat is currently Set to
          Code:
          	private string	atmTemplateBUY			= "Rng20_Buy_38TP_35SL";	//Range ATM Template 38 Take Profit, 35 SL. for "TenthOfAPip
          		private string	atmTemplateSELL         = "Rng20_Sell_38TP_35SL";	//Range ATM Template 38 Take Profit, 35 SL. for "TenthOfAPip
          I simply made Two ATM Templates that take profit 38 ticks and Stop Loss @ 35 ticks. Using TenthOfAPip on EUR/USD or FOREX only.

          Comment


            #6
            Hello ginx10k,

            Thank you for your response.

            Can you send us your log and trace files by going to Help > Mail to support?
            Please reference this thread in the e-mail: "http://ninjatrader.com/support/forum/showthread.php?t=78627"

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X