커뮤니티

[해외선물 - 나스닥 100] 일부 변경 요청건

프로필 이미지
이형지
2022-01-13 12:58:01
1168
글번호 155406
답변완료
매수 진입후 청산되지 않을때 매주 금요일 (토요일 새벽) AM 5시00분에 청산되지 않는 매수된 계약의 평균값이 플러스일때 (수익일때) 일괄 청산 청산되지 않는 매수된 계약의 평균값이 마이너스일때 (손실일때) 청산 되지 않는 수식을 추가 될수 있게 수식 부탁드림니다. ----------------------------------------------------------------------------------- input : MFI기간(25),MFI값(7),하락틱수(250),하락틱수1(400),익절틱(525),손절틱(50000); input : MFI청산기간(8),MFI청산값(86); input : 추가매수횟수(6),X(25),Y(100); var : MoneyFlow(0),MoneyFlow1(0); MoneyFlow = MFI(MFI기간); MoneyFlow1 = 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 < 추가매수횟수 and MoneyFlow < MFI값 and C < O and V > V[1] Then Buy("추매",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); if MarketPosition == 1 and MaxEntries < 추가매수횟수 and C < O and V > V[1] Then Buy("325틱추가매수",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수1); if MarketPosition == 1 and MoneyFlow1 > MFI청산값 Then ExitLong("MFI청산",atlimit,AvgEntryPrice*1.005); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-01-13 13:43:46

안녕하세요 예스스탁입니다. input : MFI기간(25),MFI값(7),하락틱수(250),하락틱수1(400),익절틱(525),손절틱(50000); input : MFI청산기간(8),MFI청산값(86); input : 추가매수횟수(6),X(25),Y(100); var : MoneyFlow(0),MoneyFlow1(0); MoneyFlow = MFI(MFI기간); MoneyFlow1 = 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 < 추가매수횟수 and MoneyFlow < MFI값 and C < O and V > V[1] Then Buy("추매",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); if MarketPosition == 1 and MaxEntries < 추가매수횟수 and C < O and V > V[1] Then Buy("325틱추가매수",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수1); if MarketPosition == 1 and MoneyFlow1 > MFI청산값 Then ExitLong("MFI청산",atlimit,AvgEntryPrice*1.005); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop); if DayOfWeek(Bdate) == 6 and ((NextBarSdate != sDate and NextBarStime >= 050000) or (NextBarSdate == sDate and NextBarStime >= 050000 and sTime < 050000)) Then { if C > AvgEntryPrice Then ExitLong("bx"); } 즐거운 하루되세요 > 이형지 님이 쓴 글입니다. > 제목 : [해외선물 - 나스닥 100] 일부 변경 요청건 > 매수 진입후 청산되지 않을때 매주 금요일 (토요일 새벽) AM 5시00분에 청산되지 않는 매수된 계약의 평균값이 플러스일때 (수익일때) 일괄 청산 청산되지 않는 매수된 계약의 평균값이 마이너스일때 (손실일때) 청산 되지 않는 수식을 추가 될수 있게 수식 부탁드림니다. ----------------------------------------------------------------------------------- input : MFI기간(25),MFI값(7),하락틱수(250),하락틱수1(400),익절틱(525),손절틱(50000); input : MFI청산기간(8),MFI청산값(86); input : 추가매수횟수(6),X(25),Y(100); var : MoneyFlow(0),MoneyFlow1(0); MoneyFlow = MFI(MFI기간); MoneyFlow1 = 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 < 추가매수횟수 and MoneyFlow < MFI값 and C < O and V > V[1] Then Buy("추매",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수); if MarketPosition == 1 and MaxEntries < 추가매수횟수 and C < O and V > V[1] Then Buy("325틱추가매수",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수1); if MarketPosition == 1 and MoneyFlow1 > MFI청산값 Then ExitLong("MFI청산",atlimit,AvgEntryPrice*1.005); SetStopLoss(PriceScale*손절틱,PointStop); SetStopProfittarget(PriceScale*익절틱,PointStop);