-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path03_Predefined_Variabel.mq4
More file actions
27 lines (23 loc) · 1013 Bytes
/
03_Predefined_Variabel.mq4
File metadata and controls
27 lines (23 loc) · 1013 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
//+------------------------------------------------------------------+
//| 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(){
// Ask adalah predefined variable yang bisa mengakses harga
// terendah saat ini dari suatu pair.
double askPrice = Ask;
Alert("Harga terendah saat ini : ", askPrice);
int jumlahDigitPair = Digits;
Alert("Jumlah digit pair ini adalah ", jumlahDigitPair);
}
/*
Predefined Variabel adalah variabel yang sudah dibuatkan
secara default pada bahasa MQL4.
Contoh : Ask, Bars, Bid, Close, Digits, High, Low, Open,
Point, Time, Volume
*/