Day_of_Week

Author: Yuriy Tokman
Miscellaneous
It issuies visual alerts to the screen
0 Views
0 Downloads
0 Favorites
Day_of_Week
//+------------------------------------------------------------------+
//|                                                  Day_of_Week.mq4 |
//|                                                     Yuriy Tokman |
//|                                            yuriytokman@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman"
#property link      "yuriytokman@gmail.com"
 
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
   Alert(GetDayOfWeek());
//----
   return(0);
  }
//+------------------------------------------------------------------+
string GetDayOfWeek() {
  int Day_Week = DayOfWeek();
  switch (Day_Week ) {
    case 0  : return("Âîêðåñåíüå");
    case 1  : return("Ïîíåäåëüíèê");
    case 2  : return("Âòîðíèê");
    case 3  : return("Ñðåäà");
    case 4  : return("×åòâåðã");
    case 5  : return("Ïÿòíèöà");
    case 6  : return("Ñóááîòà");    
    default : return("Unknown Operation");
  }
}

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---