issues
search
CRA7C
/
TradingSystem
CRA 7차 C조
0
stars
0
forks
source link
[add] buy_nice_timing 기능 추가
#8
Closed
jwh1308
closed
3 months ago
jwh1308
commented
3 months ago
추세를 판단하기 위해 테스트 코드 일부 변경했습니다.
biz logic
buy_nice_timing 호출 시, 총 2번의 get_price 호출
첫 번째 get_price를 prev_price에 저장
두 번째 get_price와 prev_price를 비교해서 현재 가격이 이전 가격보다 높을 경우 매수
매수량은 <인자로 전달 받은 금액> // <해당 종목 현재 가격> 으로 결정
추세를 판단하기 위해 테스트 코드 일부 변경했습니다.
biz logic