Hi! New to MT5, coming from Tradingview and ready for more power.
In TV, I can export the chart and I get the OHLC values , plus values for any indicators applied for my given timeframe in a nice neat CSV file.
How can I do the same with MT5? I went to file > save but this only gave me the OHLC values, plus another column at the end that I'm not sure what it is.
Thanks much! I'm sure this is a common / straightforward thing but not obvious, and Google wasn't yielding much actually.
To save OHLC values and indicator values to one file, you need to write MQL5 code.
Thanks Vladimir. But I'm guessing someone has written this code already somewhere, huh? Possibly many times over? Haha... but how to find?
When you say code, do you mean a "script" type of file? Please confirm, thanks. =)
It's funny, in TradingView this is just what you get when you save chart data by default. Seems obvious. I could see a checkbox option to add indicator data or exclude them....
Thanks!
Show an example of a csv file - for example, if there is only one indicator on the chart - MACD.
Attached. This is taken from TradingView.
It just has: time,O,H,L,C, and then indicator(s) value(s)
Thanks!
Attached. This is taken from TradingView.
It just has: time,O,H,L,C, and then indicator(s) value(s)
Thanks!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi! New to MT5, coming from Tradingview and ready for more power.
In TV, I can export the chart and I get the OHLC values, plus values for any indicators applied for my given timeframe in a nice neat CSV file.
How can I do the same with MT5? I went to file > save but this only gave me the OHLC values, plus another column at the end that I'm not sure what it is.
Thanks much! I'm sure this is a common / straightforward thing but not obvious, and Google wasn't yielding much actually.