-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path09_Relational_Operation.mq4
32 lines (27 loc) · 1.06 KB
/
09_Relational_Operation.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
//+------------------------------------------------------------------+
//| 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(){
Alert("");
// Contoh penggunaan relational operation
double stopLossPrice = Ask;
double bidPrice = Bid;
Alert(bidPrice);
Alert(stopLossPrice);
Alert(bidPrice <= stopLossPrice);
}
/*
relational operator (perbandingan) dalam bahasa MQL4
== True, if x is equal to y (x == y)
!= True, if x is not equal to y (x != y)
< True, if x is less than y (x < y)
> True, if x is more than y (x > y)
<= True, if x is equal to or less than y (x <= y)
>= True, if x is equal to or more than y (x >= y)
*/