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

Indicator Plotted Value Report

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

    Indicator Plotted Value Report

    Currently when backtesting I can only export the execution data of the trade (time, price, ratios etc).

    I need to run additional data analysis on backtested trades outside of NT. However, in order to do this I need the plotted values of all my indicators used in the strategy that would typically show in the data box in addition to the trade execution data.

    Example: If a long trade was entered at xxxx amount at xxx time, I also need the plotted value of say the ATR value used in the strategy at the time of entry and exit along with the values of any other indicators used.

    Is there a way to run /export one report that includes the indicators plotted values and executed trade data?
    Last edited by tjfintrade; 11-23-2023, 06:11 AM.

    #2
    Hello tjfintrade,

    To do that you would need to write your own data to file by using a C# streamwriter. In your conditions to trade you could collect any data you need such as indicator values and then write that to a file. Keep in mind this will not work for optimizations because multiple tests are run in parallel and multiple scripts cannot access the same file at the same time. For an optimization you would need to make a unique filename for each optimization iteration to avoid that.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by drnoggin, Today, 12:19 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by synthhokie, Today, 12:00 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by moneyexe, Today, 11:22 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by stevec1824, Today, 11:00 AM
    2 responses
    8 views
    0 likes
    Last Post stevec1824  
    Started by sofortune, Today, 10:05 AM
    2 responses
    14 views
    0 likes
    Last Post sofortune  
    Working...
    X