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 cls71, Today, 04:45 AM
        0 responses
        1 view
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        213 views
        1 like
        Last Post PaulMohn  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        544 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        12 views
        0 likes
        Last Post XXtrader  
        Working...
        X