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

Get Stop and Target from ATM

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

    Get Stop and Target from ATM

    Hi,
    I have an ATM with 10 target and 16 stop but they constantly change to 12-18 or 11-17 on a daily basis.
    Is it possible to get the target and stop from code within the indicator?

    #2
    Hello PWillard,

    Thank you for the post.

    Could you provide more context about the problem and what you are trying to do here?

    You mentioned that you have an ATM but the targets change, are you using an ATM template which has a stop template applied? ATM's have a lot of functionality which relates to moving the targets later after they were submitted. You may just need to adjust the ATM template if you are having difficulty with the targets being priced correctly.

    Using an Indicator you could observe the orders on an account or make changes to orders however if your ATM is controlling those orders then it would not make sense to try and make a separate script to "fight" against the ATM changes. The ATM template should be edited to correct the targets. The alternative would be to use a script to place trades rather than using ATM's, that would let you place orders in whatever way you wanted and apply any logic you wanted to the orders.

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

    Comment


      #3
      I click edit atm every day and set target and stop.
      I would like to know if its possible to read target/stop values from code within the indicator!

      Comment


        #4
        Hello,

        You cannot read the template values but you could observe orders that were submitted from an indicator: https://ninjatrader.com/support/help...ount_class.htm

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by giulyko00, Today, 12:03 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 12:14 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by aprilfool, 12-03-2022, 03:01 PM
        2 responses
        326 views
        0 likes
        Last Post BottomShark77  
        Started by AnnBarnes, Today, 12:17 PM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by Lopat, 03-05-2023, 01:19 PM
        4 responses
        169 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Working...
        X