Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Default Quantity in Strategy Analyzer

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

    Default Quantity in Strategy Analyzer

    Hi,

    Im backtesting on a CFD product and struggling to understand the value of the default quantity section. Initially assumed a value of 1 represented 1 CFD. This resulted in taking miniscule trades and was therefore increased to 100, which still resulted in trades taking place with peppercorn values. What's the deal here?

    #2
    Hello demo166130,
    Thanks for your post.

    The DefaultQuantity property simply sets the number of contracts or shares to enter a position with.

    What version of NT8 are you using?

    What specific instrument are you testing?

    What quantity are your orders being submitted for? What are these specific 'peppercorn' values?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Using NT7, think I understand better now how the values work. The low values being entered were taking v.mall positions so the price moves were creating tiny profits/losses per trade.

      Is there a way to baktest using a fixed percentage of account value in order to universalise the entries across a various instruments?

      Comment


        #4
        demo166130,

        Happy to hear you figured it out.

        You can get the cash value by using AccountItem.CashValue. This of course would need to be programmed into your strategy.


        Josh G.NinjaTrader Customer Service

        Comment


          #5
          On a side issue loosely related. A comission value of 0.1 for CFD's is fairly accurate? Obviously, you can't give me exact values because it varies from broker to broker and instrument to instrument, but doesn this sound somewhat realistic?

          Comment


            #6
            demo166130,

            What sounds realistic for specific commission values is beyond my expertise. As you noted, it would likely be best to research rates by specific broker. I will leave this post open for anyone else that may have more insight on commission values.
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X