help on 2macrossover http51

 
hello everyone

how to add the following to the 2ma cross over



1.how to send text messages to a webpage using http51


Idea is to call a web page with data instead of sending mail like http://www.xyz.com/secret/location/trade_signal.php



2 sending text messages with time control like

start hour
end hour

from start hour and end hour time only messages will be sent


thanks
Files:
 
  1. how to send text messages to a webpage using http51
    Did you try searching?
  2. from start hour and end hour time only messages will be sent
    int         DOW = TimeDayOfWeek(now),   /* https://forum.mql4.com/33851
    // reports DayOfWeek() always returns 5 in the tester. No refresh?*/
                DayMask = 1 << DOW;
    //                      #define DAYS_MAX    0x3F    // 1<<6-1=63. (S-F)
    //extern int      Days.Mask                   =  55;      // Not Wed
    if (Days.Mask & DayMask == 0){  EA.status="Day="+DOW;       return(0); }
    //extern double   TradeHr.UTC.Start           =   7.3;    // London-1
    //extern double   TradeHr.UTC.End             =  12.9;    // NY open
    int secStart    = 3600*TradeHr.UTC.Start,
        secEnd      = 3600*TradeHr.UTC.End,
        hrBeg   = (now-secStart+86400)%86400,
        hrEnd   = (now-secEnd  +86400)%86400;
    if (hrBeg > hrEnd){     EA.status="HR"+DoubleToStr(hrBeg/3600.-24,2);
                                                                return(0);  }
Reason: