v0.5.1 · BETA
COSMOTEC v5 데스크톱 봇
키움증권 하나의 API 로 국내주식 + 미국주식 을 자동매매하는 도구.
조건검색식 실시간 감시 · 지표 자동매수 · TP/SL/TS 모니터 청산을 데스크톱에서.
Windows 10 이상에서 실행되는 PySide6 기반 네이티브 앱.
시스템 요구사항
- OS · Windows 10/11 (x64)
- RAM · 4GB 이상 권장 (8GB+ 추천)
- 디스크 · 설치 후 약 250MB
- 네트워크 · 상시 인터넷 연결 필요
- 해상도 · 1280×720 이상
설치 가이드
- 다운로드 — 위 버튼 클릭 → COSMOTEC_v5_Setup_0.5.1.exe
- 실행 — 다운로드한 .exe 더블클릭. Windows Defender 경고 시 [추가 정보] → [실행] 선택
- 설치 — 한국어 선택 → 설치 마법사 진행 (기본 경로 권장)
- 로그인 — cosmotec.xyz 가입 시 사용한 이메일 + 비밀번호 입력
- API 키 등록 — 키움 REST 앱키/시크릿/계좌번호를 [설정] 탭에서 입력 (DPAPI 로 로컬 암호화 저장). ★국내·미국 주식 모두 이 하나의 키★
- 전략 활성화 — [전략 프리셋] 탭에서 지표 설정 → [조건식 매매]/[종목 매매] 탭에서 자동 매매 시작
기기 관리
- 플랜별 기기 한도 · BASIC 1대 · PRO/PREMIUM 2대 · ADMIN 10대
- PC 포맷 / 메인보드 교체 시 · 기존 기기 해지 후 재로그인
- → 내 기기 관리
지원 시장 — 키움증권 단일 API
- 키움 국내주식 (KR) · 조건검색식 실시간 감시 + 지표 자동매수 + TP/SL/TS 모니터
- 키움 미국주식 (US) · 미국 조건검색식 실시간 감시 + 지표 자동매수 + 모니터 (NASDAQ · NYSE · AMEX)
- ★ 국내·미국 주식을 하나의 키움 앱키로 매매합니다. 별도 KIS(한국투자) 키가 필요 없습니다.
① API 키 등록 가이드
v5 봇은 가입자 본인의 거래소 API 키를 사용하여 매매를 실행합니다.
API 키는 DPAPI + HMAC 으로 로컬 PC 에서만 복호화되도록 암호화 저장됩니다 (서버 전송 X).
키움증권 (국내주식 + 미국주식 — 단일 API)
- 키움 REST API 개발자 포털 (
openapi.kiwoom.com) 접속 → 로그인 (키움 계좌 + 인증 필요)
- API 사용 신청 → 사용할 계좌 지정 → 승인 시 앱키 (App Key) + 시크릿키 (Secret Key) 발급
- v5 앱 → [설정] 탭 → 키움증권 카드 → 앱키 / 시크릿키 / 계좌번호 입력 → [저장]
- 저장하면 v5 가 자동으로 REST 토큰을 발급받아 연결을 검증합니다 (별도 인증창 없음)
💡 국내주식과 미국주식이 같은 키움 앱키 하나로 동작합니다. 별도 KIS(한국투자) 키가 필요 없습니다 —
2026-07 키움 미국주식 REST 출시로, 하나의 계정·토큰으로 국내와 미국 조건검색·매매를 모두 처리합니다.
💡 v5 는 키움 REST API (HTTPS) 만 사용합니다 — 구형 OpenAPI+ / OCX 모듈, 본사 인증창, HTS 상시 실행이 필요 없습니다. 토큰은 약 24시간 유효하며 만료 전 자동 갱신됩니다.
⚠ 미국주식 매매는 키움 계좌에 미국주식 거래 권한 + 외화(또는 원화주문) 예수금이 있어야 합니다. 국내 조건검색과 미국 조건검색은 같은 앱키의 1세션 제한을 공유하므로, 되도록 국내장·미국장 시간에 맞춰 한쪽씩 가동하세요.
↑ 목차로
② 스캐너 사용법
v5 의 매매 흐름은 두 종류 — 종목 매매 와 조건식 매매.
1) 종목 매매 (시총 상위 화이트리스트)
코스피 + 코스닥 시총 상위 50+50 종목 (총 100) 을 1분봉 단위로 폴링하며 지표 신호 발생 시 매매.
- [종목 매매] 탭 → [전략 인스턴스 생성] 클릭
- 전략명 · 지표 (Cosmotec / Yoon V2 / YSW V3) · 매매 방향 (LONG / SHORT) 선택
- 1회 매수 수량 + 최대 동시 보유 + TP/SL/TS 설정
- [저장] → [활성화] → 봇이 자동으로 100 종목 폴링 시작
💡 화이트리스트는 매일 09:00 자동 갱신 (FinanceDataReader + 3중 fallback). 거래정지 종목 자동 제외.
2) 조건식 매매 (키움 조건검색식 연동 · 국내 + 미국)
키움에 등록한 조건검색식 (예: "거래량 급증 + 상한가 근접") 을 실시간 감시하여, 편입 종목을 지표 평가 후 자동매수.
- 키움 영웅문(국내) 또는 영웅문 글로벌(미국) → 조건검색 → 본인 조건식 생성 + 서버 저장
- v5 [조건식 매매] 탭 → 전략 카드의 시장 (🇰🇷 국내 / 🇺🇸 미국) 선택 → 그 시장의 조건식 목록이 드롭다운에 로드
- 조건식 선택 → 매매 방향 + 지표 + TP/SL/TS 설정 → [실시간 시작]
- 조건식 편입 종목 즉시 (실시간) → 지표 ON 인 경우 평가 → 매수 트리거 → 모니터 자동 등록
💡 국내와 미국은 조건식 번호가 서로 겹칠 수 있어 (양쪽 다 0·1·2…) 전략 카드에서 시장을 먼저 선택해야 올바른 조건식이 매칭됩니다.
⚠ 국내·미국 조건검색은 같은 키움 앱키의 1세션 제한을 공유합니다. 둘을 동시에 켜면 서로 연결이 끊길 수 있으니, 국내장(09:00~15:30)과 미국장(밤~새벽)에 맞춰 한쪽씩 가동하세요.
지표 종류 (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 / Yoon V2 / YSW V3 등)
- 파라미터 조정 · len(주기) · threshold(민감도) · cooldown 등을 입력 → 이름 입력 → [저장]
- 저장 즉시 [조건식 매매]/[종목 매매] 탭의 '전략 프리셋' 드롭다운에 나타납니다.
- 차트 탭에서 종목 + 그 지표를 선택하면 ▲▼ 롱/숏 마커 + ● 지표 도트가 표시되어, 신호 타이밍이 만족스러운지 확인할 수 있습니다.
- [조건식 매매]/[종목 매매]에서 그 프리셋 선택 + 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회 진입 시 매수 비중 (예수금 대비 %)
- 최대 동시 보유 · 봇이 동시에 보유 가능한 종목 수 (자금 관리)
- 일일 매수 상한 · 하루 자동 매수 건수 상한 (과매수 방지)
- SHORT 청산 매도만 · 주식은 공매도 불가 → SHORT 신호 발생 시 보유 종목 청산만 (미보유면 skip)
⚠ 모든 파라미터는 [저장] 버튼 클릭 후 활성화. 저장 안 하면 적용 안 됨.
↑ 목차로
⑤ 모니터 탭 (포지션 관리)
현재 보유 중인 포지션 + 미체결 주문 + 실시간 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 토큰 자동 재발급 (약 24시간 유효)
미국주식 매매/조회 안 됨
- 키움 계좌에 미국주식 거래 권한이 있는지 확인 (없으면 조건검색은 되어도 주문 거부)
- 미국 예수금(외화 또는 원화주문 가능액) 확인 — 0 이면 주문가능수량 0 으로 매수 skip
- "시장가매매는 정규장만 가능" 메시지 → 프리/애프터장에서는 자동으로 지정가(±6호가)로 재주문됩니다 (정상 동작)
- 국내 조건검색과 동시 가동 시 연결 끊김 → 한쪽만 켜세요 (같은 앱키 1세션 제한)
차트 안 나옴 / 데이터 0개
- 인터넷 연결 확인
- 해당 종목 거래정지 여부 확인
- 봇 재시작 (캐시 초기화)
봇이 매매 안 함
- 전략 인스턴스가 활성화 상태인지 확인 ([전략] 탭)
- 지표 ON / 매매 방향 / 1회 매수 수량 정상 설정 확인
- 잔고 부족 / API 키 만료 확인 ([설정] 탭)
- 로그 파일 확인 —
%LOCALAPPDATA%\COSMOTEC v5\logs\
↑ 목차로
⑧ 자주 묻는 질문 (FAQ)
v5 봇은 무료인가요?
현재 BETA 기간 동안 GOLD 가입자에게 무료로 제공됩니다.
정식 출시 시 별도 안내드립니다.
PC 를 포맷하면 어떻게 되나요?
기존 기기는 해지 후 새 PC 에서 로그인 가능.
웹 → [내 기기 관리] 에서 기존 기기 해지 → 새 PC 에서 봇 설치 → 로그인.
API 키는 어디에 저장되나요?
로컬 PC 만 (DPAPI + HMAC 암호화). 서버 전송 X.
PC 분실 시 즉시 거래소에서 API 키 폐기 권장.
백테스트 기능이 있나요?
현재 미지원이며 추후 추가 검토 중입니다.
현재는 실 매매로 검증해 주세요 (소량 자금 권장).
여러 전략을 동시 실행 가능한가요?
가능. [전략] 탭에서 인스턴스 여러 개 생성 → 각각 다른 지표 / 방향 / 종목 풀.
단, 최대 동시 보유 합산 = 자금 한도 이내로 설정 필수.
어떤 시장을 지원하나요?
키움증권 국내주식(KR) + 미국주식(US) 을 지원합니다. 두 시장 모두 하나의 키움 앱키로 매매하며,
별도 KIS(한국투자) 키가 필요 없습니다. [설정] 탭에 키움 앱키/시크릿/계좌번호를 등록하면 즉시 국내·미국을 모두 사용할 수 있습니다.
로그는 어디에 저장되나요?
%LOCALAPPDATA%\COSMOTEC v5\logs\ — 일자별 .log 파일.
장애 문의 시 해당 로그 첨부 요청드립니다.
봇이 갑자기 종료되었어요
로그 파일 (%LOCALAPPDATA%\COSMOTEC v5\logs\) 확인 후
이메일 (cosmotec01@gmail.com) 또는 텔레그램으로 문의.
크래시 dump 도 함께 첨부 부탁드립니다.
v5 와 웹 (cosmotec.xyz) 의 차이는?
웹 = 신호 알림 + V2 스캐너 (텔레그램 알림 위주).
v5 데스크탑 = 실제 매매 실행 + 차트 + 모니터 (PC 24h 가동 필요).
두 가지를 함께 사용하는 가입자 다수.
↑ 목차로
v0.5.1 · BETA
COSMOTEC v5 Desktop Bot
Auto-trade Korean + US stocks with a single Kiwoom Securities API.
Real-time condition-search monitoring · indicator-based auto-buy · TP/SL/TS monitor exits — on your desktop.
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.5.1.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 Kiwoom REST App Key / Secret / account number in the [Settings] tab (stored locally, encrypted with DPAPI). ★One key covers both Korean and US stocks★
- Activate strategy — Set up an indicator in the [Strategy Preset] tab → start auto-trading from the [Condition Trading] / [Symbol Trading] 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 Markets — Single Kiwoom API
- Kiwoom Korean stocks (KR) · Real-time condition-search monitoring + indicator auto-buy + TP/SL/TS monitor
- Kiwoom US stocks (US) · Real-time US condition-search monitoring + indicator auto-buy + monitor (NASDAQ · NYSE · AMEX)
- ★ Trade both Korean and US stocks with a single Kiwoom App Key. No separate KIS (Korea Investment) key required.
① 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 + US stocks — single API)
- Go to the Kiwoom REST API developer portal (
openapi.kiwoom.com) → 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)
💡 Korean and US stocks run on the same single Kiwoom App Key. No separate KIS (Korea Investment) key is needed —
with Kiwoom's US-stock REST launch (Jul 2026), one account/token handles both Korean and US condition search & trading.
💡 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.
⚠ US-stock trading requires US trading permission + foreign-currency (or KRW-order) deposit on your Kiwoom account. Korean and US condition search share the same App Key's single-session limit, so run one side at a time, aligned to each market's hours.
↑ 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 · Korean + US)
Monitors your Kiwoom condition-search formula (e.g. "volume surge + near upper limit") in real time and auto-buys entering symbols after an indicator check.
- Kiwoom HeroMoon (Korean) or HeroMoon Global (US) → Condition Search → create your formula + save it to the server
- v5 [Condition Trading] tab → on the strategy card select the market (🇰🇷 KR / 🇺🇸 US) → that market's condition list loads into the dropdown
- Select the formula → set direction + indicator + TP/SL/TS → [Start Real-time]
- As soon as a symbol enters the condition (real time) → if the indicator is ON it is evaluated → buy trigger → monitor auto-registered
💡 Korean and US condition numbers can overlap (both start at 0·1·2…), so pick the market first on the strategy card to match the correct formula.
⚠ Korean and US condition search share the same Kiwoom App Key's single-session limit. Running both at once can disconnect each other — run one side at a time, aligned to Korean hours (09:00–15:30) and US hours (night–dawn KST).
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 ([Strategy Preset] tab)
Without coding, combine indicators and parameters into your own preset, then verify the signals on the chart.
- [Strategy Preset] tab → new instance → select an indicator (Cosmotec triple LRC / Yoon V2 / YSW V3, etc.)
- Adjust parameters · len (period) · threshold (sensitivity) · cooldown, etc. → enter a name → [Save]
- Once saved it appears immediately in the "Strategy Preset" dropdown of the [Condition Trading] / [Symbol Trading] tab.
- On the Chart tab, select the symbol + that indicator to see ▲▼ long/short markers + ● indicator dots, and check whether the signal timing is satisfactory.
- In [Condition Trading] / [Symbol Trading], select that preset + set TP/SL/TS → start trading.
💡 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.
ℹ A strategy preset only defines the "signal (indicator · parameters)". Trading settings such as TP/SL/TS · direction are configured in the [Condition Trading] / [Symbol Trading] tab.
↑ 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 (weight %) · buy weight per entry into a symbol (% of deposit)
- Max concurrent holdings · the number of symbols the bot can hold at once (money management)
- Daily buy limit · cap on the number of auto-buys per day (over-buying guard)
- SHORT = liquidation sell only · stocks cannot be short-sold, so a SHORT signal only liquidates held symbols (skips if none held)
⚠ 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 (Korean & US)
- 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 (~24h validity)
US stocks won't trade / query
- Confirm your Kiwoom account has US trading permission (without it, condition search works but orders are rejected)
- Check your US deposit (foreign-currency or KRW-order available balance) — if 0, orderable quantity is 0 and buys are skipped
- "Market orders are allowed only during regular session" message → in pre/after-hours the bot auto-reorders as a limit (±6 ticks). This is normal.
- Disconnects when run together with Korean condition search → run only one side (same App Key single-session limit)
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 markets are supported?
Kiwoom Securities Korean stocks (KR) + US stocks (US). Both markets trade with a single Kiwoom App Key —
no separate KIS (Korea Investment) key is required. Register your Kiwoom App Key / Secret / account number in the [Settings] tab
to use both Korean and US markets right away.
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