-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial5.mq5
More file actions
29 lines (23 loc) · 1.07 KB
/
Tutorial5.mq5
File metadata and controls
29 lines (23 loc) · 1.07 KB
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
//+------------------------------------------------------------------+
//| Tutorial5.mq5 |
//| Copyright 2019, GeneticTrading |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, GeneticTrading"
#property link ""
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//the whole idea of this scrip is to explian the while loop
Alert("stat of progrem ");
int counter =1 ; //the counter
while(counter <3 ){ // the loop condition
Alert(counter);
counter++;
}
Alert(" tghe loop has finished");
}
//+------------------------------------------------------------------+