How to Make an MQL5 Indicator
About
Open the MQL5 editor
Create templete
Basic templete
Indicator sections:
Global variables
Other indicators needed
Plot properties
Where to place the indicator
How many plots will be addded to chart
Plot attributures
Inputs
Handle and buffers
Containers for other variables
OnInit{}
Handle
Map buffers
OnCalculate{}
Bypass
Optimize calculations
Copy buffers
Additional calculations
Done
How to create a MQL5 indicator
OnInit{}
This is the section to define codes that will be run only once, upon starting the indicator.