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

Getting Different Results Trading Live V Backtesting

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

    Getting Different Results Trading Live V Backtesting

    I have a system that should have entered long today and didn't. When back testing it enters, when I activate live, it didn't.

    I realised the reason was an entry condition relating to RSI on the 60 minute chart. It enters on the 1 minute chart but if RSI on the 60 min chart is over 65 it doesn't.

    At the time the RSI on the 60 min chart was 59.

    Any ideas why this didn't enter live but does work when back testing?

    Many thanks

    #2
    Hello MJUK10,

    Thanks for writing in.

    There are some discrepancies between historical data and real-time. The article below is from our help guide and discusses these differences.
    http://www.ninjatrader.com/support/h...ime_vs_bac.htm

    However, it may be beneficial to print the values of your conditional outside and before the conditional statement. With a print, you can directly compare the values that were used to decide if the strategy would make the buy or not.

    For example:

    Print(High[0].ToString() + " - " + Low[0].ToString() + " - " + RSI(19)[0].ToString());

    This will print the high and low of the bar to the output window as well as the rsi so that you can make a direct comparison.


    Please let me know if this does not resolve your inquiry.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Tim-c, Today, 02:10 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    2 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    50 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    10 responses
    400 views
    1 like
    Last Post beobast
    by beobast
     
    Started by lorem, Yesterday, 09:18 AM
    5 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X