//+------------------------------------------------------------------+ //| SnapShotonTrade.mq4 | //| Mark Chaudhary| //| | //| | //| This EA is based on Michal Rutka's SnapshotEA and creates a | //| screen shot whenever a trade is opened or closed. GIFs are | //| placed in experts/files/ subdirectory of your MetaTrader | //| instalation. | //+------------------------------------------------------------------+ bool tradeFlag=false; bool prevTradeFlag=false; int start(){ static datetime last_bar; if (OrdersTotal() > 0 ) tradeFlag=true; else tradeFlag=false; if (tradeFlag != prevTradeFlag){ prevTradeFlag=tradeFlag; MakeScreenShot(); } return(0); } string al0(int number, int digits){ // add leading zeros that the resulting string has 'digits' length. string result; result = DoubleToStr(number, 0); while(StringLen(result)