How to make a Time Lapse Video/Animation

 
Hello all,

For the "trader who has everything...". Want to replay the days activity like Time Lapse Photography - and see the whole day's activity in a few minutes?

1. Use the attached indicator (barebones here, add the features you want....)
2. Compile the screenshots into an animated .GIF with this: http://www.neomesh.com/content/view/63/70/
(this is trialware, your should buy the full copy) This software allows you to select all of the files in the folder and since they are sequentialy numbered, they will complie in the correct order.

You can set the frame rate with the full copy for how often the frames increment (i.e. how fast/slow the playback is).

Great for getting a feel on how the market makes micro-step movement.... something you just can't get a feel for with OHLC or without staring at the screen the whole day.

After the compiled file is created, open it with Internet Explorer - don't double-click it. That way the animation should playback (not just the first frame displayed).

Here is where you'll get info on the ScreenShot command: "MQL4: ScreenShot"

Enjoy!
-charliev

//+------------------------------------------------------------------+
//|                                                   ScreenShot.mq4 |
//|                        Copyright © 2006, Charles W. Van Dien III |
//|                                    mailto: vandien@bellsouth.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Charles W. Van Dien III"
#property link      "mailto: vandien@bellsouth.net"

#property indicator_chart_window
static int count=-1;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
   count++;
   string framecount="000000"+count;
   framecount=StringSubstr(framecount,StringLen(framecount)-6,6);
   string filename=Symbol()+framecount+".gif";
   ScreenShot(filename,640,480,0,4,0);
//----
   return(0);
  }
//+------------------------------------------------------------------+









 
Such slide-show is very helpful when testing
 
Such slide-show is very helpful when testing


Slawa,

Thanks for your help with the ScreenShot function.

-charliev