Algorithmic Trading in MT4 for Complete Beginners Flashcards
What are the three types of programs you can create with MetaEditor?
- Expert Advisors
- Indicators
- Scripts
What is the comment text for MQL4?
//
MQL4 - Built in function for creating messages on the screen?
Alert()
MQL4 - 6 main types of variable by variable name?
- int
- double
- string
- bool
- color
- datetime
MQL4 - Create and set a variable
int A = 10;
MQL4 - Equal and Not Equal To
== and !=
MQL4 - Three parts of while loop and example
- Statement of while
- Expression is checked to see if it is false
- Body of text is executed
MQL4 - Muti-Line Comments symbols
Start: /*
End: */
MQL4 - Write a for loop
for(int i=0; i<5; i++)
{
Alert(“Hello”);
}
MQL4 - Variable for current bid price in MT4
Bid
MQL4 - Write an if/else statement
if (Bid < level) { Alert("Low Level") } else { Alert("High Level") }
MQL4 - Statement used between if and else statements?
Else If
MQL4 - Statement and variable needed to have user inputs?
#property script_show_inputs extern (variable declaration)
MQL4 - How do you find help for a function?
Highlight and hit F1
MQL4 - How to delay a function?
Sleep()
- In milliseconds