-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTutorial2.mq5
33 lines (24 loc) · 1.07 KB
/
Tutorial2.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
//+------------------------------------------------------------------+
//| Tutorial2.mq5 |
//| Copyright 2019, GeneticTrading |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, GeneticTrading"
#property link ""
#property version "1.00"
void OnStart()
{
// the whole idea here is to display data types
int myInt ;// datatype int
string mystring;// datatype string
bool myBool; // datatype boolean
double myDouble; // datatype double
myInt = 1; // instatation
mystring = "ckmdwidjwdwd"; // intialization
myBool = true;// initialization
myDouble = 10.323;// initialization
Alert( myInt);// display
Alert(mystring);// display
Alert(myBool); ;// display
Alert(myDouble); ;// display
}