2014-01-07

MQL4 - Lesson 5 - 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 5:


Diagnostic tool for EA
  • text in start function -> runs only when ticks are coming in
  • print ("start function has run") ->initialization function -> prints text in experts tab -> you can see whats going on in the background (which function has run e.g.) -> diagnostic tool

Make an indicator
  • custom indicator functions different from EAs
  • print from above into init, deinit and start function of the indicator
  • start function and init function runs; start function of an indicator runs when you drop it on a chart even if the market is closed
  • text is not removed of the chart when removing the indicator unless under deinit… Commen"" = nothing

Make a script
  • only the start function
  • it runs immediately if you put it on a chart and then ends immediatetely
  • #property show confirm 
    • asks you if you really want to attach the script to the chart
    • not part of the script, so no semicolon afterwards
  • #show_inputs: extern string text "" -> input text (Comment (text) in start function
Source

No comments:

Post a Comment