Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Default quantity and # of trades

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

    Default quantity and # of trades

    Hi,

    I have an issue with the adjusting of default quantity in the strategy analyzer.
    I run my strategy on $EURUSD and when setting the default quantity to to 1 the strategy runs 368 trades. While increasing the quantity the # of trades drops of dramatically and at around 20 QTY they are down to 4. At 1000 QTY (which I would think is 1 micro lot) only 1 trade is performed. Increasing the QTY indefinitely after this keeps the QTY at 1.

    Am i missing some knowledge on how forex lots are used in NT or is the strategy analyzer taking volume into consideration? Or.. what?

    Thanks in advance,
    Magnus

    #2
    Hello Magnus,

    Please note when backtesting an automated strategy in the Strategy Analyzer, order quantities will always represent the total units of the base currency being traded. A lot size of one equals a base currency unit of one and DOES NOT equal a typical "standard" lot size of 100,000. Therefore, if you want to trade a standard lot you would use an order quantity of 100,000.

    I am not sure why the backtests have different amount of trades. What happens if you backtest the SampleMACrossOver strategy using the same order quantities. Do you see a difference in amount of trades as well?

    Do you see justification for the different amount of trades if you check the Chart-tab in the Strategy Analayzer for each backtest?

    Comment


      #3
      Hi,

      I think I found the problem. I was reusing some code from someone else and in that code (for some account management) the P/L of trades was multiplied by QTY and then also multiplied with Pointvalue which obviously turned out to be huuuuge numbers (multiplying everything by 10000 for EURUSD), so I think it it was some overflow problems.

      Thanks,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      67 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      150 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      287 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X