Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order methods

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

    Order methods

    Hi
    i am in the process of automating a forex strategy and would like to check i am using the correct order methods. i need to be able enter above market price for longs and below for shorts, to stack positions if trend continues, move stop loss as each new position is added, and then reverse from long to short or from short to long.Would enter long stop,enter short stop and set trail stop be sufficient.

    #2
    Hello ohjob,

    Yes, stop orders are right for that order placement. For stacking positions, look into how EntriesPerDirection and EntryHandling properties work.

    SetTrailStop() will trail the last traded price by the specified amount. For more control on stop loss movement, you can look into this sample:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Possible?

      Hi thanks for your quick answer last time,following on from that question is it possible rather than using stop orders for entry and exits to store the desired entry price and enter at market when this is reached.If possible what advantages/disadvantages could there be.
      Thanks

      Comment


        #4
        Yes, this is possible. You want to compare the last traded price to your desired entry price. Last traded price is Close[0] when CalculateOnBarClose = false.

        if (myPrice == Close[0])
        EnterLong();
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        44 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        65 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X