커뮤니티
문의드려요
2018-03-22 12:34:33
113
글번호 117612
분할진입 분할청산하는 로직에서 맨마지막에 일어난 가격을 알고싶습니다.
LatestEntryPrice와 LatestExitprice 중에서도 가장 최근에 이루어진 가격을 구해주세요.
답변 1
예스스탁 예스스탁 답변
2018-03-22 15:50:02
안녕하세요
예스스탁입니다.
var : lastPrice(0);
if CurrentContracts > CurrentContracts[1] Then
lastPrice = LatestEntryPrice(0);
if MarketPosition != 0 and CurrentContracts < CurrentContracts[1] Then
lastPrice = LatestExitPrice(0);
if MarketPosition != MarketPosition[1] and CurrentContracts < CurrentContracts[1] Then
lastPrice = LatestExitPrice(1);
즐거운 하루되세요
> 팽구 님이 쓴 글입니다.
> 제목 : 문의드려요
> 분할진입 분할청산하는 로직에서 맨마지막에 일어난 가격을 알고싶습니다.
LatestEntryPrice와 LatestExitprice 중에서도 가장 최근에 이루어진 가격을 구해주세요.