• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged Trade - Profit taking, StopLimit, StopMarket

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

    Unmanaged Trade - Profit taking, StopLimit, StopMarket

    Hi -

    Can you please confirm I am using this function correctly for profit taking and stoplimit orders:

    // Go long
    ol = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.Market, 3,0,0,"","Long_"+CurrentBar+"_1_");

    // Profit taking 4 pts above entry
    op = SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.Limit, 3, GetCurrentBid()+4, 0, "", orderNameProfit)

    // Market.StopLimit -- stop limit 2 ticks below entry
    os = SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.StopLimit, 3, GetCurrentBid()-0.5, GetCurrentBid()-0.5, "", orderNameStop)

    I've tested this and it appears to work as I've described above.

    How do I establish a Market.StopMarket order?

    Thank you!
    Last edited by bigsurftrader; 03-16-2017, 05:10 PM. Reason: Corrected some mistakes

    #2
    Hello Bigsurftrader,

    Thank you for your note.

    The following will submit a stop market order 5 ticks below the current bid.,
    Code:
    SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.StopMarket, 1, 0, GetCurrentBid()-5*TickSize, "", "Sell Stop");
    Please see the following link for SubmitOrderUnmanaged proper syntax.
    https://ninjatrader.com/support/help...runmanaged.htm

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by radist, Today, 12:13 AM
    0 responses
    1 view
    0 likes
    Last Post radist
    by radist
     
    Started by mntemel, Yesterday, 10:25 PM
    0 responses
    2 views
    0 likes
    Last Post mntemel
    by mntemel
     
    Started by johnMoss, Yesterday, 10:22 PM
    0 responses
    4 views
    0 likes
    Last Post johnMoss  
    Started by Sulfred, Yesterday, 08:34 PM
    0 responses
    7 views
    0 likes
    Last Post Sulfred
    by Sulfred
     
    Started by martyn73, Yesterday, 08:10 PM
    0 responses
    11 views
    0 likes
    Last Post martyn73  
    Working...
    X