커뮤니티

시스템식 문의 드립니다.

프로필 이미지
코캡
2023-04-12 01:36:05
1415
글번호 168094
답변완료
안녕하세요. 시스템 트레이딩 관련 아래 식 문의 드립니다. [매도계약조건] 5일선이 20일선을 데드크로스 할때 매도 1계약 진입 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 매도 진입 조건 [매도진입 청산조건] 5일선이 20일선을 골드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 동시에 매수 1계약 진입(스위칭) [매수계약조건] 5일선이 20일선을 골드크로스 할때 매수 1계약 진입 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 매도 진입 조건 [매수진입 청산조건] 5일선이 20일선을 데드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 동시에 매도 1계약 진입(스위칭) 또 하난 궁금한 것은 데이트레이딩시 목표틱 또는 목표금액 달성시 강제종료 할 수있는지도 궁금합니다. 감사합니다!
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2023-04-12 15:49:19

안녕하세요 예스스탁입니다. 1 input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); 2 아래 내용 참고하시기 바랍니다. 당일 일정 틱수 이상 수익이 발생하면 청산하고 더이상 진입을 하지 않는 식입니다. Input : 당일수익틱수(50); input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); 당일수익 = PriceScale*당일수익틱수; if Bdate != Bdate[1] Then { Xcond = false; N1 = NetProfit; } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 or daypl <= -당일손실 Then Xcond = true; if IsExitName("dbp",1) == true or IsExitName("dsp",1) == true then Xcond = true; } mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if Xcond == false then { if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); } if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } SetStopEndofday(152000); 즐거운 하루되세요 > 코캡 님이 쓴 글입니다. > 제목 : 시스템식 문의 드립니다. > 안녕하세요. 시스템 트레이딩 관련 아래 식 문의 드립니다. [매도계약조건] 5일선이 20일선을 데드크로스 할때 매도 1계약 진입 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 매도 진입 조건 [매도진입 청산조건] 5일선이 20일선을 골드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 동시에 매수 1계약 진입(스위칭) [매수계약조건] 5일선이 20일선을 골드크로스 할때 매수 1계약 진입 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 매도 진입 조건 [매수진입 청산조건] 5일선이 20일선을 데드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 동시에 매도 1계약 진입(스위칭) 또 하난 궁금한 것은 데이트레이딩시 목표틱 또는 목표금액 달성시 강제종료 할 수있는지도 궁금합니다. 감사합니다!
프로필 이미지

코캡

2023-04-12 22:54:47

안녕하세요! 고생이 많으십니다 : ) 아래 마지막 목표 달성시 종료 시스템 차트에 적용했는데요. 왜 저기서 한번만 실행되고 그 뒤에는 전혀 실행 적용이 안되서요; 제가 무엇을 잘못한건가요?ㅜ > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 시스템식 문의 드립니다. > 안녕하세요 예스스탁입니다. 1 input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); 2 아래 내용 참고하시기 바랍니다. 당일 일정 틱수 이상 수익이 발생하면 청산하고 더이상 진입을 하지 않는 식입니다. Input : 당일수익틱수(50); input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); 당일수익 = PriceScale*당일수익틱수; if Bdate != Bdate[1] Then { Xcond = false; N1 = NetProfit; } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 or daypl <= -당일손실 Then Xcond = true; if IsExitName("dbp",1) == true or IsExitName("dsp",1) == true then Xcond = true; } mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if Xcond == false then { if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); } if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } SetStopEndofday(152000); 즐거운 하루되세요 > 코캡 님이 쓴 글입니다. > 제목 : 시스템식 문의 드립니다. > 안녕하세요. 시스템 트레이딩 관련 아래 식 문의 드립니다. [매도계약조건] 5일선이 20일선을 데드크로스 할때 매도 1계약 진입 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 매도 진입 조건 [매도진입 청산조건] 5일선이 20일선을 골드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 동시에 매수 1계약 진입(스위칭) [매수계약조건] 5일선이 20일선을 골드크로스 할때 매수 1계약 진입 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 매도 진입 조건 [매수진입 청산조건] 5일선이 20일선을 데드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 동시에 매도 1계약 진입(스위칭) 또 하난 궁금한 것은 데이트레이딩시 목표틱 또는 목표금액 달성시 강제종료 할 수있는지도 궁금합니다. 감사합니다!
프로필 이미지

코캡

2023-04-14 01:17:44

답변이 없으셔서 다시 요청드려요ㅜ > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 시스템식 문의 드립니다. > 안녕하세요 예스스탁입니다. 1 input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); 2 아래 내용 참고하시기 바랍니다. 당일 일정 틱수 이상 수익이 발생하면 청산하고 더이상 진입을 하지 않는 식입니다. Input : 당일수익틱수(50); input : P1(5),P2(20),short(12),long(26); var : mav1(0),mav2(0),macdv(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); 당일수익 = PriceScale*당일수익틱수; if Bdate != Bdate[1] Then { Xcond = false; N1 = NetProfit; } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 or daypl <= -당일손실 Then Xcond = true; if IsExitName("dbp",1) == true or IsExitName("dsp",1) == true then Xcond = true; } mav1 = ma(C,P1); mav2 = ma(C,P2); macdv = macd(short,long); if Xcond == false then { if MarketPosition >= 0 and macdv > 0 and CrossDown(mav1,mav2) Then Sell(); if MarketPosition == -1 Then { if CrossUp(mav1,mav2) Then ExitShort(); } if MarketPosition <= 0 and macdv < 0 and CrossUp(mav1,mav2) Then Buy(); if MarketPosition == 1 Then { if CrossDown(mav1,mav2) Then ExitLong(); } SetStopLoss(PriceScale*10,PointStop); } if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } SetStopEndofday(152000); 즐거운 하루되세요 > 코캡 님이 쓴 글입니다. > 제목 : 시스템식 문의 드립니다. > 안녕하세요. 시스템 트레이딩 관련 아래 식 문의 드립니다. [매도계약조건] 5일선이 20일선을 데드크로스 할때 매도 1계약 진입 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 매도 진입 조건 [매도진입 청산조건] 5일선이 20일선을 골드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 동시에 매수 1계약 진입(스위칭) [매수계약조건] 5일선이 20일선을 골드크로스 할때 매수 1계약 진입 단, MACD 시그널선이 0.00 이하(-) 구역에 위치할 때만 매도 진입 조건 [매수진입 청산조건] 5일선이 20일선을 데드크로스 할때 1계약 청산 or -10틱 손절 청산 단, MACD 시그널선이 0.00 이상(+) 구역에 위치할 때만 동시에 매도 1계약 진입(스위칭) 또 하난 궁금한 것은 데이트레이딩시 목표틱 또는 목표금액 달성시 강제종료 할 수있는지도 궁금합니다. 감사합니다!