You can access Jim Dandy's MQL4 youtube course here for free. He also has a website with videos here and here. These are my notes of lesson 2:
Extern
Extern
- outside of the start function
- any function can see these extern values
- extern = external settings -> user can see when moving the EA on a chart
- after extern any type of data constant, description and value
Types of data constants
- int = integer = whole number
- bool = boolean = true/false -> e.g. is trading time or hedging allowed
- double = number with decimal point
- string = string of text; text in quotation marks; e.g. put the name of the EA on the screen
- color -> e.g. arrow color; e.g. = Green (capital letter)
- datetime = number of seconds that have passed since january 1st 1970 -> specify time; determined by what time the last tick comes in
No comments:
Post a Comment