Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to create basic entry with TP and stop with Ninjascript

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

    Trying to create basic entry with TP and stop with Ninjascript

    Hi,

    I've made both managed and unmanaged orders, gone through the docs for how to create an ATM strategy in Ninjascript (not possible it appears) and I am struggling to simply achieve creating an ATM strategy in code and then using it.

    I don't want to use an existing one from the ATM Strategy drop down.

    This exists but it strangely does not do what its name says, it seems to still rely on an existing ATM strategy, hence not helpful: https://ninjatrader.com/support/help...tegycreate.htm

    Thanks
    Last edited by firefoxforum12; 04-08-2024, 06:55 AM.

    #2
    Hello firefoxforum12,

    To use an ATM from NinjaScript requires that you make a template beforehand. Template creation is a manual process that is done through the user interface. Once you create templates you can use ATMStrategyCreate from a strategy to launch an ATM with that template name.

    To otherwise have a strategy do similar tasks to an ATM but be dynamic would require using the managed or unmanaged approach and defining logic to do those tasks.

    Comment


      #3
      Hello, thanks.

      Two questions:

      1. Regarding ATM Templates, can I edit the stop and TP of the "Template" via code and then execute it?

      2. So there is No way to create a brand new ATM strategy (i.e. new ATM strategy drop down option) via code?


      Comment


        #4
        Hello firefoxforum12,

        There is not a way to edit or create templates from code, there is no exposed api for that. You can change the price of targets after they are working, you can see the available NinjaScript methods for working with atms here:



        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X