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

Reverse your bot

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

    Reverse your bot

    Hi
    this might be a stupid question but I can't figure it out. So I mad a bot that constantly losing money like 20k per month on NQ. I figurI'd that if I flip my code to enter long instead of short and short for long. Exit also flip this should make so much money right? Nope it still lose money.

    I check entry and exit and it does enter and exit same spot. It might have like 2 to 3 ticks different.

    Any idea why flipping bad bot won't work?
    Thanks

    #2
    Hello SuperDude123,

    I would analyze the trades. My guess is that the entry and exit price and times are not exactly the same.

    Below is a link to a forum post that demonstrates how to write information to file for analysis.
    Citizens of the NinjaTrader Community, A common question we hear from clients is 'why are results from backtest different from real-time or from market replay?'. Live orders are filled on an exchange with a trading partner on an agreed upon price based on market dynamics. Backtest orders are not using these market dynamics.


    Output the time of the bar and all values used in conditions that submit orders. Output the order object in OnOrderUpdate(). Output the TraceOrders information from OnOrderTrace(). Output the SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1].ProfitCurrency each time the position is closed.

    Provide the output from each test and I would be happy to assist with the analysis of each trade.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    2 views
    0 likes
    Last Post Perr0Grande  
    Started by elderan, Today, 08:03 PM
    0 responses
    3 views
    0 likes
    Last Post elderan
    by elderan
     
    Started by algospoke, Today, 06:40 PM
    0 responses
    10 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    9 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    7 views
    0 likes
    Last Post quantismo  
    Working...
    X