• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sending email with screenshot of current chart

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    sending email with screenshot of current chart

    Hello,
    my intention is to send a email with the current chart of the strategy. Is there a possiblity to get the chart by file or to get the current form?
    I tried this but I have no chance to get the current form informations:

    Rectangle bounds = this.Bounds;

    using(Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
    {
    using(Graphics g = Graphics.FromImage(bitmap))
    {

    g.CopyFromScreen(new Point( bounds.Left,bounds.Top), Point.Empty, bounds.Size);

    using (MemoryStream ms = new MemoryStream())
    {
    bitmap.Save(ms, ImageFormat.Jpeg);
    bytes = ms.ToArray();
    }
    }
    Well - currently I'm not able to get the bounds of the current window of the strategy.

    #2
    Hello mpower,

    There is no supported technique for this, but I would take a look at OregonSun's contribution here:
    http://www.ninjatrader.com/support/f...catid=6&id=377
    Ryan MNinjaTrader Customer Service

    Comment


      #3
      great - that's what I was looking for. Thanks

      Comment


        #4
        Hello mpower or ryan or anybody else
        the link above does not work
        i am looking for the same answer
        anybody knows how to make a screenshot and send by mail?

        Comment


          #5
          Originally posted by yeshe View Post
          Hello mpower or ryan or anybody else
          the link above does not work
          i am looking for the same answer
          anybody knows how to make a screenshot and send by mail?
          click on link then search for 'OregonSun'

          Comment


            #6
            Hello yeshe,

            The user submitted apps have moved to the User App Share section of the NinjaTrader Ecosystem site.
            Below is a public link to this script.
            https://ninjatraderecosystem.com/use...hart-function/
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by simonkloot, Today, 04:14 AM
            0 responses
            3 views
            0 likes
            Last Post simonkloot  
            Started by percma, Today, 02:00 AM
            0 responses
            2 views
            0 likes
            Last Post percma
            by percma
             
            Started by antrux, Yesterday, 06:26 PM
            0 responses
            4 views
            0 likes
            Last Post antrux
            by antrux
             
            Started by kevinenergy, Yesterday, 03:34 PM
            0 responses
            16 views
            0 likes
            Last Post kevinenergy  
            Started by Bidder, Yesterday, 01:50 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Working...
            X