Custom Screenshot + Push notification works fine when used Strategy tester

Back to topics list To post a new topic, please log in or register
avatar
5
bk_deepu 2015.06.15 00: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.


avatar
5
bk_deepu 2015.06.15 00:51 #
 

avatar
5
bk_deepu 2015.06.15 00: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);

}



avatar
Moderator
3419
GumRai 2015.06.15 02: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 

avatar
5
bk_deepu 2015.06.15 13: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.

avatar
5
bk_deepu 2015.06.15 13: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

Back to topics list  

To add comments, please log in or register