• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shorting stocks

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

    Shorting stocks

    Hi,

    I have a strategy to short stocks. When testing with historical data everything is ok but when using the strategy at real-time short positions are automatically closed after 1 second and I do't see why.

    Is there anything I don't know I have to consider. Any tip?

    When entering a short position directly with TWS this doesn't happen.

    thanks

    #2
    Hello guillembm,

    Please enable TraceOrders by assigning TraceOrders = true; in the strategies Initialize() method. That will provide messaging related to strategy orders. Messaged are viewed in Tools > Output Window. There may also be messages you can see in the log tab of control center.

    http://www.ninjatrader.com/support/f...ead.php?t=3627
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jleira, Today, 10:26 PM
    0 responses
    4 views
    0 likes
    Last Post jleira
    by jleira
     
    Started by wuileng, Today, 10:14 PM
    0 responses
    5 views
    0 likes
    Last Post wuileng
    by wuileng
     
    Started by mntemel, Today, 09:07 PM
    1 response
    10 views
    0 likes
    Last Post MojoJojo  
    Started by martyn73, Today, 08:22 PM
    0 responses
    9 views
    0 likes
    Last Post martyn73  
    Started by RobertoPaez, Today, 08:13 PM
    0 responses
    4 views
    0 likes
    Last Post RobertoPaez  
    Working...
    X