-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial12.mq4
More file actions
28 lines (22 loc) · 825 Bytes
/
Tutorial12.mq4
File metadata and controls
28 lines (22 loc) · 825 Bytes
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
//+------------------------------------------------------------------+
//| Tutorial12.mq5 |
//| Copyright 2019, GeneticTrading |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, GeneticTrading"
#property link "https://www.mql5.com"
#property version "1.00"
#property script_show_inputs
#property strict
void OnStart()
{
//---
int a = 10;
int b = 12;
int c = Addition(a,b);
Alert(" c =" , c);
}
int Addition(int value1, int value2){
return ( value1+ value2);
}
//+------------------------------------------------------------------+