Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM into Strategy

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

    ATM into Strategy

    Hello everyone,

    I would like to know how to introduce my ATM custom strategy in a easy Strategy System?

    For exemple; one System Strategy Crossover SMA 30 and 50, when SMA 30 Crossabove SMA 50 active my Custom ATM Strategy instead of putting a simple order long or short in fontcode. I want the strategy take data from my custom ATM.

    Thanks!

    #2
    Hello fisagol,

    Thank you for your post.

    This is possible using the ATM Strategy methods and functions. I recommend looking into the example provided in your installation under Tools > Edit NinjaScript > Strategy > SampleAtmStrategy.

    Please review the ATM Strategy methods and functions at the following link: http://ninjatrader.com/support/helpG...gy_methods.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks but I would want to say this option in a one panel of Any Strategy. I don't know how to put this option in a one panel of my strategy

      Click image for larger version

Name:	ATM.jpg
Views:	1
Size:	84.0 KB
ID:	874174

      In this image is option "ATM NAME"

      Comment


        #4
        Hello,

        Thank you for the reply.

        I wanted to clarify, are you asking how to make a Text Input field in your own strategy that is like the one in the image?

        I look forward to being of further assistance.

        Comment


          #5
          Hello

          I want to make a text input field but, not any text, otherwise I want to take the ATM parameter from my panel.

          I scored exactly the option you want to have in my control panel of the strategy Click image for larger version

Name:	aaaa.jpg
Views:	1
Size:	89.7 KB
ID:	874190 to choose exactly the ATM I want

          ThankYou

          Comment


            #6
            Hello,

            Thank you for the reply.

            Creating a text entry is certainly possible but getting the parameters or name from the ATM strategy there would be no supported way to do this.

            ATM Strategies when combined with NinjaScript have very limited capabilities and there is no built in methods for getting its parameters or name, mainly just the items located on this page: http://ninjatrader.com/support/helpG...gy_methods.htm

            There could potentially be unsupported ways to get the strategies parameters or name but I am not aware of any.

            Please let me know if I may be of additional assistance.

            Comment


              #7
              Originally posted by fisagol View Post
              Hello

              I want to make a text input field but, not any text, otherwise I want to take the ATM parameter from my panel.

              I scored exactly the option you want to have in my control panel of the strategy [ATTACH]33540[/ATTACH] to choose exactly the ATM I want

              ThankYou
              Here is the syntax for ATMStrategyCreate()
              Code:
              AtmStrategyCreate(OrderAction action, OrderType orderType, double limitPrice, double stopPrice, TimeInForce timeInForce, string orderId, string [COLOR="Blue"][B]strategyTemplateName[/B][/COLOR], string AtmStrategyId)
              All that you have to do to get/expose a strategyTemplateName is to create a string property to hold it.

              Comment


                #8
                Thankyou very much!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                601 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                559 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X