커뮤니티

안녕하세요 질문드립니다.

프로필 이미지
말라
2021-03-01 21:08:19
552
글번호 146695
답변완료
시스템 매수청산에 관해서 질문올립니다. 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.96,"A1.3"); } } 이건 제가 쓰고있는 하나의 매수청산식인데요 여기에 "익일 종가까지 청산이 안되면 익일 종가에청산" 이걸 추가하고싶습니다 도와주세요 구현이 힘들다면 "익일 오후3시 15분까지 청산이 안되면 15분이후바로청산" 이런식으로라도요...
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-03-02 14:45:33

안녕하세요 예스스탁입니다. 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.96,"A1.3"); } if sDate > EntryDate and sTime >= 151500 Then ExitLong("bx"); } 즐거운 하루되세요 > 말라 님이 쓴 글입니다. > 제목 : 안녕하세요 질문드립니다. > 시스템 매수청산에 관해서 질문올립니다. 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.96,"A1.3"); } } 이건 제가 쓰고있는 하나의 매수청산식인데요 여기에 "익일 종가까지 청산이 안되면 익일 종가에청산" 이걸 추가하고싶습니다 도와주세요 구현이 힘들다면 "익일 오후3시 15분까지 청산이 안되면 15분이후바로청산" 이런식으로라도요...