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 traderqz, Yesterday, 12:06 AM
|
11 responses
27 views
0 likes
|
Last Post Today, 05:11 AM | ||
Started by PaulMohn, Today, 03:49 AM
|
0 responses
7 views
0 likes
|
Last Post
by PaulMohn
Today, 03:49 AM
|
||
Started by inanazsocial, Today, 01:15 AM
|
1 response
10 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
10 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
4 views
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
Comment