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

Screenshot chart on entry signal

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

    Screenshot chart on entry signal

    Is there a way to send a screenshot to file for every instance where my script generates a signal in a backtest?

    If possible I would like to have an image where the setup bar is the last bar visible on the right. The size of the chart could simply be a fixed size - say 30 bars.

    #2
    Hello,

    Thank you for the question.

    I am not certain this would be possible because while you run the actual backtest and orders are calculated, there is no chart. The chart is only an after the fact display unlike a normal chart where the script would run in realtime.

    It is possible to take screenshots of windows in C#, but I believe due to the nature of how the backtest works this would only be possible in realtime where the trade is currently visible in the window.

    The next best solution for a backtest would likely be to report the order information or any other variables you need in Text. You could write this file to the hard drive or output it and copy and paste it. you could compile a single file of all of the backtest executions as an example.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by terkk, Today, 01:16 PM
    4 responses
    29 views
    0 likes
    Last Post bltdavid  
    Started by TraderElegante, Today, 12:14 PM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by dgee949, Today, 11:44 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_JustinD  
    Started by NinjaTrader_Kate, Today, 12:01 PM
    0 responses
    22 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by efeuvejota01, Today, 11:42 AM
    4 responses
    38 views
    0 likes
    Last Post efeuvejota01  
    Working...
    X