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

Order reversal with actve profit target and stop loss

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

  • NinjaTrader_Bertrand
    replied
    coolmoss, those order handling rules would not apply to market orders - you can use those for a reverse in your case still.

    Leave a comment:


  • coolmoss
    replied
    Originally posted by NinjaTrader_RyanM View Post
    Hi alex.nt,

    Active means the order status is working or accepted. Internal order handling rules do not apply to market orders, so you can still send EnterLong(), EnterShort() and they will reverse, even while a stop loss order is working.
    Trying to really understand this. From the NT7 online manual I copy/paste:

    "Methods that generate orders to enter a position will be ignored if:
    · A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction"

    The way I read it, if the strategy is long and has a stop and/or target via a Set type statement, then even a market order won't reverse you.

    Please clarify, thank you.

    Leave a comment:


  • alex.nt
    replied
    Great, exactly the same question

    Leave a comment:


  • koganam
    replied
    Originally posted by alex.nt View Post
    Sorry, I would like to get a more definite answer Because it sounds really strange that one cannot reverse a position via limit order if stop loss order is working for current position.

    So: what happens if I have long position of size 1, working stop loss & profit target orders and I make the following call:
    IOrder order = EnterShortLimit(BarsInProgress, true, 1, limitPrice, signalName);

    Ideally, stop loss & profit target orders should be cancelled and then position should be closed and then this new short order should be submitted.

    What happens in real life?

    Thank you!
    Your order will be rejected. If you want to take a long read, these threads, in which I am the protagonist, will keep you awake nicely at night.

    http://www.ninjatrader.com/support/f...ad.php?t=39971
    http://www.ninjatrader.com/support/f...ad.php?t=43855
    Last edited by koganam; 01-24-2012, 11:38 AM. Reason: Corrected punctuation

    Leave a comment:


  • alex.nt
    replied
    Sorry, I would like to get a more definite answer Because it sounds really strange that one cannot reverse a position via limit order if stop loss order is working for current position.

    So: what happens if I have long position of size 1, working stop loss & profit target orders and I make the following call:
    IOrder order = EnterShortLimit(BarsInProgress, true, 1, limitPrice, signalName);

    Ideally, stop loss & profit target orders should be cancelled and then position should be closed and then this new short order should be submitted.

    What happens in real life?

    Thank you!

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    Hi alex.nt,

    Active means the order status is working or accepted. Internal order handling rules do not apply to market orders, so you can still send EnterLong(), EnterShort() and they will reverse, even while a stop loss order is working.

    Leave a comment:


  • Order reversal with actve profit target and stop loss

    A quote from help:

    "Methods that generate orders to enter a position will be ignored if:
    - A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction"

    Questions:
    1. What is an ACTIVE order?
    2. Does it mean that when stop loss is working I cannot reverse the position by issuing an order in opposite direction?

    For instance, I have SetStopLoss() set in Initialize(), I am in Long position (meaning SetStopLoss is active?) and I would like to enter Short. Will I get a rejection/null order?

    Thank you

Latest Posts

Collapse

Topics Statistics Last Post
Started by DayTradingDEMON, Today, 11:25 PM
0 responses
3 views
0 likes
Last Post DayTradingDEMON  
Started by Day_Storay1, Today, 09:06 PM
0 responses
6 views
0 likes
Last Post Day_Storay1  
Started by Rudmax, 07-02-2024, 05:40 AM
59 responses
1,056 views
1 like
Last Post QuantVPS  
Started by tomtom2000, Today, 12:56 PM
3 responses
18 views
0 likes
Last Post jabowery  
Started by stoner, 01-16-2020, 08:07 AM
20 responses
514 views
0 likes
Last Post IanS00
by IanS00
 
Working...
X