Download MetaTrader 5

Custom Screenshot + Push notification works fine when used Strategy tester

To add comments, please log in or register
Deepak Bk
19
Deepak Bk  

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  
Deepak Bk
19
Deepak Bk  
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
10569
Keith Watford  

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  
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  
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