2014-01-05

MQL4 - Lesson 4 - Notes

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 4:

Make an EA 
  • name: hello universe
  • functions: initialize, deinitialize, start
  • function -> F1 -> helpfile
  • start function ->  function: comment ("text"); only shown when a tick comes in -> when the comment is in the initialize function it is shown when an EA starts!
  • Ctrl+Z undo
  • Crtl+y redo
  • function: comment ("text"+Period()) <-Period shows opened Chart
  • function: comment ("text"+Period+Symbol()) <-Shows the Symbol
  • Ctrl+G get rid of the grid
  • F4 -> help -> Window functions
  • \n -> new line for e.g. long comments
    • Comment("…"+
    • "\n…"
  • be careful when you work on an ea which is attached to a chart at the same time
  • function: comment ("text"+Time[0]) ->Time in seconds since 1970 that has passed; last known server time of the broker
  • convert this seconds into a string: Comment("TimetoStr(Time…)

No comments:

Post a Comment