NexusFi: Find Your Edge


Home Menu

 





trade snapshot on backtesting


Discussion in NinjaTrader

Updated
    1. trending_up 1,401 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
zaico
Barcelona Spain
 
Posts: 26 since Sep 2016
Thanks Given: 6
Thanks Received: 4

Hello everyone! this is my first post. There it goes:
I'm programming a Strategy on NT7 and it would be a lot easier to have a look at all my trades on photos of each, instead of having to click and select chart for everyone. Is it possible?
Thanks in advance!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Coinbase Launches Regulated Crypto Futures Across 26 Eur …
Cryptocurrency
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
Prediction Markets Lock Fed Pause at 99pct for April 29 …
Prediction Markets & Event Contracts
CFTC Advances Prediction Markets Regulation -- Chairman …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860

Hello

I have done this before, what you do is actually take a screen shot at every trade for later reference
you can see an example of such a bot at



You need to replay the data and run your strategy and then you call the following function :

 
Code
		protected int MakeScreenShot ()
		{
			String filename;

			ScreenCapture sc = new ScreenCapture();
			
			//{39:MM/dd/yyyy HH:mm:ss}
	
			if (myTakePictureType == 1)
			{
		      filename= string.Format("{0}O{1}-{2}-{3:yyyyMMdd-HH.mm.ss}{4}",
				"c:\\logs\\banana\\",
				this.Instrument.FullName,
				this.BarsPeriod, 
				Time[0], 
				".png");
			  // without extension
			  myTakePictureAttachment = string.Format("{0}O{1}-{2}-{3:yyyyMMdd-HH.mm.ss}",
				"c:\\logs\\banana\\",
				this.Instrument.FullName,
				this.BarsPeriod, 
				Time[0]);
			}
			else
			{
		      filename= string.Format("{0}B{1}-{2}-{3:yyyyMMdd-HH.mm.ss}{4}",
				"c:\\logs\\banana\\",
				this.Instrument.FullName,
				this.BarsPeriod, 
				Time[0], 
				".png");
			  // without extension
			  myTakePictureAttachment = string.Format("{0}B{1}-{2}-{3:yyyyMMdd-HH.mm.ss}",
				"c:\\logs\\banana\\",
				this.Instrument.FullName,
				this.BarsPeriod, 
				Time[0]);
			}
			
			DebugPrint (filename);
//			sc.CaptureWindowToFile(ChartControl.FindForm().Handle,filename,ImageFormat.Png);
			sc.CaptureScreenToFile(filename,ImageFormat.Png);
			
			return (0);
			
		}


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
zaico
Barcelona Spain
 
Posts: 26 since Sep 2016
Thanks Given: 6
Thanks Received: 4


Thanks for the help!

Sorry but some things seem missing. All those variables are nowhere declared. Also ScreenCapture is not recognize.

Do you insert this code INSIDE the strategy or in other file and you call it from there as an indicator?


Reply With Quote




Last Updated on December 3, 2016


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts