I trade from work and during my commute using my iPhone. Don't laugh, Darvas traded with telegrams! I find that I actually do very well if I'm not watching the market. I have my charts emailed to me whenever a trigger occurs (new swing hi/low for example).
I'd like to have my indicator save my image as a jpeg to a specific directory on my pc, I have tomcat running to serve it up over HTTP. Then I can check my chart real time any time I want without waiting for a trigger to send an email.
Any ideas on how to do this? I'm using this to email the chart, I got it from a forum, I don't know .NET:
I can post my email indicator if anyone is interested.
Cunparis, yes it can be done. I had an auto screen saver working that would periodically capture all my trading screens. I stop using it because it was capturing too many forums in lull periods. LOL. I will try to dig it out for you after the close.
I use Jaadu remote desktop for iPhone. It works great. Well almost. There is no way to middle click so I use AutoHotKey. There is no way to scroll the DOM either. I haven't got a solution for that one.
But I can't leave remote desktop connected all the time. I just want something where I can refresh a webpage and see my chart. Just one.
TAJTrades - I want to save just the chart and not all the desktop because I need the file to be very small so I don't use up my bandwidth limit on the iPhone.
Does anyone know the code to bring "Focus" to a specific chart within an NT Indicator. Say I want to make the 5 Min chart the active chart and then get the get the location of the Form on the screen? That would solve an issue for cunparis and myself.
Screen If you have a multiple screen setup you must specify which or all screens to capture the image as will as the the BitsPerPixel.
using (Bitmap captured = new Bitmap(bounds.Width, bounds.Height, format))
using (Graphics gdi = Graphics.FromImage(captured))
Bounds will tell the indicator to draw a rectangle and then you capture that area to create the image. Once you have captured the image then you can draw on the image any additional information you would like.
So if you have a Static screen (never changes from day to day) then you can avoid bringing Focus to a specific Form and just capture the same rectangle. The rectangle can be any size you want to specify. If you are concerned about band width then you may choose to capture just a small part of the screen.
This would be an example of how you specify the file format.
What I have done is capture all the screens individually. Then manipulate the individual images and stack them vs having them side by side as is the Windows setup. I also replace the DOM with a blank rectangle and use that area to add additional notes to the image. It is very specific to what I wanted to accomplish and only works on the computer that it was written for. All this is done based upon the bar count for the fastest time frame therefor I capture every bar on every chart.
The advantage of bringing Focus to each Form before capturing would be that you would not be capturing this Big Mikes Trading website when the indicator fired the command to capture.
Forgot to add: If someone has already figured out how move from Form to Form and then do a check for the Period and Interval thereby knowing which Form to bring Focus to then it would be easy for me to convert my stuff for you. By doing this I can code an indicator that says: 1) Entry signal issued, 2) Capture the 5 Minute Chart, 3) save the chart. Then all that is left is mailing the Attachment.
Last edited by TAJTrades; September 25th, 2009 at 09:41 AM.
Here is a sample picked at random of my automated screen capture. It is the 3rd image captured on July 13, 2009. On the very bottom right corner you will see where I added the File Name to the Image on Top of the Slider Bar. The White rectangle is where I remove the DOM from the image.