Just add it at the beginning of your ".mq4" source code file and recompile. Example ...
#property copyright "Copyright 2021, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict
However, you may get several new errors and warnings which you will need to fix. Make it a habit to always fix the warnings too. Don't ignore them.
Boga Chander: Can anyone help me how to use the #property strict function while writing a code.
-
Help you with what? You just insert it at the top of your code.
-
Always use strict. Fixing the warnings will save you hours of debugging, but you must understand the differences.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello coders,
Can anyone help me how to use the #property strict function while writing a code.
Much appreciated,