커뮤니티

문의

프로필 이미지
목마와숙녀
2021-12-29 09:36:39
765
글번호 154944
답변완료
진입시간대를 나누어서 청산을 하고 싶은데 아래처럼 강제청산 함수를 사용하는 것이 맞는 수식인지요 강제청산함수가 가능하지 않다면 일반함수를 이용한 수식을 부탁드립니다. *************************************************************************** if MarketPosition == 1 and EntryTime >= 090000 and EntryTime < 100000 then { SetStopLoss(0.5,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); } if MarketPosition == 1 and EntryTime >= 100000 and EntryTime < 110000 then { SetStopLoss(0.8,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); }
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2021-12-29 13:36:21

안녕하세요 예스스탁입니다. 매수상태가 아니거나 지정한 시간범위가 아니면 강제청산이 해제되게 해주셔야 합니다. if MarketPosition == 1 Then { if EntryTime >= 090000 and EntryTime < 100000 then { SetStopLoss(0.5,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); } else if MarketPosition == 1 and EntryTime >= 100000 and EntryTime < 110000 then { SetStopLoss(0.8,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); } Else { SetStopLoss(0); SetStopTrailing(0,0); } } Else { SetStopLoss(0); SetStopTrailing(0,0); } 새해 좋은 일만 가득하시길 바랍니다. > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 진입시간대를 나누어서 청산을 하고 싶은데 아래처럼 강제청산 함수를 사용하는 것이 맞는 수식인지요 강제청산함수가 가능하지 않다면 일반함수를 이용한 수식을 부탁드립니다. *************************************************************************** if MarketPosition == 1 and EntryTime >= 090000 and EntryTime < 100000 then { SetStopLoss(0.5,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); } if MarketPosition == 1 and EntryTime >= 100000 and EntryTime < 110000 then { SetStopLoss(0.8,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); }
프로필 이미지

목마와숙녀

2021-12-29 14:20:01

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 매수상태가 아니거나 지정한 시간범위가 아니면 강제청산이 해제되게 해주셔야 합니다. if MarketPosition == 1 Then { if EntryTime >= 090000 and EntryTime < 100000 then { SetStopLoss(0.5,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); } else if MarketPosition == 1 and EntryTime >= 100000 and EntryTime < 110000 then { SetStopLoss(0.8,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); } Else { SetStopLoss(0); SetStopTrailing(0,0); } } Else { SetStopLoss(0); SetStopTrailing(0,0); } 새해 좋은 일만 가득하시길 바랍니다. > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 진입시간대를 나누어서 청산을 하고 싶은데 아래처럼 강제청산 함수를 사용하는 것이 맞는 수식인지요 강제청산함수가 가능하지 않다면 일반함수를 이용한 수식을 부탁드립니다. *************************************************************************** if MarketPosition == 1 and EntryTime >= 090000 and EntryTime < 100000 then { SetStopLoss(0.5,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); } if MarketPosition == 1 and EntryTime >= 100000 and EntryTime < 110000 then { SetStopLoss(0.8,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); }