Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stops from different scripts in chart trader

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

    stops from different scripts in chart trader

    Hello,

    when trading 2 NT-script-stats same time is there a possibility to see in chart trader which stops refer to which stragegy-entries?

    Or is it possible to refer in chart trader to a certain strategy?

    The only thing I want to have is a chart with the strategy and a chart with the stops (to control and to move) for both nt-script-strategies.

    I have no idea how to solve this (without different accounts of course).

    Thanks
    Tony

    #2
    tonynt,

    Chart trader and strategies are not able to be attached to charts at the same time. Essentially, if you attach a strategy to a chart, you will be able to see where it places trades however there is no way to tell which strategy does which trades if you attach two to a chart without a work around.

    You could use DrawTextFixed() to place a marker where trades are entered and exited with labels for which strategy is making the trades.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Adam,

      thank you for your reply. OK, clear. But then another question referring the trade organization please:

      In a NT-script I can determine that there is no new entry when not flat. But
      how can I do this please with GetATM-entries from the strategy? I´m running my NT-script-strat with some positions by GetATM, and I in the script have

      && GetAtmStrategyMarketPosition(atmStrategyId) == Cbi.MarketPosition.Flat

      But when not flat there is another entry (not by my script entries) with the GetATM in the strategy. I assume this is because of "atmStrategyID". So, please how can I avoid a new entry by GetATM of the strategy when not flat (any GetAtmStrategyPositon)

      Thanks
      Tony



      Originally posted by NinjaTrader_AdamP View Post
      tonynt,

      Chart trader and strategies are not able to be attached to charts at the same time. Essentially, if you attach a strategy to a chart, you will be able to see where it places trades however there is no way to tell which strategy does which trades if you attach two to a chart without a work around.

      You could use DrawTextFixed() to place a marker where trades are entered and exited with labels for which strategy is making the trades.

      Comment


        #4
        tonynt,

        That should work just fine, i.e. http://www.ninjatrader.com/support/h...etposition.htm

        Are you running multiple strategies on the same instrument?

        Its possible you have an issue with UniqueTrades vs. AllEntries, for more information please see the following link.



        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Adam,

          thank you for your reply. No, I have running one strategy but it occurs that there is another entry with GetAtm. This is my entry condition

          if(orderId.Length == 0 && atmStrategyId.Length == 0
          && GetAtmStrategyMarketPosition(atmStrategyId) == Cbi.MarketPosition.Flat
          && Falling(HMA(BarsArray[2],89))
          && (Highs[3][0] > KAMA(BarsArray[3],2, 10, 30)[0])
          && Close[1] > Open[1]
          && Close[0] < Open[0])
          {atmStrategyId = GetAtmStrategyUniqueId();
          orderId = GetAtmStrategyUniqueId();
          AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Market, 0, 0,
          TimeInForce.Day, orderId, "ATMstop1auto", atmStrategyId);
          }
          And in the attached jpg you can see my regularly entries by the script (S1A, S1B) and a 2nd entry by the ATM (even not flat).

          Thanks
          Tony

          Originally posted by NinjaTrader_AdamP View Post
          tonynt,

          That should work just fine, i.e. http://www.ninjatrader.com/support/h...etposition.htm

          Are you running multiple strategies on the same instrument?

          Its possible you have an issue with UniqueTrades vs. AllEntries, for more information please see the following link.



          Please let me know if I may assist further.
          Attached Files

          Comment


            #6
            TonyNT,

            Does your ATM strategy have 2 targets?

            I look forward to helping you solve your issue.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              Adam,

              thank you for your support. Please see the getatm in the screenshot.

              Thanks
              Tony

              Originally posted by NinjaTrader_AdamP View Post
              TonyNT,

              Does your ATM strategy have 2 targets?

              I look forward to helping you solve your issue.
              Attached Files

              Comment


                #8
                tonyNT,

                Please provide me with your log and trace files from times when this strategy is running.

                It is located in My Documents / NinjaTrader 7 / log.

                You can alternatively send them to me via [email protected] with ATTN: Adam in the message body.

                I look forward to helping you solve your issue.
                Adam P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cmtjoancolmenero, Yesterday, 03:58 PM
                11 responses
                39 views
                0 likes
                Last Post cmtjoancolmenero  
                Started by FrazMann, Today, 11:21 AM
                0 responses
                5 views
                0 likes
                Last Post FrazMann  
                Started by geddyisodin, Yesterday, 05:20 AM
                8 responses
                52 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by DayTradingDEMON, Today, 09:28 AM
                4 responses
                26 views
                0 likes
                Last Post DayTradingDEMON  
                Started by George21, Today, 10:07 AM
                1 response
                22 views
                0 likes
                Last Post NinjaTrader_ChristopherJ  
                Working...
                X