커뮤니티

간단한 수식에서 특정일 특정시간에 일괄청산(계약수와 상관없이) 수식 추가요청

프로필 이미지
이형지
2021-09-24 15:18:12
1296
글번호 152448
답변완료
아까와는 다른식인데 이수식에서도 특정일 특정시간에 청산하는 수식 부탁드려요~~ 매수만 되는 수식인데 계약수에 상관없이 2021년 12월 16일 23시 10분 30초에 전량 청산되는 수식 부탁드려요~~~ 해외선물 나스닥 60분봉 input : MFI기간(20),MFI값(14),하락틱수(100),익절틱(120),손절틱(1050); input : 추가매수횟수(4),X(25),Y(300); var : MoneyFlow(0); MoneyFlow = MFI(MFI기간); if MarketPosition == 0 and MoneyFlow <= MFI값 and C <= Highest(H,X)-PriceScale*Y Then Buy("b",OnClose,DEf,1); if MarketPosition == 1 and MaxEntries < 추가매수횟수 Then Buy("bb",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-09-24 15:40:30

안녕하세요 예스스탁입니다. input : MFI기간(20),MFI값(14),하락틱수(100),익절틱(120),손절틱(1050); input : 추가매수횟수(4),X(25),Y(300); var : MoneyFlow(0); MoneyFlow = MFI(MFI기간); if MarketPosition == 0 and MoneyFlow <= MFI값 and C <= Highest(H,X)-PriceScale*Y Then Buy("b",OnClose,DEf,1); if MarketPosition == 1 and MaxEntries < 추가매수횟수 Then Buy("bb",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop); if bdate != Bdate[1] Then { IF sdate == 20211215 Then SetStopEndofday(233030); Else SetStopEndofday(0); } 즐거운 하루되세요 > 이형지 님이 쓴 글입니다. > 제목 : 간단한 수식에서 특정일 특정시간에 일괄청산(계약수와 상관없이) 수식 추가요청 > 아까와는 다른식인데 이수식에서도 특정일 특정시간에 청산하는 수식 부탁드려요~~ 매수만 되는 수식인데 계약수에 상관없이 2021년 12월 16일 23시 10분 30초에 전량 청산되는 수식 부탁드려요~~~ 해외선물 나스닥 60분봉 input : MFI기간(20),MFI값(14),하락틱수(100),익절틱(120),손절틱(1050); input : 추가매수횟수(4),X(25),Y(300); var : MoneyFlow(0); MoneyFlow = MFI(MFI기간); if MarketPosition == 0 and MoneyFlow <= MFI값 and C <= Highest(H,X)-PriceScale*Y Then Buy("b",OnClose,DEf,1); if MarketPosition == 1 and MaxEntries < 추가매수횟수 Then Buy("bb",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop);