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

Default Quantity

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

    Default Quantity

    Hi,

    When writing the my own strategy, how can I set the Default Quantity to be what I have on the existing ATM?
    Is there a way to do that?


    Thanks..








    #2
    Hello Abdullah_KSA,

    Thanks for the post.

    I wanted to clarify, by ATM do you mean you are using ATM strategies in your NinjaScript strategy or do you mean the ATM selector in the chart?

    If you can provide a few more details about what you are building/what ATM you are wanting to access that would be helpful.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Abdullah_KSA,

      Thanks for the reply.

      The Default quantity cannot be variable but you could instead just use your own variable for the quantity here. I am still not clear on how exactly you want to reference the ATM from within your strategy for this question but you could create logic to delegate order quantity for Strategy based orders.

      In your strategy how were you planning on using the ATM specifically? Are you submitting ATM orders or were you just trying to access the templates in some way to retrieve values from a specific template? If you can provide a more clear picture of the end goal that would help me to form an answer here.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by timmbbo, Today, 08:59 AM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by KennyK, 05-29-2017, 02:02 AM
      2 responses
      1,281 views
      0 likes
      Last Post marcus2300  
      Started by fernandobr, Today, 09:11 AM
      0 responses
      2 views
      0 likes
      Last Post fernandobr  
      Started by itrader46, Today, 09:04 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by bmartz, 03-12-2024, 06:12 AM
      5 responses
      33 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Working...
      X