NexusFi: Find Your Edge


Home Menu

 





trade snapshot on backtesting


Discussion in NinjaTrader

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




 
Search this Thread

trade snapshot on backtesting

  #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?
Quant vue
Trading Reviews and Vendors
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
  #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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts