Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged Trade - Profit taking, StopLimit, StopMarket

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

  • NinjaTrader_AlanP
    replied
    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.

    Leave a comment:


  • 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, 04:10 PM. Reason: Corrected some mistakes

Latest Posts

Collapse

Topics Statistics Last Post
Started by derivtrader, Today, 12:04 PM
0 responses
1 view
0 likes
Last Post derivtrader  
Started by samy3448, Today, 10:55 AM
2 responses
8 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by rickyblah12, Yesterday, 01:33 PM
3 responses
20 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by jeliner, Today, 08:51 AM
1 response
45 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by dastaan, Today, 06:24 AM
4 responses
27 views
0 likes
Last Post NinjaTrader_Kate  
Working...
X