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 Max238, Today, 01:28 AM
      1 response
      22 views
      0 likes
      Last Post CactusMan  
      Started by giulyko00, Yesterday, 12:03 PM
      2 responses
      10 views
      0 likes
      Last Post giulyko00  
      Started by r68cervera, Today, 05:29 AM
      0 responses
      4 views
      0 likes
      Last Post r68cervera  
      Started by geddyisodin, Today, 05:20 AM
      0 responses
      7 views
      0 likes
      Last Post geddyisodin  
      Started by JonesJoker, 04-22-2024, 12:23 PM
      6 responses
      38 views
      0 likes
      Last Post JonesJoker  
      Working...
      X