Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Trading Strategy "Imagining" Position

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

    Automated Trading Strategy "Imagining" Position

    Hi there,

    I have been running several Automated Trading Strategies successfully for the last month, however last night had a new problem.

    I have written a new MA crossover strategy, similar to previous ones apart from the fact that this one is non-EOD.

    On starting the strategy, it recognised a short position that was not there. At the next crossover, it went long with the correct position size as intended, but it also bought to cover the "imagined" short position that I didn't have, resulting in an overall long position that was twice the size that I intended.

    If anyone knows how to solve this problem I would be very grateful for your tips!

    #2
    Eastbank, welcome to our forums! Please review this link below carefully, as it explains how to ensure proper synching between your strategy and account position to avoid the issues you ran into - http://www.ninjatrader-support.com/H...tPosition.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Many thanks Bertrand- your prompt response is much appreciated

      Comment


        #4
        Is there any more user-friendly solution for self-coding?
        The opening of a manual position may indeed not really be the solution

        Comment


          #5
          Henrik, welcome to our forums - you could instead just use the 'Wait Until Flat' option under Tools > Options > Strategies > NinjaScript ( http://www.ninjatrader-support.com/H...tegiesTab.html ). This way NinjaTrader would take the first freshly generated signal.

          In addition: NinjaTrader 7 addresses strategy persistence across sessions and adds an auto syncronize feature - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Thank you for this great Tipp, Bertrand!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by arvidvanstaey, Today, 02:19 PM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            7 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            47 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by mmckinnm, Today, 01:34 PM
            3 responses
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X