Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A few Questions - stop strategy, bracket orders

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

    A few Questions - stop strategy, bracket orders

    First - I'm a bit confused by the bracketing of orders in strategies (through using unmanaged trades). I am trying to place two stop entry orders, one above a certain price (long), and one below another price (short). Whenever I use the example as laid out here (http://www.ninjatrader.com/support/f...ad.php?t=55184), nothing happens - no entries are ever placed. If worst comes to worst, I'll just make two strategies use normal managed trades procedures, one for longs one for shorts. But for backtesting purposes, it would be ideal to have it all laid out in one strategy. EDIT: I realized that what I really want is for this: say the long order is filled, but make its way back to the stop - I want that stop to turn into a reverse order with a new stop loss. But I don't know which order will get filled first - and when I place two stop orders following each other in the code, the second one is ignored.

    Second - I'm hoping that someone can help me with the Performance functions - is there a way to use only a collection of trades from the current trading session? For example, if my first trade is a win, I want the strategy to not take any more trades THAT DAY ONLY. If the first trade is a loss, I want it to take another. If both the first and second trades are losses, I do not want it to take any more trades THAT DAY ONLY. I seem to only be finding methods to shut down the strategy FOR EVER once x trades has occurred, or once x losses has occured, or x wins, etc.

    Thank you anyone that can provide me with some advice.
    Last edited by jmflukeiii; 03-15-2013, 06:35 PM.

    #2
    Hello,

    This example should help you get started with Unmanaged OCO orders: http://www.ninjatrader.com/support/f...tid=-1&lpage=1

    The the performance functions there is a similar example to what you're trying to achieve here: http://www.ninjatrader.com/support/f...ead.php?t=4084

    Let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    4 responses
    21 views
    0 likes
    Last Post alifarahani  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PhillT, Today, 02:16 PM
    2 responses
    7 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X