커뮤니티

수식작성 예제에 오류가 없는 지 검토바랍니다.

프로필 이미지
알이랑
2025-08-11 20:10:28
140
글번호 193158
답변완료
https://www.yesstock.com/Board/View.asp?db=board100074&Ext=0&startpage=1&pageno=1&num=145&ref=145&Sort=&KeyField=&KeyWord=&SystemName= 위 링크의 예제에 오류가 있는 게 아닌 지 검토 바랍니다. 시스템식 설명 중에 ExitShort 호출하기위한 조건은 -1 이 아닌가 궁금해서 검토 요청드립니다. [시스템식] ... if marketposition() == 1 Then ExitShort("sLoss",AtStop,EntryPrice*(1+Percent/100)); ... #포인트(원) 설정 ... if marketposition() == 1 Then ExitShort("sLoss",AtStop,EntryPrice+pt);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-08-12 08:48:29

안녕하세요 예스스탁입니다. 이용에 불편을 드려 죄송합니다. 예제에 내용에 오류가 있었습니다. [시스템식] # %설정 input : Percent(5); if marketposition() == 1 Then ExitLong("bLoss",AtStop,EntryPrice*(1-Percent/100)); if marketposition() == -1 Then ExitShort("sLoss",AtStop,EntryPrice*(1+Percent/100)); #포인트(원) 설정 input: Pt(1); if marketposition() == -1 Then ExitLong("bLoss",AtStop,EntryPrice-pt); if marketposition() == 1 Then ExitShort("sLoss",AtStop,EntryPrice+pt); 즐거운 하루되세요 > 알이랑 님이 쓴 글입니다. > 제목 : 수식작성 예제에 오류가 없는 지 검토바랍니다. > https://www.yesstock.com/Board/View.asp?db=board100074&Ext=0&startpage=1&pageno=1&num=145&ref=145&Sort=&KeyField=&KeyWord=&SystemName= 위 링크의 예제에 오류가 있는 게 아닌 지 검토 바랍니다. 시스템식 설명 중에 ExitShort 호출하기위한 조건은 -1 이 아닌가 궁금해서 검토 요청드립니다. [시스템식] ... if marketposition() == 1 Then ExitShort("sLoss",AtStop,EntryPrice*(1+Percent/100)); ... #포인트(원) 설정 ... if marketposition() == 1 Then ExitShort("sLoss",AtStop,EntryPrice+pt);