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.

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bc24fl, 08-30-2019, 01:58 PM
    4 responses
    259 views
    0 likes
    Last Post PaulMohn  
    Started by sugalt, Today, 04:02 AM
    0 responses
    6 views
    0 likes
    Last Post sugalt
    by sugalt
     
    Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
    6 responses
    30 views
    0 likes
    Last Post tradingnasdaqprueba  
    Started by PaulMohn, Today, 02:06 AM
    1 response
    8 views
    0 likes
    Last Post PaulMohn  
    Started by Mindset, Today, 01:27 AM
    0 responses
    6 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X