indicator to email screen shot image - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

indicator to email screen shot image
Started:October 6th, 2011 (05:36 AM) by visounds Views / Replies:1,043 / 1
Last Reply:October 6th, 2011 (05:02 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

indicator to email screen shot image

Old October 6th, 2011, 05:36 AM   #1 (permalink)
Elite Member
Sydney, Australia
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL,GC,6E
Posts: 8 since Jun 2010
Thanks: 0 given, 0 received

indicator to email screen shot image

Hi guys,

I have an indicator that emails me when a paint bar occurs with entry prices and targets. I want to add to this the function of adding the screen shot of that specific chart.



is a standard function on the charts I suspect there is a code that can be added to my indicator for this.

any ideas?


Reply With Quote

Old October 6th, 2011, 05:02 PM   #2 (permalink)
Elite Member
Denver, CO
Futures Experience: Advanced
Platform: SierraChart
Broker/Data: Optimus, Rithmic
Favorite Futures: ES
Posts: 67 since Sep 2011
Thanks: 6 given, 31 received

I dont think there are any existing functions in NinjaScript to do this for you, but its fairly easy to do with some .NET classes in System.Drawing:

Rectangle - create a rectangle with the X/Y width / height of what you want to capture - you can use ChartControl.Width, height, and location (x/y point) to create a rectangle of the whole chart.

Bitmap - create a new bitmap the size of your rectangle with an appropriate pixel format.

Graphics - use an instance of this on your bitmap w/ Graphics.FromImage(). Then you can use CopyFromScreen() with your given rectangle to do the actual screenshot.

Then you can use your bitmaps instance Bitmap.Save with a desired file type like JPEG, to save it to a stream.

Once you have it saved, you'll have to email it. Unfortunately I dont know how to send a mail off the top of my head. I'm assuming System.Net.Mail.SmtpClient would make short work of this.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > indicator to email screen shot image

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen shot Big Mike Help, Tutorials, and How-Tos 0 May 24th, 2011 01:10 AM
US Cannot Confirm Rumors Gaddafi Shot; Oil Tumbles Quick Summary News and Current Events 0 February 24th, 2011 04:00 PM
Arizona Rep. Giffords Shot, Many Wounded in Rampage Quick Summary News and Current Events 1 January 11th, 2011 01:52 AM
NT 6.5 issue - image sometimes stays on screen after I close NT window Todd The Elite Circle 11 March 19th, 2010 09:14 AM

All times are GMT -4. The time now is 11:16 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-27 in 0.08 seconds with 19 queries on phoenix via your IP