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

How to set ATM by button?

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

    How to set ATM by button?


    i was able to set it by AtmSelector.SelectedIndex(index), but this is not idle, since the index is changing during trades if you use ATM.
    i want to find a specific ATM by Name and set it to the selctror.
    do i need to read all XML files? or there is already an object contains all templates?

    one more thing.
    there is a Collection AtmStrategy.All
    some of templets appears there several times and some don't appear at all
    any reason why?

    #2
    UPDATE:

    in Debug i can see all templets in AtmSelector.Items
    but i always get null when trying to read it in real time.
    ex.
    Code:
    for (int x=0 ; x < AtmSelector.Items.count ; x++ )
    {
    atmStrategytml[x] = AtmSelector.Items[x] as AtmStrategy ;
    }
    Last edited by NIncash; 09-22-2022, 01:26 AM.

    Comment


      #3
      Hello Nincash,

      Thank you for your post.

      It is possible to make a control to select an ATM, but I am not aware of a supported way to get a list of these as strings.

      Below is a link to an example that has an Atm Strategy selector.
      http://ninjatrader.com/support/forum...555#post515555


      You could also get the selected atm from the ChartTrader as well if you wanted.
      https://ninjatrader.com/support/foru...775#post752775

      Please let us know if we may be of further assistance to you.​
      Kate W.NinjaTrader Customer Service

      Comment


        #4
        i know those examples and they don't answer my question.
        i'm looking for a list of AtmStratgety(templets) Objects. Where i can find them? because i can see them in Debug. they do Exist
        i use the AtmSelector in the chartTrader and want to configure buttons to change the selected Atm. before i submit an order
        read Post 2

        What about AtmStrategy.All?
        Last edited by NIncash; 09-24-2022, 06:30 AM.

        Comment


          #5
          Hello Nincash,

          Thank you for your reply.

          There is not a supported or documented method to change the selected ATM in the AtmStrategySelector. This is outside the realm of what we would be able to assist with. I will leave the thread open in case any of our users can assist with undocumented methods.

          Please let us know if we may be of further assistance to you.
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by quantismo, Yesterday, 05:13 PM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by The_Sec, 04-16-2024, 02:29 PM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_ChristopherS  
          Started by hurleydood, 09-12-2019, 10:45 AM
          15 responses
          1,098 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by danieldunn2024, Today, 03:06 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by cre8able, Yesterday, 04:16 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X