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

Edit atm stop quantity

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

    Edit atm stop quantity

    Hi,
    I am submitting an order from code and while testing with SIM I am able to loop through orders and find the stop and switch quantity from 1 into 2.
    When ever I use ninja brokerage or amp I am not able to switch stop quantity to 2.

    Code:
    foreach (Order order in rAccount.Orders) {
    if (order.Name == "Stop1") order.Quantity = 2
    I noticed that with SIM I get Name='Stop1' New state='Accepted'
    then with amp I see Name='Stop1' New state='Working'

    Could that be the issue or what is it that i'm missing since I am unable to update stop quantity on live account!

    #2
    Hello PWillard,

    Thank you for your post.

    Do you receive any errors in the log when running this on a live account? If so, what is the full text of the error? Please send me your log and trace files so that I may look further into what occurred on the actual accounts.

    You can do this by going to the Control Center-> Help-> Email Support

    Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    Please reference the following ticket number in the body of the email: 3584576 ATTN Kate W. and also include a link to this post.

    Thanks in advance; I look forward to assisting you further.


    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    147 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Working...
    X