Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

My trade dont appear in the postion tab?

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

    My trade dont appear in the postion tab?

    Hi

    I have the following code:


    protected override void OnBarUpdate()
    {
    // Condition set 1
    if (<condition1>)
    {
    EnterLong(DefaultQuantity, "LONG");
    }
    // Condition set 2
    if (<condition2>)
    {
    EnterShort(DefaultQuantity, "SHORT");
    }
    }


    Reason I ask is that, when I view the strategy in the control panel, I see it in the Strategy tab, but I dont see it in the Postion tab.

    Am I doing something wrong here?

    Thanks

    #2
    ninjamouse,

    You would not see it in the positions tab till it has made a real-time trade.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Really?

      Its just that I do see some trades in the Position tab.

      Comment


        #4
        ninjamouse,

        If you have made any manual trades they will show up. If any other strategy has made some trades they will show up.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I havent made any manual trades.

          Ive opened up a new chart, ran my simple SMA crossover strategy and for the 1st time, I wont see it in the postion tab, but when the lines crosses over, i see an entry in the postion tab, but when it crossess over again I dont see it in the postion tab? But when it crosses over I see it in the postion tab.

          Any idea why it isnt working?

          Comment


            #6
            Why is that unexpected? It will match whatever position you have in your Sim101 account. Your Sim101 position does not need to match your strategy position. Please see this article: http://www.ninjatrader-support2.com/...ead.php?t=4033
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              ok, my strategy dont have multiple strategies, nor do I use
              SuperDOM or Chart Trader.

              So when Im 100% confident my strategy works ok, what tab should I be looking at? the strategy one or the Position tab?

              on the link you sent me, it says

              "What can you do in this case?

              If you want your Account Position to match your Strategy Position, you will need to place a manual order into the account the strategy is running on. Continuing from the above example, you would need to place a 1-lot market order for the market being traded into the account the strategy is running on."

              Whats the point in having a strategy that will buy/sell automatically, when I have to manually trigger the order?

              my strategy is a using the standard SMA crossover Ninja supplied.

              thankyou and kind reagards
              Last edited by ninjamouse; 03-25-2009, 08:17 AM.

              Comment


                #8
                ninjamouse,

                You have to manually ensure your brokerage account is in line with your strategy account. As you start up the strategy it runs through the historical data and calculates out your strategy position. It is VERY critical you ensure your brokerage account is in line with this. For instance, you start strategy, it calculates a 100 long. Your brokerage account is actually flat. The next thing you strategy does is close the 100 long. Your real account now goes 100 short while your strategy continues along as flat.

                Please reset your Sim101 account. Tools->Options->Simulator->Reset.

                Viewing from the strategy tab will give you your strategy position. Viewing from the positions tab will show real-time positions.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  OK NinjaTrader_Josh

                  I just reset everthing, restarted Ninja, I have no position, nothing.

                  When I ran my strategy (I only have 1 chart open), it went short, it appeared in the postion tab, next thing, my strategy went long, but it didnt appear in the position tab.

                  So in my strategy (in the example above - going long) it says I'm making $50, and I dont see that in the position tab. Im a bit worried it skips out trades

                  Also, in my strategy I'm buying 1 contract, but when it goes into the position, I see QTY column it has 2?

                  Thankyou

                  Comment


                    #10
                    ninjamouse,

                    Sorry I can't reproduce. It shows Short then it shows Long for me. And you did reset your DB? Are you sure you are on NT6.5.1000.9?
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Yes I've reset your DB? and I have NT6.5.1000.9?

                      Comment


                        #12
                        ninjamouse,

                        At this point in time I do not know what could be causing this and am unable to reproduce. I would have to suggest a clean reinstall to see if that helps.

                        1. Backup any NinjaScript, data, workspaces, etc. you want to keep and then uninstall NT.
                        2. Delete My Documents\NinjaTrader 6.5 (you will lose everything)
                        3. Clear internet browser cache
                        4. Reinstall NT6.5.1000.9
                        5. Do not restore any settings and just test SampleMACrossOver from this clean install.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          NinjaTrader_Josh

                          I've installed a NEW copy of Ninja on another machine, I have the same problem.

                          1. When I ran the standard SampleMACrossOver that is supplied by you guys, the strategy said it was LONG, but in the Position tab, I didnt have an entry.

                          2. When it went SHORT, I had a postion in the Position tab.

                          3. When the SMA crossed and went up, the strategy said it was going LONG, however, I didnt have a position in the Position tab saying its going long.

                          I'm doing this on a 1min chart or EURUSD, and using the SampleMACrossOver with settings of




                          PLEASE NOTE.

                          This is from a NEW installation of Ninja, so this should work. Can someone please help me me here?


                          thanks

                          Comment


                            #14
                            ninjamouse,

                            Can't reproduce. You will need to provide exact steps from the very beginning. Be very specific as to exactly which column, tab, whatever you are looking at too.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              OK

                              1. Create a new chart of any symbol, I choose EURUSD, 1 min chart
                              2. Run the SampleMACrossOver strategy, and change the setting: FAST = 3, SLOW 5, Min bar required = 1.

                              3. On the Control Panel, in the strategy tab, you will see the strategy running, it might say its going long or short, depending on the current situation. But it WILL say its Long or Short. So to me, its saying Im in a postion, and it could be Long or Short.

                              4. So in the strategy tab, it says its going Long or Short, but if you click on the Postion tab, I havent got a postion? Even if you open up the SuperDOM, there is NO position.

                              5. How, if you wait a while, lets say the strategy *was* going Long, now if the SMA crosses over, the strategy tab will say its going Short.

                              6. If you click on the Position tab, I'll see an entry there saying its going Short.

                              7. If you wait a while, if the SMA crosses over, in the strategy tab, you'll see its going Long.

                              8. If you click on the Position tab, you will NOT see an entry there saying to go long.

                              9. ALSO, in the SampleMACrossOver if you click on the strategy tab, there is a column called: Position, in there I have 1L (or 1S, depending on the position). If and when I get a row in the Position tab I'll get Quantity = 2.


                              I hope this makes it clear?

                              Can you somehow look at my screen? I'm not doing anything fancy here, so it SHOULD work?

                              Thanks again


                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              649 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              370 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              109 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              574 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              576 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X