Custom Screenshot + Push notification works fine when used Strategy tester

 

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.

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

}


 

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 

 
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.

 
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

Reason: