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 benmarkal, Yesterday, 12:52 PM
            3 responses
            22 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by helpwanted, Today, 03:06 AM
            1 response
            17 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            11 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            6 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            244 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Working...
            X