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
No comments:
Post a Comment