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 traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    46 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by arvidvanstaey, Today, 02:19 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by mmckinnm, Today, 01:34 PM
    3 responses
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by f.saeidi, Today, 01:32 PM
    2 responses
    9 views
    0 likes
    Last Post f.saeidi  
    Working...
    X