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

GetAtmStrategyStopTargetOrderStatus price stop order problem

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

    GetAtmStrategyStopTargetOrderStatus price stop order problem

    hello i need help with this

    I have a strategy that enters the market with an ATM and that according to the scenario will move the stop, but before using the ATM it puts it in brake even. What I want is for me to never move the stop below that brake even, so through GetAtmStrategyStopTargetOrderStatus

    I am looking to print the price of the "stop1" order with the result that it is always 0, verifying the information in the control panel, the avg.price is correct, it is 0 but I want to get the Stop price, that is, the price where visually the order is placed to compare it with the new move that the strategy would make

    How could I print the price of the "stop1" order of an ATM strategy to be able to compare it?​

    #2
    Hello RubenCazorla,

    You can't query the individual ATM orders, if you plan to make price changes your script needs to have a variable that holds a stops price and then you would change the atm stop to that price using AtmStrategyChangeStopTarget().
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    8 views
    0 likes
    Last Post futtrader  
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,792 views
    0 likes
    Last Post aligator  
    Working...
    X