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

Added Time series question..

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

    #31
    Originally posted by zachj View Post
    Yes 143 trades with the volume code and 155 without. But I'm just backtesting on symbol SPY, the volume and price constraint should have no effect. I don't understand how this is not clear. If SPY is hovering around $150 price and volume always over 100 million, why is a filter for volume over a measley 100k and stocks between $10 and 200 changing the net profit results or amount of trades? Im just putting those fillters in for when I run a BT in the future on the entire S&P to avoid the stocks that don't pass those specs. Im running just on SPY currently to make sure this code isn't effecting anything it shouldn't, which it definately is.
    It sounds as if there may be some scaling involved. There are 2 ways to find out.
    1. Make your Volume filter much smaller, and see if that resolves the matter. If so, then there is probably scaling involved.
    2. Use some Print() statements to see the actual volume figure that NT is using for the calculation, as opposed to what we think that it has to be.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,611 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    6 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    22 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X