커뮤니티

청산식 설명좀 부탁합니다

프로필 이미지
말라
2021-03-03 09:22:41
673
글번호 146742
답변완료
안녕하세요 아래는 제가 쓰는 매수청산식중에 하나인데요 얼마전에 "익일 3시15분이후까지 청산이 안되면 그이후 강제청산"식을 추가해 달라고했더니 if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); 이렇게 넣어주셨더라고요 혹시 식 설명좀 부탁드려도될까요? 왜 저식이 매수당일이 아닌 익일 3시 15분까지 청산이 안되면 강제청산이 되는 식인지요 if MarketPosition == 0 and 진입조건 Then { Buy("A1.3"); #진입과 동시에 셋팅되서 진입봉 다음봉만 익절/손절감시해 신호 발생 ExitLong("A1.3.11",AtLimit,C*1.16,"A1.3"); ExitLong("A1.3.31",AtStop,C*0.99,"A1.3"); } if MarketPosition == 1 Then { #A1.3진입 if CurrentContrActs > CurrentContrActs[1] And LAtestEntryNAme(0) == "A1.3" Then { A1.3Price = LAtestEntryPrice(0); A1.3high = H; } if A1.3high > 0 And H > A1.3high Then A1.3high = H; if A1.3Price > 0 Then { ExitLong("A1.3.1",AtLimit,A1.3Price*1.16,"A1.3"); if A1.3high >= A1.3Price*1.01 Then ExitLong("A1.3.2",AtStop,A1.3high*0.93,"A1.3"); ExitLong("A1.3.3",AtStop,A1.3Price*0.99,"A1.3"); } if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-03-03 14:44:07

안녕하세요 예스스탁입니다. if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); EntryDate는 진입날짜입니다. 현재봉의 날짜(sdate)가 진입날짜(entrydate)보다 크고 현재봉의 시간(stime)이 15시15분 이후이면 청산하게 되므로 진입후 다음날에 15시15분이후 첫봉 완성시에 무조건 청산하게 됩니다. 즐거운 하루되세요 > 말라 님이 쓴 글입니다. > 제목 : 청산식 설명좀 부탁합니다 > 안녕하세요 아래는 제가 쓰는 매수청산식중에 하나인데요 얼마전에 "익일 3시15분이후까지 청산이 안되면 그이후 강제청산"식을 추가해 달라고했더니 if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); 이렇게 넣어주셨더라고요 혹시 식 설명좀 부탁드려도될까요? 왜 저식이 매수당일이 아닌 익일 3시 15분까지 청산이 안되면 강제청산이 되는 식인지요 if MarketPosition == 0 and 진입조건 Then { Buy("A1.3"); #진입과 동시에 셋팅되서 진입봉 다음봉만 익절/손절감시해 신호 발생 ExitLong("A1.3.11",AtLimit,C*1.16,"A1.3"); ExitLong("A1.3.31",AtStop,C*0.99,"A1.3"); } if MarketPosition == 1 Then { #A1.3진입 if CurrentContrActs > CurrentContrActs[1] And LAtestEntryNAme(0) == "A1.3" Then { A1.3Price = LAtestEntryPrice(0); A1.3high = H; } if A1.3high > 0 And H > A1.3high Then A1.3high = H; if A1.3Price > 0 Then { ExitLong("A1.3.1",AtLimit,A1.3Price*1.16,"A1.3"); if A1.3high >= A1.3Price*1.01 Then ExitLong("A1.3.2",AtStop,A1.3high*0.93,"A1.3"); ExitLong("A1.3.3",AtStop,A1.3Price*0.99,"A1.3"); } if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); }