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.
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!
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
NinjaTrader
Screenshot chart on entry signal
Collapse
X
-
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.Tags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by The_Sec, Yesterday, 02:29 PM
|
2 responses
11 views
0 likes
|
Last Post
by The_Sec
Today, 02:30 PM
|
||
Started by love2code2trade, Today, 01:45 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:10 PM | ||
Started by Gibranes, Today, 10:05 AM
|
5 responses
21 views
0 likes
|
Last Post Today, 01:55 PM | ||
Started by 09try, 03-29-2024, 01:27 PM
|
9 responses
83 views
0 likes
|
Last Post
by ntcat
Today, 01:16 PM
|
||
Started by ninza33, Today, 06:28 AM
|
4 responses
17 views
0 likes
|
Last Post
by ninza33
Today, 12:38 PM
|
Comment