Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,404 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            95 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            8 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            159 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            8 views
            0 likes
            Last Post Belfortbucks  
            Working...
            X