Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Trail ATM to NinjaScript

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

    Auto Trail ATM to NinjaScript

    Hi, I was trying to incorporate this strategy( please see the image) into a script, but I couldn't figure out the Auto-Trail part. If someone can share an example script that mainly shows the Auto-Trail (Stop loss, Profit Trigger, Frequency) logic, that would be a great help. Thank you so much!

    Attached Files

    #2
    Hello rajm1,

    Unfortunately an image was not included so I was unable to view it.

    Are you asking how to recreate different features of an atm strategy or are you trying to use an atm from NinjaScript?

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello rajm1,

      Unfortunately an image was not included so I was unable to view it.

      Are you asking how to recreate different features of an atm strategy or are you trying to use an atm from NinjaScript?
      Yes, mainly the trailing stop loss part. I have added the image as an attachment now. Please check. I am looking for an example script to follow. Is there particular commands for Auto Trail- Frequency or do we have to write the logic around the trail function?

      I am new to all these, thank you for your time.
      Attached Files

      Comment


        #4
        Hello rajm1,

        You can find a sample strategy that does trailing in the following post, that will trail similar to how an ATM does. It uses a frequency of price movement before trailing similar to an atm.

        Comment


          #5
          Originally posted by NinjaTrader_Jesse View Post
          Hello rajm1,

          You can find a sample strategy that does trailing in the following post, that will trail similar to how an ATM does. It uses a frequency of price movement before trailing similar to an atm.

          https://forum.ninjatrader.com/forum/...rategy-builder
          Thank you, I will check that out.

          Comment


            #6
            Hello Jesse, that was helpful. I was able to get it done. Now I have another request. How do you run synchronized trades on 2 instruments with one NinjaScript strategy? Please share if you have some helpful hints for that. Examples files are welcome. Thanks in advance.

            Comment


              #7
              Hello rajm1,

              While using the strategy builder that is not possible, in manual coding you can add additional series that can be used to execute trades on. I would suggest reviewing the multi series documentation before trying that concept, there are samples of how to use multiple series including submitting orders to other series in the following link.

              Comment


                #8
                Originally posted by NinjaTrader_Jesse View Post
                Hello rajm1,

                While using the strategy builder that is not possible, in manual coding you can add additional series that can be used to execute trades on. I would suggest reviewing the multi series documentation before trying that concept, there are samples of how to use multiple series including submitting orders to other series in the following link.

                https://ninjatrader.com/support/help...nstruments.htm
                Ok, let me check it out. Thanks

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                111 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                59 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                37 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                41 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                78 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X