-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTutorial3.mq5
33 lines (27 loc) · 1.09 KB
/
Tutorial3.mq5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//+------------------------------------------------------------------+
//| Tutorial3.mq5 |
//| Copyright 2019, GeneticTrading |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, GeneticTrading"
#property link ""
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
// the whoel idea of this script is to explian boolean operator in metatrader 5
Alert(3>4);// false
Alert(4>3); //true
// there are four types of boolean operators
// >=
// <=
//!=
//==
//>
//<
bool less = 3<4; //example
Alert(less); // display
}
//+------------------------------------------------------------------+