-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02_Variabel_dan_Tipe_data.mq4
36 lines (29 loc) · 1.1 KB
/
02_Variabel_dan_Tipe_data.mq4
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
34
35
36
//+------------------------------------------------------------------+
//| Test.mq4 |
//| Copyright 2021, Maulana Aji Wicaksono |
//| https://www.instagram.com/aw.design30 |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021, Maulana Aji Wicaksono"
#property link "https://www.instagram.com/aw.design30"
#property version "1.00"
#property strict
void OnStart(){
// Variabel bernama 'harga' yang menyimpan nilai 1817.63
// bertipe data float
float harga = 1817.63;
// Data integer
int pip = 50;
// Data boolean
bool Data_Bool = true;
// Data string
string Congrats = "Selamat, trading anda profit";
Alert(Congrats);
// Membuat pesan pop-up menampilkan harga
Alert("Harga yang anda masukan: ", harga);
Alert("Total selisih harga yang anda dapatkan: ", pip);
Alert("Data boolean: ", Data_Bool);
}
/*
Tipe data dalam bahasa MQL4
Integer, Float, Boolean, String, Color, Datetime, Enum
*/