25.10.2016 Views

Expert Advisor Programming by Andrew R. Young

Expert Advisor Programming by Andrew R. Young

Expert Advisor Programming by Andrew R. Young

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Custom Indicators and Scripts<br />

Just like expert advisors and indicators, scripts use the init(), deinit() and start() functions.<br />

Remember that each function will only be run once – init() and start() when the script is started,<br />

and deinit() when it is removed. You can have one script attached to a chart at a time.<br />

MetaTrader comes with several sample scripts. All scripts are saved in the \experts\scripts<br />

directory.<br />

153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!