I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose? how should i define it? can you help me?
Kutluhan Yesilkaya :
I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose ? how should i define it? can you help me?
I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose ? how should i define it? can you help me?
If you only need one price - then 'iClose' will suffice. If you need to compare not only the 'Close' price, but for example the 'Open' price, then you need to use the 'CopyRates' function.
![Documentation on MQL5: Timeseries and Indicators Access / CopyRates Documentation on MQL5: Timeseries and Indicators Access / CopyRates](https://c.mql5.com/36/55/documentation-on-mql5-timeseries__2.png)
Documentation on MQL5: Timeseries and Indicators Access / CopyRates
- www.mql5.com
CopyRates - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Kutluhan Yesilkaya:
I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose? how should i define it? can you help me?
I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose? how should i define it? can you help me?
search for "new bar function" when a new bar is formed then you know the last bar has closed, there are plenty of examples around
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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