MT5 · Compiler warnings
MT5 55 · 'OnInit' function is not used in scripts | YI GOLD
Official meaning
'OnInit' function is not used in scripts
Possible causes · YI GOLD suggestions
Determine the cause from the official meaning, the triggering function and terminal logs.
Troubleshooting · YI GOLD suggestions
Review the warning line, types, initialization and return values in MetaEditor. Evaluate runtime consequences and correct the warning even when compilation succeeds.