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

How can I calculate the spread inside the strategy analyzer?

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

    How can I calculate the spread inside the strategy analyzer?

    Hello, how can I calculate the spread too inside the strategy analyzer ?

    #2
    Hello Uregon,

    Thank you for your post.

    There is no concept of bid/ask spread in a backtest, only the OHLC of the next bar which is used to price the fills. You can use the slippage parameter to simulate a spread if you wish:

    https://ninjatrader.com/support/help...lFillAlgorithm

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Zinger357, Today, 11:50 AM
    3 responses
    19 views
    0 likes
    Last Post Zinger357  
    Started by dylansmoo, Today, 07:04 PM
    0 responses
    3 views
    0 likes
    Last Post dylansmoo  
    Started by WalterSkinner, 02-07-2022, 09:22 AM
    6 responses
    78 views
    0 likes
    Last Post Lance El Camino  
    Started by shorty, Today, 06:20 PM
    1 response
    19 views
    0 likes
    Last Post Tasker-182  
    Started by dweems, Yesterday, 02:11 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_Angelica  
    Working...
    X