Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleAtmStrategy

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

    SampleAtmStrategy

    Hi,

    I was testing out the SampleAtmStrategy provided on NKD futures but something look amiss. It executed by buying 1 contract of NKD and once the order is filled, I was expecting the output file to start displaying marketposition long, position quantity 1, and start tracking the unrealized P&L. But all it shows is 0,0,0,0.

    I use the script as it is and did not change anything.
    __________________________________________________ ___________
    Output

    **NT** Submitting order with strategy 'SampleAtmStrategy/3c6b766c7a784a13acee530dd057271d'
    The entry order average fill price is: 0
    The entry order filled amount is: 0
    The entry order order state is: PendingSubmit
    The current ATM Strategy market position is: Flat
    The current ATM Strategy position quantity is: 0
    The current ATM Strategy average price is: 0
    The current ATM Strategy Unrealized PnL is: 0
    The entry order average fill price is: 0
    The entry order filled amount is: 0
    The entry order order state is: Working
    The current ATM Strategy market position is: Flat
    The current ATM Strategy position quantity is: 0
    The current ATM Strategy average price is: 0
    The current ATM Strategy Unrealized PnL is: 0
    The entry order average fill price is: 19850
    The entry order filled amount is: 1
    The entry order order state is: Filled
    The current ATM Strategy market position is: Flat
    The current ATM Strategy position quantity is: 0
    The current ATM Strategy average price is: 0
    The current ATM Strategy Unrealized PnL is: 0

    #2
    lengguan,

    Thank you for your post.

    I tested this to confirm and could not reproduce this.

    As, soon as I get a fill I was able to get the information correctly.

    Who are you connected to? This is displayed in the lower left hand corner of the Control Center

    Are you using the same sample ATM template name or created a new one in its place?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi Cal,

      I am connected to Interactive Brokers. I am using its paper account to forward run this strategy. I customized my own template just using a 20 pt stop loss and 20 pt profit target and saved it as AtmStrategyTemplate as per what is named in the script.

      Comment


        #4
        Lengguan,

        I am not seeing this on my end.

        In particular to this line -
        The current ATM Strategy market position is: Flat

        The Position is still referencing as flat which would not have the fill information. On the next bar update this will be different and will have the fill information.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          The script works fine when I use Sim101 account. The positions and p&l are tracked and output correctly. But when I switch to use the live paper account, the same problem occurs again.

          Comment


            #6
            lengguan,

            Apologies but I'm not getting these issues on my end.

            I would like to setup a remote session with you for this.

            Send a note to platformsupport [at] ninjatrader [dot] com
            Put ATTN Cal in the subject and reference this thread
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X