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

Why does System Trade Count go both up-and-down?

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

    Why does System Trade Count go both up-and-down?


    I do not understand why SystemPerformance.RealTimeTrades.LosingTrades.Coun t (and WinningTrades) can go both up and down?

    I'm running a strategy, real-time, against the live market. The script starts trading when the market opens, at 6 AM PST. I have a Print system, to print out:


    SystemPerformance.RealTimeTrades.LosingTrades.Coun t
    SystemPerformance.RealTimeTrades.WinningTrades.Cou nt


    Attached is a screen shot of that output. You can see at one point, Winning Traders = 4, and Losing Trades = 2. Then, Winning Trades = 1 and Losing Trades = 1. Of course, I'd expect these values to be the current count of winning and losing trades, which doesn't appear to be the case.

    I need to implement a circuit breaker where if I have three bad trades in a trading day, then I need to quit. But if LosingTrades.Count isn't accurate, then of course, my logic can fail.

    What's up? Thanks,

    Attached Files

    #2
    Hi timmbbo, thanks for posting. Are you running the script anywhere else on another instrument? Check for any other instances of your script running. Also, add the name of the strategy to the print to make sure it's coming from that strategy. I attached my test script that works fine when using SystemPerformance if you would like to test it out.

    Kind regards,
    -ChrisL
    Attached Files
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Vietanhnguyen2hotmailcom, Today, 10:29 AM
    2 responses
    4 views
    0 likes
    Last Post Vietanhnguyen2hotmailcom  
    Started by milfocs, Yesterday, 07:23 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kenz987, Today, 10:20 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PaulMohn, 04-24-2024, 03:49 AM
    2 responses
    30 views
    0 likes
    Last Post PaulMohn  
    Started by llanqui, Today, 09:59 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X