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 ScottWalsh, Today, 06:52 PM
    4 responses
    32 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    4 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Started by Haiasi, Today, 06:53 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X