Download MetaTrader 5
To add comments, please log in or register
Read the interviews of the Automated Trading Championship participants
Deepak Bk
19
Deepak Bk 2015.06.14 22:45 

Hi All,

Below is the code which is capable of generating screenshot and push notification whenever the condition is TRUE, whereas the indicator works only during strategy Tester and NOT during LIVE market.

During LIVE market only Push Notification works but the Screenshots are not being saved.

Did any one noticed similar issue, can you please help me understand better.

Deepak Bk
19
Deepak Bk 2015.06.14 22:51  
Deepak Bk
19
Deepak Bk 2015.06.14 22:51  
extern string identification="Forex";
extern int size_x=1024;
extern int size_y=768;


if (Period()== 1)       TimePeriod = "1 MIN_";
   if (Period()== 5)       TimePeriod = "5 MIN_";
   if (Period()== 15)      TimePeriod = "15 MIN_";

{

            message =  StringConcatenate("Buy_",Symbol(),"_at_", TimePeriod);

            SendNotification(message);
      
            dir = StringConcatenate(identification,"\\",Symbol(),"\\",Period(),"\\",fYear(),fMonth(),fDay(),"\\");
   
   ScreenShot(
      StringConcatenate(dir,
                        identification,".",
                        Symbol(),".",
                        Period(),".",
                        fYear(),fMonth(),fDay(),".",
                        fHour(),fMinute(),fSeconds(),
                        ".gif"),size_x,size_y);

}


Keith Watford
Moderator
7862
Keith Watford 2015.06.15 00:07  

Are you checking the correct folder?

If I remember correctly files created in the strategy tester are saved in Tester\Files

Live chart they are saved in MQL4\Files 

Deepak Bk
19
Deepak Bk 2015.06.15 11:15  
GumRai:

Are you checking the correct folder?

If I remember correctly files created in the strategy tester are saved in Tester\Files

Live chart they are saved in MQL4\Files 

Hi GumRaj,

Could you please help with the complete path.

Deepak Bk
19
Deepak Bk 2015.06.15 11:17  
bk_deepu:

Hi GumRaj,

Could you please help with the complete path.

Hi GumRaj,


Thank you very much, with your help i got the folder. Peace

/
To add comments, please log in or register