v0.4.0 · BETA
COSMOTEC v5 데스크톱 봇
암호화폐 (Binance · Bybit · Upbit · Bithumb) + 한국주식 (키움 REST API) + 미국주식 (KIS) 자동매매 도구.
Windows 10 이상에서 실행되는 PySide6 기반 네이티브 앱.
시스템 요구사항
- OS · Windows 10/11 (x64)
- RAM · 4GB 이상 권장 (8GB+ 추천)
- 디스크 · 설치 후 약 250MB
- 네트워크 · 상시 인터넷 연결 필요
- 해상도 · 1280×720 이상
설치 가이드
- 다운로드 — 위 버튼 클릭 → COSMOTEC_v5_Setup_0.4.0.exe
- 실행 — 다운로드한 .exe 더블클릭. Windows Defender 경고 시 [추가 정보] → [실행] 선택
- 설치 — 한국어 선택 → 설치 마법사 진행 (기본 경로 권장)
- 로그인 — cosmotec.xyz 가입 시 사용한 이메일 + 비밀번호 입력
- API 키 등록 — 암호화폐 거래소 / 키움(REST) / KIS 발급 키를 [설정] 탭에서 입력 (DPAPI 로 로컬 암호화 저장)
- 전략 활성화 — [전략] 탭에서 인스턴스 생성 → [모니터] 탭에서 자동 매매 시작
기기 관리
- 플랜별 기기 한도 · BASIC 1대 · PRO/PREMIUM 2대 · ADMIN 10대
- PC 포맷 / 메인보드 교체 시 · 기존 기기 해지 후 재로그인
- → 내 기기 관리
지원 거래소 (전 시장 제공)
- 암호화폐 · Binance · Bybit · Upbit · Bithumb (선물 / 현물 + 지표 + 자동매매 + 모니터)
- 키움증권 (REST API) · 국내 주식 (조건검색 + 지표 + 자동매수 + 모니터)
- 한국투자증권 (US) · 미국 주식 (Top Gainer / Loser / Volume + 지표)
- ※ 암호화폐 · 한국주식 · 미국주식 모두 현재 제공됩니다.
① API 키 등록 가이드
v5 봇은 가입자 본인의 거래소 API 키를 사용하여 매매를 실행합니다.
API 키는 DPAPI + HMAC 으로 로컬 PC 에서만 복호화되도록 암호화 저장됩니다 (서버 전송 X).
키움증권 (국내 주식 · REST API)
- 키움 REST API 개발자 포털 접속 → 로그인 (키움 계좌 + 인증 필요)
- API 사용 신청 → 사용할 계좌 지정 → 승인 시 앱키 (App Key) + 시크릿키 (Secret Key) 발급
- v5 앱 → [설정] 탭 → 키움증권 카드 → 앱키 / 시크릿키 / 계좌번호 입력 → [저장]
- 저장하면 v5 가 자동으로 REST 토큰을 발급받아 연결을 검증합니다 (별도 인증창 없음)
💡 v5 는 키움 REST API (HTTPS) 만 사용합니다 — 구형 OpenAPI+ / OCX 모듈, 본사 인증창, HTS 상시 실행이 필요 없습니다. 토큰은 약 24시간 유효하며 만료 전 자동 갱신됩니다.
KIS (한국투자증권 — 미국 주식)
- KIS 개발자센터 (
apiportal.koreainvestment.com) 접속 → 회원가입
- API 신청 → 실전투자 / 모의투자 선택 → APP_KEY + APP_SECRET 발급
- v5 앱 → [설정] 탭 → KIS-US 섹션 → APP_KEY / APP_SECRET / 계좌번호 입력
- [연결 테스트] 클릭 → ✅ 통과 확인
💡 KIS 토큰은 자동 갱신 (12시간 expiry). 봇 재시작 없이 연속 사용 가능.
암호화폐 거래소 (Binance · Bybit · Upbit · Bithumb)
- 각 거래소 → API 관리 → 신규 API 키 발급
- 출금 권한 절대 OFF, 매매 + 잔고 조회 권한만 ON
- ★IP 화이트리스트는 두 IP 를 동시에 등록 — ① 회원님 PC 의 공인 IP (예:
123.45.67.89, 자동매매 필수) + ② COTRADING 서버 IP 13.209.224.50 (저널 자동 백필 필수). IP 가 안 맞으면 거래소가 API 를 차단해 자동매매가 작동하지 않습니다.
- v5 앱 → [설정] 탭 → 거래소별 섹션 → API_KEY / SECRET 입력 → [연결 테스트]
⚠ 출금 권한 활성화 금지. 키 유출 시 자산 즉시 인출 위험. v5 봇은 매매만 수행.
↑ 목차로
② 스캐너 사용법
v5 의 매매 흐름은 두 종류 — 종목 매매 와 조건식 매매.
1) 종목 매매 (시총 상위 화이트리스트)
코스피 + 코스닥 시총 상위 50+50 종목 (총 100) 을 1분봉 단위로 폴링하며 지표 신호 발생 시 매매.
- [종목 매매] 탭 → [전략 인스턴스 생성] 클릭
- 전략명 · 지표 (Cosmotec / Yoon V2 / YSW V3) · 매매 방향 (LONG / SHORT) 선택
- 1회 매수 수량 + 최대 동시 보유 + TP/SL/TS 설정
- [저장] → [활성화] → 봇이 자동으로 100 종목 폴링 시작
💡 화이트리스트는 매일 09:00 자동 갱신 (FinanceDataReader + 3중 fallback). 거래정지 종목 자동 제외.
2) 조건식 매매 (키움 조건검색식 연동)
HTS 에 등록한 키움 조건검색식 (예: "거래량 급증 + 상한가 근접") 을 실시간 모니터링.
- 키움 영웅문 → 조건검색 → 본인 조건식 생성 + 서버 저장
- v5 [조건식 매매] 탭 → [조건식 목록 새로고침] → 본인 조건식 출현 확인
- 조건식 선택 → 매매 방향 + 지표 + TP/SL/TS 설정 → [활성화]
- 조건식 진입 종목 즉시 (실시간) → 지표 ON 인 경우 평가 → 매수 트리거
⚠ 키움 조건검색은 동시 최대 10개. 봇 활성화 후 영웅문에서 동일 조건식 사용 시 충돌 가능.
지표 종류 (3종)
- Cosmotec (COTRADING2_V3) · LRC1 변화율(shift) 기반. 단기 추세 전환 포착.
- Yoon V2 (SuperTrend + VWMA) · 추세 추종 + 거래량 가중. 안정적 추세 진입.
- YSW V3 (True Reversal Slope) · LRC1 lowest/highest 반등률 기반. 바닥/천장 반전 포착.
※ 지표 파라미터 (LRC 기간 · 임계값 · cooldown 등) 는 각 카드에서 개별 설정 가능. 기본값 권장.
↑ 목차로
③ 차트 사용법
v5 차트는 TradingView Lightweight Charts 기반 — 캔들 + 지표 라인 + 매수/매도 마커를 시각화.
차트 진입 방법
- 모니터 탭 → 포지션 행 클릭 → 해당 종목 차트 자동 표시
- [종목 분석] 버튼 → 종목 코드 입력 → 4탭 모달 (차트/뉴스/공시/재무)
- [조건식 매매] 탭 → 종목 행 클릭 → 차트 + 지표 평가 결과 표시
차트 컨트롤
- 타임프레임 · 1m / 3m / 5m / 15m / 30m / 1h / 4h / 1d (드롭다운)
- 지표 선택 · 차트 상단 드롭다운으로 Cosmotec / Yoon V2 / YSW V3 즉시 전환
- 마우스 드래그 · 좌우 = 시간 이동, 휠 = 확대/축소
- 크로스헤어 · 마우스 위치의 가격 + 시간 표시
- 자동 새로고침 · 1초 폴링 (실시간 캔들 업데이트)
표시 요소
- 캔들 · 양봉 녹색 / 음봉 빨강
- LRC 라인 · LRC1 (단기) · LRC200 / LRC400 / LRC600 (장기 추세선)
- 매수 마커 · ▲ 녹색 (BUY 신호) · 실 매수 시점
- 매도 마커 · ▼ 빨강 (SELL 신호) · 익절 / 손절 / 청산
- 지표 시그널 · 캔들 위 ● 도트 (지표 조건 충족 봉)
차트 + 매매 연계
차트에서 본 신호가 실제 매매와 일치하는지 검증하려면:
- 모니터 탭에서 매수 체결 발생
- 해당 행 클릭 → 차트 자동 진입
- 매수 시점에 ▲ 마커 + ● 지표 도트가 일치하는지 확인
- 불일치 시 = 지표 파라미터 재조정 또는 cooldown 조정 신호
★ 차트에서 전략 프리셋 만들기 (가상화폐 차트)
코딩 없이 차트의 롱/숏 신호를 직접 보면서 나만의 전략을 만들 수 있습니다. 가상화폐 차트 상단의 ⚙ 전략 프리셋 편집 패널을 사용하세요:
- 지표 선택 · Cosmotec(3중 LRC) / YSW Triple LRC / Pro V2 / Pro BB / LRC 중 선택
- 파라미터 조정 · len(주기) · threshold(민감도) 등을 스핀박스로 변경하면 차트의 ▲▼ 롱/숏 마커가 즉시 갱신됩니다 (실시간 미리보기 — 저장 전이라 안전).
- 반복 튜닝 · 신호가 너무 잦으면 주기를 늘리고, 신호를 놓치면 줄이면서 마커가 만족스러울 때까지 조정. [미리보기] 버튼으로 즉시 재계산도 가능.
- 이름 입력 → [프리셋 저장] · 저장 즉시 스캐너의 '전략 프리셋' 목록에 나타납니다.
- 스캐너에서 그 프리셋 선택 + TP/SL/TS/레버리지 설정 → 매매 시작.
기존 프리셋을 차트 상단 [전략] 콤보에서 불러오면 편집기에 자동으로 채워져 이어서 튜닝할 수 있습니다.
💡 팁: 3중 LRC(Cosmotec)는 len1 · len2 · len3 을 서로 다르게 줘야 교차 신호가 의미를 가집니다 (예: 10 / 50 / 100). 셋을 같은 값으로 두면 세 선이 겹쳐 신호가 사실상 노이즈가 됩니다.
ℹ 인라인 편집기는 '신호(지표 · 파라미터)' 정의 전용입니다. TP/SL/TS · 레버리지 · 방향 등 매매 설정은 스캐너에서 지정합니다. (현재 가상화폐 차트 우선 적용 — 증권 차트는 순차 적용 예정)
↑ 목차로
④ 자동 매매 설정 (TP / SL / TS)
익절 (TP — Take Profit)
- TP % · 진입가 대비 % (예: 2.0 = +2% 도달 시 전량 청산)
- 부분 익절 · 1차 TP 50% / 2차 TP 50% (각각 % 별도 설정)
- TP 비활성 · 0 입력 시 TP 작동 안 함 (TS 또는 SL 만 사용)
손절 (SL — Stop Loss)
- SL % · 진입가 대비 % (예: -1.5 = -1.5% 도달 시 즉시 청산)
- SL 가드 · SL = 0 인 경우 안전장치로 자동 -3% 적용 (회원님 요청 사양)
트레일링 스탑 (TS — Trailing Stop)
- TS 활성화 · 최고가 대비 일정 % 하락 시 청산 (수익 극대화)
- TS Trigger % · 진입가 대비 +X% 도달 후 TS 활성화 (조기 손실 방지)
- TS Step % · 최고가 대비 -Y% 하락 시 청산
매매 파라미터 (UI 설정)
- 1회 매수 수량 · 종목당 1회 진입 시 매수 수량 (주식 = 주, 코인 = 계약 수)
- 최대 동시 보유 · 봇이 동시에 보유 가능한 종목 수 (자금 관리)
- 재매수 cooldown · 청산 후 동일 종목 재진입 차단 시간 (기본 5분)
- SHORT 청산 매도만 · 키움 국내주식은 공매도 불가 → SHORT 신호 발생 시 보유 종목 청산만
⚠ 모든 파라미터는 [저장] 버튼 클릭 후 활성화. 저장 안 하면 적용 안 됨.
↑ 목차로
⑤ 모니터 탭 (포지션 관리)
현재 보유 중인 포지션 + 미체결 주문 + 실시간 P&L 을 통합 모니터링.
포지션 그리드
- 종목 · 코드 + 종목명 (클릭 시 차트 자동 진입)
- 방향 · LONG / SHORT
- 진입가 · 현재가 · 수익률 · 실시간 갱신 (5초 폴링)
- TP / SL / TS · 현재 설정값 표시
- [수동 청산] · 즉시 시장가 청산 (확인 다이얼로그)
주문 히스토리
- 당일 체결 내역 (시간 · 종목 · 방향 · 수량 · 가격 · P&L)
- CSV 다운로드 → 외부 저널 또는 세무 자료로 활용
봇 상태 표시
- 상단 도트 · 거래소별 연결 상태 (🟢 정상 / 🔴 오프라인)
- 잔고 칩 · KRW + USD 통합 잔고 + DAILY PNL
- 업데이트 칩 · 신버전 출시 시 자동 표시 → 클릭 시 1-click 업데이트
↑ 목차로
⑥ 자동 업데이트
v5 봇은 서버에서 manifest.json 을 폴링하여 신버전 출시를 자동 감지합니다.
- 봇 시작 시 manifest.json 폴링 (24h 마다)
- 신버전 발견 → 상단 [● 업데이트 사용 가능] 칩 표시
- 칩 클릭 → 업데이트 다이얼로그 → [지금 업데이트]
- Setup.exe 다운로드 → 자동 실행 (RestartReplace) → 봇 자동 재시작
💡 강제 업데이트 (forced=true) 시 [닫기] 버튼 없음 → 반드시 업데이트해야 진입 가능. 보안/Critical fix 배포 시 사용.
⚠ 업데이트 실패 시 [수동 다운로드] → 브라우저에서 Setup.exe 직접 받아 실행.
↑ 목차로
⑦ 트러블슈팅
"로그인 실패" 메시지
- cosmotec.xyz 가입 이메일/비밀번호 정확히 입력 (대소문자 구분)
- 구독 만료 시 → [구독 갱신] 후 재로그인
- 기기 한도 초과 시 → 웹 → [내 기기 관리] 에서 기존 기기 해지
키움 REST API 연결 안 됨
- 앱키 / 시크릿키 / 계좌번호를 정확히 입력했는지 확인 (앞뒤 공백 X)
- 키움 REST API 사용 신청 승인 완료 여부 확인 (개발자 포털)
- 발급 키가 실전 투자용인지 확인 (v5 는 실전 도메인 연결)
- [설정] 탭에서 [연결] 재시도 → REST 토큰 자동 재발급
KIS 토큰 오류 (401 Unauthorized)
- APP_KEY / APP_SECRET 정확히 복붙 (앞뒤 공백 X)
- 실전/모의 계좌 일치 확인 (모의 키로 실전 호출 X)
- 봇 재시작 → 토큰 자동 재발급
차트 안 나옴 / 데이터 0개
- 인터넷 연결 확인
- 해당 종목 거래정지 여부 확인
- 봇 재시작 (캐시 초기화)
봇이 매매 안 함
- 전략 인스턴스가 활성화 상태인지 확인 ([전략] 탭)
- 지표 ON / 매매 방향 / 1회 매수 수량 정상 설정 확인
- 잔고 부족 / API 키 만료 확인 ([설정] 탭)
- 로그 파일 확인 —
%LOCALAPPDATA%\COSMOTEC v5\logs\
↑ 목차로
⑧ 자주 묻는 질문 (FAQ)
v5 봇은 무료인가요?
현재 BETA 기간 동안 GOLD 가입자에게 무료로 제공됩니다.
정식 출시 시 별도 안내드립니다.
PC 를 포맷하면 어떻게 되나요?
기존 기기는 해지 후 새 PC 에서 로그인 가능.
웹 → [내 기기 관리] 에서 기존 기기 해지 → 새 PC 에서 봇 설치 → 로그인.
API 키는 어디에 저장되나요?
로컬 PC 만 (DPAPI + HMAC 암호화). 서버 전송 X.
PC 분실 시 즉시 거래소에서 API 키 폐기 권장.
백테스트 기능이 있나요?
현재 미지원이며 추후 추가 검토 중입니다.
현재는 실 매매로 검증해 주세요 (소량 자금 권장).
여러 전략을 동시 실행 가능한가요?
가능. [전략] 탭에서 인스턴스 여러 개 생성 → 각각 다른 지표 / 방향 / 종목 풀.
단, 최대 동시 보유 합산 = 자금 한도 이내로 설정 필수.
어떤 거래소를 지원하나요?
암호화폐 (Binance · Bybit · Upbit · Bithumb) + 한국주식 (키움 REST API) + 미국주식 (KIS) 을 모두 지원합니다.
거래소별 API 키를 [설정] 탭에 등록하면 즉시 사용 가능합니다. 거래소 API 키에는
회원님 PC 의 공인 IP + COTRADING 서버 IP 13.209.224.50 를 함께 화이트리스트에 등록하세요 (저널 자동 백필 포함).
로그는 어디에 저장되나요?
%LOCALAPPDATA%\COSMOTEC v5\logs\ — 일자별 .log 파일.
장애 문의 시 해당 로그 첨부 요청드립니다.
봇이 갑자기 종료되었어요
로그 파일 (%LOCALAPPDATA%\COSMOTEC v5\logs\) 확인 후
이메일 (cosmotec01@gmail.com) 또는 텔레그램으로 문의.
크래시 dump 도 함께 첨부 부탁드립니다.
v5 와 웹 (cosmotec.xyz) 의 차이는?
웹 = 신호 알림 + V2 스캐너 (텔레그램 알림 위주).
v5 데스크탑 = 실제 매매 실행 + 차트 + 모니터 (PC 24h 가동 필요).
두 가지를 함께 사용하는 가입자 다수.
↑ 목차로
v0.4.0 · BETA
COSMOTEC v5 Desktop Bot
Auto-trading tool for crypto (Binance · Bybit · Upbit · Bithumb) + Korean stocks (Kiwoom REST API) + US stocks (KIS).
A native PySide6 app that runs on Windows 10 or later.
System Requirements
- OS · Windows 10/11 (x64)
- RAM · 4GB or more recommended (8GB+ ideal)
- Disk · approx. 250MB after installation
- Network · Always-on internet connection required
- Resolution · 1280×720 or higher
Installation Guide
- Download — Click the button above → COSMOTEC_v5_Setup_0.4.0.exe
- Run — Double-click the downloaded .exe. If Windows Defender warns, choose [More info] → [Run anyway]
- Install — Select language → follow the setup wizard (default path recommended)
- Log in — Enter the email + password you used to register at cosmotec.xyz
- Register API keys — Enter your crypto-exchange / Kiwoom (REST) / KIS keys in the [Settings] tab (stored locally, encrypted with DPAPI)
- Activate strategy — Create an instance in the [Strategy] tab → start auto-trading from the [Monitor] tab
Device Management
- Device limits per plan · BASIC 1 · PRO/PREMIUM 2 · ADMIN 10
- When formatting your PC / replacing the motherboard · Deregister the old device, then log in again
- → Manage My Devices
Supported Exchanges (All Markets Live)
- Crypto · Binance · Bybit · Upbit · Bithumb (futures / spot + indicators + auto-trading + monitor)
- Kiwoom Securities (REST API) · Korean stocks (condition search + indicators + auto-buy + monitor)
- Korea Investment & Securities (US) · US stocks (Top Gainer / Loser / Volume + indicators)
- ※ Crypto, Korean stocks, and US stocks are all available now.
① API Key Registration Guide
The v5 bot executes trades using your own exchange API keys.
Keys are stored encrypted with DPAPI + HMAC so they can only be decrypted on your local PC (never sent to the server).
Kiwoom Securities (Korean stocks · REST API)
- Go to the Kiwoom REST API developer portal → log in (needs a Kiwoom account + auth)
- Apply for API usage → specify the account → on approval you receive an App Key + Secret Key
- v5 app → [Settings] tab → Kiwoom card → enter App Key / Secret Key / account number → [Save]
- On save, v5 auto-issues the REST token and validates the connection (no separate login popup)
💡 v5 uses only the Kiwoom REST API (HTTPS) — no legacy OpenAPI+ / OCX module, no broker login popup, no always-on HTS. The token lasts ~24h and auto-refreshes before expiry.
KIS (Korea Investment & Securities — US stocks)
- Go to the KIS Developer Center (
apiportal.koreainvestment.com) → sign up
- Apply for the API → select live / paper trading → issue your APP_KEY + APP_SECRET
- v5 app → [Settings] tab → KIS-US section → enter APP_KEY / APP_SECRET / account number
- Click [Connection Test] → confirm ✅ pass
💡 KIS tokens are auto-refreshed (12-hour expiry). You can keep using the bot without restarting.
Crypto Exchanges (Binance · Bybit · Upbit · Bithumb)
- Each exchange → API Management → issue a new API key
- Always turn OFF withdrawal permission; enable only trading + balance-inquiry permissions
- ★Register BOTH IPs in the whitelist — ① your PC's public IP (e.g.
123.45.67.89, required for auto-trading) + ② the COTRADING server IP 13.209.224.50 (required for journal auto-backfill). A wrong IP makes the exchange block the API and auto-trading won't work.
- v5 app → [Settings] tab → per-exchange section → enter API_KEY / SECRET → [Connection Test]
⚠ Do not enable withdrawal permission. If your key leaks, assets could be withdrawn immediately. The v5 bot only trades.
↑ Back to Contents
② Using the Scanner
v5 has two trading flows — Symbol Trading and Condition Trading.
1) Symbol Trading (top-market-cap whitelist)
Polls the top 50+50 stocks by market cap on KOSPI + KOSDAQ (100 total) on 1-minute candles and trades when an indicator signal fires.
- [Symbol Trading] tab → click [Create Strategy Instance]
- Select strategy name · indicator (Cosmotec / Yoon V2 / YSW V3) · direction (LONG / SHORT)
- Set quantity per buy + max concurrent holdings + TP/SL/TS
- [Save] → [Activate] → the bot starts polling the 100 symbols automatically
💡 The whitelist auto-refreshes daily at 09:00 (FinanceDataReader + triple fallback). Suspended stocks are excluded automatically.
2) Condition Trading (Kiwoom condition-search integration)
Monitors your Kiwoom condition-search formula registered in the HTS (e.g. "volume surge + near upper limit") in real time.
- Kiwoom HeroMoon → Condition Search → create your formula + save it to the server
- v5 [Condition Trading] tab → [Refresh Condition List] → confirm your formula appears
- Select the formula → set direction + indicator + TP/SL/TS → [Activate]
- As soon as a symbol enters the condition (real time) → if the indicator is ON it is evaluated → buy trigger
⚠ Kiwoom condition search allows up to 10 concurrent formulas. Using the same formula in HeroMoon after activating the bot may cause a conflict.
Indicator Types (3)
- Cosmotec (COTRADING2_V3) · Based on LRC1 rate-of-change (shift). Captures short-term trend reversals.
- Yoon V2 (SuperTrend + VWMA) · Trend-following + volume-weighted. Stable trend entries.
- YSW V3 (True Reversal Slope) · Based on LRC1 lowest/highest rebound rate. Captures bottom/top reversals.
※ Indicator parameters (LRC period · threshold · cooldown, etc.) can be set individually on each card. Defaults are recommended.
↑ Back to Contents
③ Using the Chart
The v5 chart is built on TradingView Lightweight Charts — visualizing candles + indicator lines + buy/sell markers.
How to Open the Chart
- Monitor tab → click a position row → the chart for that symbol appears automatically
- [Analyze Symbol] button → enter a symbol code → 4-tab modal (Chart / News / Disclosures / Financials)
- [Condition Trading] tab → click a symbol row → shows the chart + indicator evaluation result
Chart Controls
- Timeframe · 1m / 3m / 5m / 15m / 30m / 1h / 4h / 1d (dropdown)
- Indicator selection · Switch instantly between Cosmotec / Yoon V2 / YSW V3 via the dropdown at the top of the chart
- Mouse drag · left/right = pan time, wheel = zoom in/out
- Crosshair · shows the price + time at the mouse position
- Auto-refresh · 1-second polling (real-time candle updates)
Display Elements
- Candles · bullish green / bearish red
- LRC lines · LRC1 (short term) · LRC200 / LRC400 / LRC600 (long-term trend lines)
- Buy marker · ▲ green (BUY signal) · actual buy point
- Sell marker · ▼ red (SELL signal) · take-profit / stop-loss / liquidation
- Indicator signal · ● dot above the candle (candle that met the indicator condition)
Chart + Trading Linkage
To verify that the signals you see on the chart match the actual trades:
- A buy fill occurs in the Monitor tab
- Click that row → jump straight to the chart
- Check that the ▲ marker + ● indicator dot align at the buy point
- A mismatch = a sign to retune the indicator parameters or adjust the cooldown
★ Building a Strategy Preset from the Chart (Crypto Chart)
Without coding, you can build your own strategy while watching the long/short signals on the chart directly. Use the ⚙ Edit Strategy Preset panel at the top of the crypto chart:
- Select an indicator · choose from Cosmotec (triple LRC) / YSW Triple LRC / Pro V2 / Pro BB / LRC
- Adjust parameters · changing len (period) · threshold (sensitivity), etc. via the spin boxes instantly refreshes the ▲▼ long/short markers on the chart (live preview — safe because it's before saving).
- Iterative tuning · if signals fire too often increase the period; if you miss signals decrease it, adjusting until the markers are satisfactory. The [Preview] button lets you recompute instantly too.
- Enter a name → [Save Preset] · once saved it appears immediately in the scanner's "Strategy Preset" list.
- In the scanner, select that preset + set TP/SL/TS/leverage → start trading.
Loading an existing preset from the [Strategy] combo at the top of the chart auto-fills the editor so you can continue tuning.
💡 Tip: For triple LRC (Cosmotec), give len1 · len2 · len3 different values so the cross signals are meaningful (e.g. 10 / 50 / 100). Setting all three equal overlaps the lines and makes the signal essentially noise.
ℹ The inline editor is only for defining the "signal (indicator · parameters)". Trading settings such as TP/SL/TS · leverage · direction are configured in the scanner. (Currently applied to the crypto chart first — the securities chart will follow.)
↑ Back to Contents
④ Auto-Trading Settings (TP / SL / TS)
Take Profit (TP)
- TP % · % relative to entry price (e.g. 2.0 = liquidate the full position when +2% is reached)
- Partial take-profit · 1st TP 50% / 2nd TP 50% (each % set separately)
- Disable TP · enter 0 and TP won't trigger (use only TS or SL)
Stop Loss (SL)
- SL % · % relative to entry price (e.g. -1.5 = liquidate immediately when -1.5% is reached)
- SL guard · if SL = 0, a safety -3% is auto-applied (spec requested by the owner)
Trailing Stop (TS)
- Enable TS · liquidate when price drops a set % from the high (maximize profit)
- TS Trigger % · activate TS after reaching +X% from entry (prevents early loss)
- TS Step % · liquidate when price drops -Y% from the high
Trading Parameters (UI Settings)
- Quantity per buy · the amount bought per entry into a symbol (stocks = shares, crypto = number of contracts)
- Max concurrent holdings · the number of symbols the bot can hold at once (money management)
- Re-buy cooldown · time during which re-entry into the same symbol is blocked after liquidation (default 5 min)
- SHORT = liquidation sell only · Korean stocks cannot be short-sold, so a SHORT signal only liquidates held symbols
⚠ All parameters take effect only after clicking the [Save] button. Without saving, nothing is applied.
↑ Back to Contents
⑤ Monitor Tab (Position Management)
Unified monitoring of currently held positions + open orders + real-time P&L.
Position Grid
- Symbol · code + name (clicking jumps to the chart)
- Direction · LONG / SHORT
- Entry · Current · Return · updated in real time (5-second polling)
- TP / SL / TS · shows the current settings
- [Manual Liquidation] · immediate market-order liquidation (confirmation dialog)
Order History
- Today's fills (time · symbol · direction · quantity · price · P&L)
- CSV download → use for an external journal or tax records
Bot Status Indicators
- Top dots · per-exchange connection status (🟢 normal / 🔴 offline)
- Balance chip · combined KRW + USD balance + DAILY PNL
- Update chip · shown automatically when a new version is released → click for a 1-click update
↑ Back to Contents
⑥ Auto-Update
The v5 bot polls manifest.json from the server to automatically detect new releases.
- On bot start it polls manifest.json (every 24h)
- New version found → shows the [● Update Available] chip at the top
- Click the chip → update dialog → [Update Now]
- Setup.exe downloads → runs automatically (RestartReplace) → the bot restarts automatically
💡 For a forced update (forced=true) there is no [Close] button → you must update to proceed. Used for security/critical-fix deployments.
⚠ If the update fails, use [Manual Download] → download Setup.exe directly in your browser and run it.
↑ Back to Contents
⑦ Troubleshooting
"Login failed" message
- Enter your cosmotec.xyz registration email/password exactly (case-sensitive)
- If your subscription expired → [Renew Subscription] then log in again
- If the device limit is exceeded → web → [Manage My Devices] to deregister an existing device
Kiwoom REST API won't connect
- Confirm the App Key / Secret Key / account number are entered exactly (no leading/trailing spaces)
- Confirm your Kiwoom REST API usage application is approved (developer portal)
- Confirm the keys are for real trading (v5 connects to the real domain)
- Press [Connect] again in the [Settings] tab → the REST token auto-reissues
KIS token error (401 Unauthorized)
- Copy-paste APP_KEY / APP_SECRET exactly (no leading/trailing spaces)
- Confirm live/paper account match (don't call live with paper keys)
- Restart the bot → the token reissues automatically
Chart doesn't show / 0 data points
- Check your internet connection
- Check whether the symbol is suspended from trading
- Restart the bot (clears the cache)
The bot isn't trading
- Confirm the strategy instance is Active (the [Strategy] tab)
- Confirm the indicator is ON / direction / quantity per buy are set correctly
- Check for insufficient balance / expired API keys (the [Settings] tab)
- Check the log files —
%LOCALAPPDATA%\COSMOTEC v5\logs\
↑ Back to Contents
⑧ Frequently Asked Questions (FAQ)
Is the v5 bot free?
Currently free for GOLD members during the BETA period.
Separate details will be announced at official release.
What happens if I format my PC?
You can deregister the old device and log in on a new PC.
Web → [Manage My Devices] to deregister the old device → install the bot on the new PC → log in.
Where are API keys stored?
On your local PC only (DPAPI + HMAC encryption). Never sent to the server.
If you lose the PC, we recommend revoking the API key at the exchange immediately.
Is there a backtesting feature?
Not currently supported; under consideration for a future release.
For now, verify with live trading (small amounts recommended).
Can I run multiple strategies at once?
Yes. Create multiple instances in the [Strategy] tab → each with a different indicator / direction / symbol pool.
However, the sum of max concurrent holdings must be set within your capital limit.
Which exchanges are supported?
Crypto (Binance · Bybit · Upbit · Bithumb) + Korean stocks (Kiwoom REST API) + US stocks (KIS) — all supported.
Register each exchange's API key in the [Settings] tab to use it immediately. In the exchange whitelist, register
your PC's public IP + the COTRADING server IP 13.209.224.50 together (the latter is required for journal auto-backfill).
Where are logs stored?
%LOCALAPPDATA%\COSMOTEC v5\logs\ — daily .log files.
When reporting an issue, please attach the relevant log.
The bot suddenly shut down
Check the log files (%LOCALAPPDATA%\COSMOTEC v5\logs\), then contact us
by email (cosmotec01@gmail.com) or Telegram.
Please also attach the crash dump.
What's the difference between v5 and the web (cosmotec.xyz)?
Web = signal alerts + V2 scanner (Telegram-alert focused).
v5 desktop = actual trade execution + chart + monitor (requires a PC running 24h).
Many members use both together.
↑ Back to Contents