How to write code run file script when pressed button?
OnInit
if(ObjectFind(Button)<0) ObjectCreate(Button)
ObjectSet*(Whatever you want the Button to look like)
OnChartEvent
if(id==ObjectClick && sparam=Button)
<your script as a function>
Documentation on MQL5: List of MQL5 Functions
- www.mql5.com
Reads from the file of the CSV type a string of one of the formats: "YYYY.MM.DD HH:MM:SS", "YYYY.MM.DD" or "HH:MM:SS" - and converts it into a datetime value
Help me please. Thank you.