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 suroot, 04-10-2017, 02:18 AM
        4 responses
        3,019 views
        0 likes
        Last Post truepenny  
        Started by Stanfillirenfro, Today, 07:23 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        2 responses
        22 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by olisav57, Yesterday, 07:39 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cocoescala, 10-12-2018, 11:02 PM
        7 responses
        944 views
        0 likes
        Last Post Jquiroz1975  
        Working...
        X