Announcement

Collapse
No announcement yet.

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 MiCe1999, 12-01-2024, 09:01 PM
          4 responses
          44 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by Darkslide_Tom, 03-23-2025, 11:08 PM
          2 responses
          14 views
          0 likes
          Last Post Darkslide_Tom  
          Started by coopgrafik, Today, 07:57 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by luna0074, Today, 06:39 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by rtwave, 03-13-2025, 04:09 PM
          3 responses
          28 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Working...
          X