//+------------------------------------------------------------------+
//|                                                    tutorial11.mq4 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                            https://triantoadi.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://triantoadi.com"
#property version   "1.00"
#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
  int today = DayOfWeek();    // 0-Sunday,1,2,3,4,5,6
  switch(today)
  {
   case 1:
      Alert("Today is Monday -> BUY");
      break;
   case 3:
      Alert("Today is Tuesday -> SELL");
      break;
   default:
      Alert("The other day,do not trade !");
      break;
        
  }
  }