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

Order Placing

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

    Order Placing

    Hi

    I want to know, if its possible

    1. to place an Limit Order based on a Moving Average automatically.

    2. Automatically cancel the existing limit order (every 2 min), and place a new limit order based on the 5 min Moving Average

    3. Can it place a STP Order, when placing the limit order as stated in pt 2

    Thanks
    Raj

    #2
    Hello Raj,
    Thanks for your note.

    1. Yes, you can place a limit order with SMA as the limit price. A basic sample code will be like:
    Code:
    this.EnterLongLimit(SMA(14)[0]);
    2. You dont have to cancel the order. You can simply modify the order by placing the order again.

    3. To assists you further may I know are you trying to place a bracket order, or are you simply trying to place a stop order (using the Set method).
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 11:02 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by geotrades1, Today, 10:02 AM
    4 responses
    12 views
    0 likes
    Last Post geotrades1  
    Started by rajendrasubedi2023, Today, 09:50 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by lorem, Today, 09:18 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by geddyisodin, Today, 05:20 AM
    4 responses
    30 views
    0 likes
    Last Post geddyisodin  
    Working...
    X