์ค๋ช
# ๋ฐฑํ ์คํธ OHLC ๋ด๋ณด๋ด๊ธฐ ๋๊ตฌ
**๋ชจ๋ ๋ฐฑํ ์คํธ์์ OHLC ๋ฐ์ดํฐ๋ฅผ CSV๋ก ๋ด๋ณด๋ด์ธ์.** Excel, Python, R ๋๋ ๊ธฐํ ๋ถ์ ๋๊ตฌ๋ก ๋ฐฑํ ์คํธ ๊ฒฐ๊ณผ๋ฅผ ์ธ๋ถ์์ ๋ถ์ํ ์ ์์ต๋๋ค.
## ๐น ๊ธฐ๋ฅ ์๊ฐ
์ด cBot์ ๋ฐฑํ ์คํธ์์ Open, High, Low, Close (OHLC) ๋ฐ ๊ฑฐ๋๋ ๋ฐ์ดํฐ๋ฅผ ์ง์ CSV ํ์ผ๋ก ๋ด๋ณด๋ ๋๋ค. ๋ ์ด์ ์๋ ๋ณต์ฌ๋ ์ ํ๋ ๋ฐ์ดํฐ ๋ด๋ณด๋ด๊ธฐ๊ฐ ํ์ ์์ต๋๋ค.
## ๐น ์ฃผ์ ํน์ง
โ **OHLC ๋ฐ์ดํฐ ๋ด๋ณด๋ด๊ธฐ** โ ํ์์คํฌํ, ์๊ฐ, ๊ณ ๊ฐ, ์ ๊ฐ, ์ข ๊ฐ, ๊ฑฐ๋๋
โ **๋ชจ๋ ์ฐจํธ ์ ํ ์ง์** โ ์บ๋ค(M1๋ถํฐ ์๊ฐ๊น์ง), ๋ ์ฝ(๋ชจ๋ ๋ฒฝ๋ ํฌ๊ธฐ), ํฑ, ๋ฒ์, ๊ฑฐ๋๋, ํฌ์ธํธ & ํผ๊ฒจ, ์นด๊ธฐ
โ **์ค์ ๊ฐ๋ฅ** โ ํ์ผ ์ ๋์ฌ, ๊ตฌ๋ถ์(์ผํ ๋๋ ์ธ๋ฏธ์ฝ๋ก ), ์์์ ํ์
โ **์๋ ํ์ผ ์ด๋ฆ ์ง์ ** โ ์ฌ๋ณผ๊ณผ ํ์์คํฌํ๊ฐ ํฌํจ๋ ๊ณ ์ ํ ํ์ผ๋ช
โ **์ฃผ๊ธฐ์ ์ ์ฅ** โ 1000๊ฐ ๋ฐ๋ง๋ค ์ ์ฅ(๋ฐ์ดํฐ ์์ค ๋ฐฉ์ง)
โ **๊น๋ํ CSV ํ์** โ ์ธ๋ถ ๋ถ์์ ์ ํฉ
โ **ํน๋ณ ๊ถํ ๋ถํ์** โ ์์ ํ๊ฒ ์ฌ์ฉ ๊ฐ๋ฅ, ์์คํ ์ ๊ทผ ์์
## ๐น ์ ํ์ํ๊ฐ์
โข cTrader๋ ๊ธฐ๋ณธ์ ์ผ๋ก OHLC ๋ฐ์ดํฐ๋ฅผ ๋ด๋ณด๋ด์ง ์์ โ ์ด ๋๊ตฌ๊ฐ ํด๊ฒฐํฉ๋๋ค
โข Excel, Python, R ๋๋ MATLAB์์ ๋ฐฑํ ์คํธ ๋ฐ์ดํฐ ๋ถ์ ๊ฐ๋ฅ
โข ์ ๋ต์ ๋ํ ๋ง์ถค ํต๊ณ ๋ถ์ ์ํ
โข ๋ฐฑํ ์คํธ ๋ฐ์ดํฐ์ ์๊ตฌ ๊ธฐ๋ก ์ ์ง
โข ์ธ๋ถ ๋๊ตฌ๋ก ์ ๋ต ๊ฒ์ฆ
## ๐น ์ฌ์ฉ ๋ฐฉ๋ฒ
1. ์ด cBot์ ์ํ๋ ์ฐจํธ์ ์ถ๊ฐํ์ธ์
2. ํ์ผ ์ ๋์ฌ์ ๊ตฌ๋ถ์ ์ค์ (์ ํ ์ฌํญ)
3. ๋ฐฑํ ์คํธ๋ฅผ ์ ์์ ์ผ๋ก ์คํํ์ธ์
4. cBot ๋ฐ์ดํฐ ํด๋์์ CSV ํ์ผ์ ์ฐพ์ผ์ธ์:
`Documents\cAlgo\Data\cBots\BacktestOHLCExporter\`
## ๐น ์ถ๋ ฅ ํ์
```csv
Timestamp,Open,High,Low,Close,Volume
2025-06-01 00:00:00,1.08950,1.08960,1.08940,1.08955,1245
...
## ๐น ์ค์
| ๋งค๊ฐ๋ณ์ | ๊ธฐ๋ณธ๊ฐ | ์ค๋ช |
|-----------|---------|-------------|
| ํ์ผ ์ ๋์ฌ | OHLC_Backtest | ํ์ผ ์ด๋ฆ ์ ๋์ฌ |
| ๊ตฌ๋ถ์ | , | CSV ๊ตฌ๋ถ์ (์ผํ ๋๋ ์ธ๋ฏธ์ฝ๋ก ) |
| ์์์ ํ์ | F5 | ์์์ ์๋ฆฌ์ |
| ํค๋ ํฌํจ | True | ์ด ํค๋ ํฌํจ ์ฌ๋ถ |
โ ๏ธ **๋ฉด์ฑ ์กฐํญ**: ๊ฑฐ๋์๋ ์์ค ์ํ์ด ๋ฐ๋ฆ ๋๋ค. ์ด ๋๊ตฌ๋ ์ธ๋ถ ๋ถ์์ ์ํ ๋ฐ์ดํฐ ๋ด๋ณด๋ด๊ธฐ์ฉ์ ๋๋ค. ๊ณผ๊ฑฐ ์ฑ๊ณผ๊ฐ ๋ฏธ๋ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์ฅํ์ง ์์ต๋๋ค.
๐ **์ง๋ฌธ์ด๋ ๊ธฐ๋ฅ ์์ฒญ์ด ์์ผ์ ๊ฐ์?** cTrader ์คํ ์ด๋ฅผ ํตํด ์ฐ๋ฝํด ์ฃผ์ธ์.
**ํ๋ณตํ ๋ฐฑํ ์คํ ๋์ธ์! โ CapitalMente**
์์ฝ
Key features include configurable file prefix, CSV separator (comma or semicolon), decimal formatting, and automatic unique file naming with symbol and timestamp. The bot saves data periodically every 1000 bars to prevent data loss. It operates without requiring special system permissions, ensuring safe usage.
To use, add the cBot to any chart, optionally configure settings, run the backtest, and retrieve the CSV file from the designated cBot data folder. This tool addresses the lack of native OHLC export in cTrader, enabling users to keep permanent backtest records and perform custom statistical or validation analyses externally.