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

Unmanaged approach methods

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

    Unmanaged approach methods

    Hi Ninjas,

    I'm trying to solve a big limitation in NT that is reversing positions with limit orders, when this position have always its StopLoss or ProfitTarget orders tied to. This situation doesn't occur with Market Orders.

    With that being said, it seems that I'll have to learn the unmanaged approach method to get this simple procedure. For this I've been reading some material in NT help guide, in this forum and watching several examples to accelerate the rate of learning, however I see this is not an easy task cause, either there are a lot of configurations and parallel methods or there's info missing in basic things, such as:

    What does this comparison mean?
    if ( entryOrder == order )
    My logic tells me that this something like: if entryOrder is actually an active order , BUT this is not explained ever. So my question:

    Where can I see material or a guide that could help me to learn this advanced programming?

    Thanks

    P.S: NT should consider highly to implement or facilitate methods that allows to reverse positions even if there's protective orders working

    #2
    Hi Pstrusi,

    Thank you for posting.

    The entryOrder == order is check if Object A is equal to the IOrder Object that is being handled.
    It is essentially a filter for checking which IOrder Object is being handled.

    Additionally, an intermediary step instead of jumping to Unmanaged would be to use exit orders for the Stop loss and Profit targets that way you can use CancelOrder() to cancel those orders and go in the opposite direction.

    http://www.ninjatrader.com/support/h...tml?iorder.htm
    http://www.ninjatrader.com/support/h...rderupdate.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I appreciate highly your suggestion Cal cause learning this advanced programming without any tutor is pretty complicated.

      I decided not to reinvent the wheel and check all the guide and samples with the managed approach, the I tried to build logically for modules and I think I got it right. So far I can see that it's perfectly achievable what I want: Reverse positions with limit orders which must have always its StopLoss orders.

      If any further help I'll let u know
      Last edited by pstrusi; 12-05-2013, 06:00 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pjsmith, 01-03-2022, 10:38 AM
      3 responses
      217 views
      0 likes
      Last Post brucerobinson  
      Started by Spank, Yesterday, 04:32 AM
      2 responses
      22 views
      0 likes
      Last Post brucerobinson  
      Started by onlinebusiness, Today, 02:31 AM
      0 responses
      23 views
      0 likes
      Last Post onlinebusiness  
      Started by kainermy, Today, 02:08 AM
      0 responses
      20 views
      0 likes
      Last Post kainermy  
      Started by bomberone3, 10-16-2017, 12:16 PM
      11 responses
      2,108 views
      0 likes
      Last Post Spank
      by Spank
       
      Working...
      X