NexusFi: Find Your Edge


Home Menu

 





trade snapshot on backtesting


Discussion in NinjaTrader

Updated
    1. trending_up 1,497 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?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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,855

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