Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

script and atm

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

    script and atm

    Hello,

    my NT-scripts work well and also I can call an ATM (from charttrader) within a NT-script.

    But when I want to combine both in a NT-script-strategey eg entry 2.000 long with NT-script and eg 1.000 from my ATM (of course same ATM that works "alone") then I notice that only the 2.000 script entries are done but not the 1.000 from ATM.

    What can be the reason for please? Is there to change for COBC= false and working with FirstTickofBar maybe instead or what else could hindering the ATM entry?

    Thanks
    Tony
    Last edited by tonynt; 03-07-2012, 07:48 AM. Reason: typing error - my english

    #2
    Hello Tony,

    Do you mean that the strategy orders are being entered, but not the ATM Strategy?

    Are you calling both methods under the same conditions?

    Do you have any clues from the TraceOrders output? (http://www.ninjatrader.com/support/f...ead.php?t=3627)
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hello Matthew,

      thanks for your reply. Yes the script-strategy orders are entered, but not the order from the ATM. The conditions are the same (the reason why I´m doing this is because I want to be able to move one positions stop-loss)

      And additional information is that it works well when I do an immediate entry in another strategy with

      if(orderId.Length == 0 && atmStrategyId.Length == 0
      && GetCurrentAsk() > GetCurrentBid())

      Both entries are done (script and atm) but what I notice is that ATM-entry always is later (I think it is next tick).

      But when I substitute(of course both script entries and ATM) && GetCurrentAsk() > GetCurrentBid()) by

      && CrossAbove(Stochastics(BarsArray[5],7,14,3).K, Stochastics(BarsArray[5],7,14,3).D, 3) && Close[1] < Open[1] && Close[0] > Open[0])

      then only the script entries are done but not the ATM.

      Thanks
      Tony





      QUOTE=NinjaTrader_Matthew;278314]Hello Tony,

      Do you mean that the strategy orders are being entered, but not the ATM Strategy?

      Are you calling both methods under the same conditions?

      Do you have any clues from the TraceOrders output? (http://www.ninjatrader.com/support/f...ead.php?t=3627)[/QUOTE]
      Last edited by tonynt; 03-07-2012, 11:48 AM. Reason: clearify

      Comment


        #4
        Tony,

        Do you see these results in real-time, or are you backtesting?

        Please keep in mind that ATM Strategy methods will not be called when backtesting on historical data.
        MatthewNinjaTrader Product Management

        Comment


          #5
          Matthew,

          thank you. I know that the ATM does not work in backtesting. I do on real-time-demo-account . (but this would have been the solution in backtesting of course)


          Thanks
          Tony

          Originally posted by NinjaTrader_Matthew View Post
          Tony,

          Do you see these results in real-time, or are you backtesting?

          Please keep in mind that ATM Strategy methods will not be called when backtesting on historical data.
          Last edited by tonynt; 03-07-2012, 02:49 PM.

          Comment


            #6
            Would you mind emailing me your script at support[at]ninjatrader[dot]com

            You should find this in (My) Documents\NinjaTrader 7\bin\custom\strategies\<your strategy>.cs

            Please attach this to an email with Attn: Matthew in the subject line.

            Thanks.
            MatthewNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by helpwanted, Today, 03:06 AM
            1 response
            10 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            9 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            5 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            242 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            387 views
            1 like
            Last Post Gavini
            by Gavini
             
            Working...
            X