커뮤니티

수식 문의드려요.

프로필 이미지
에이드
2020-07-01 02:15:06
1825
글번호 140309
답변완료
A. 정해진 거래 시간 중 (starttime~ endtime) 최근 5거래 승률이 80% 경우 +5포인트 매수청산, -10포인트 매수손절 최근 5거래 승률이 50% 경우 +10포인트 매수청산, -20포인트 매수손절 B. 최근 3거래가 모두 매수, 승률이 100%일때 4번째 거래도 매수일 경우 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 C. 최근 3거래 승률이 100%일때 4번째 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 D. 지난 3개봉중 저가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 지난 3개봉중 고가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 (3개봉 전체가 아닌 각각 봉에 대한 데이터로 값을 확인해야합니다.) E. 포지션 진입 이후 10분이내에 손실이 5포인트인 경우 매수청산
시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2020-07-01 16:03:52

안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if Tcond == true then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } 2 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 4 if countif(abs(L-C) >= n,3) == 0 and countif(abs(H-C) >= n,3) == 0 and 매수진입 Then buy(); 5 if MarketPosition == 1 and TimeToMinutes(stime) < TimeToMinutes(EntryTime) +5 Then ExitLong("bx",AtStop,EntryPrice-5); 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : 수식 문의드려요. > A. 정해진 거래 시간 중 (starttime~ endtime) 최근 5거래 승률이 80% 경우 +5포인트 매수청산, -10포인트 매수손절 최근 5거래 승률이 50% 경우 +10포인트 매수청산, -20포인트 매수손절 B. 최근 3거래가 모두 매수, 승률이 100%일때 4번째 거래도 매수일 경우 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 C. 최근 3거래 승률이 100%일때 4번째 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 D. 지난 3개봉중 저가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 지난 3개봉중 고가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 (3개봉 전체가 아닌 각각 봉에 대한 데이터로 값을 확인해야합니다.) E. 포지션 진입 이후 10분이내에 손실이 5포인트인 경우 매수청산
프로필 이미지

에이드

2020-07-02 01:35:19

2번식 수정부탁드립니다. endtime이 끝나고 starttime이 새로 시작하면 수익횟수를 초기화 하도록 부탁드리며 승률이 아닌 횟수로서 최근 매수로만 3회 수익 이후 4회차 포지션 진입시 매수일경우 계약수 2배로 부탁드리며 5회차는 기본계약수로 돌아가고 처음부터 다시 반복되는 수식을 부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 문의드려요. > 안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if Tcond == true then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } 2 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 4 if countif(abs(L-C) >= n,3) == 0 and countif(abs(H-C) >= n,3) == 0 and 매수진입 Then buy(); 5 if MarketPosition == 1 and TimeToMinutes(stime) < TimeToMinutes(EntryTime) +5 Then ExitLong("bx",AtStop,EntryPrice-5); 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : 수식 문의드려요. > A. 정해진 거래 시간 중 (starttime~ endtime) 최근 5거래 승률이 80% 경우 +5포인트 매수청산, -10포인트 매수손절 최근 5거래 승률이 50% 경우 +10포인트 매수청산, -20포인트 매수손절 B. 최근 3거래가 모두 매수, 승률이 100%일때 4번째 거래도 매수일 경우 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 C. 최근 3거래 승률이 100%일때 4번째 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 D. 지난 3개봉중 저가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 지난 3개봉중 고가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 (3개봉 전체가 아닌 각각 봉에 대한 데이터로 값을 확인해야합니다.) E. 포지션 진입 이후 10분이내에 손실이 5포인트인 경우 매수청산
프로필 이미지

예스스탁 예스스탁 답변

2020-07-02 16:34:26

안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Tcond == true then { if Trade >= 5 then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } } 2 input : StartTime(90000),EndTime(150000); input : 기본수량(1); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0),vol(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; vol = 기본수량; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Trade >= 3 then { win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; } if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : StartTime(90000),EndTime(150000); input : 기본수량(1); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0),vol(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; vol = 기본수량; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Trade >= 3 then { win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; } if 진입조건 then { buy("b",OnClose,def,vol); } 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : Re : Re : 수식 문의드려요. > 2번식 수정부탁드립니다. endtime이 끝나고 starttime이 새로 시작하면 수익횟수를 초기화 하도록 부탁드리며 승률이 아닌 횟수로서 최근 매수로만 3회 수익 이후 4회차 포지션 진입시 매수일경우 계약수 2배로 부탁드리며 5회차는 기본계약수로 돌아가고 처음부터 다시 반복되는 수식을 부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 문의드려요. > 안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if Tcond == true then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } 2 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 4 if countif(abs(L-C) >= n,3) == 0 and countif(abs(H-C) >= n,3) == 0 and 매수진입 Then buy(); 5 if MarketPosition == 1 and TimeToMinutes(stime) < TimeToMinutes(EntryTime) +5 Then ExitLong("bx",AtStop,EntryPrice-5); 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : 수식 문의드려요. > A. 정해진 거래 시간 중 (starttime~ endtime) 최근 5거래 승률이 80% 경우 +5포인트 매수청산, -10포인트 매수손절 최근 5거래 승률이 50% 경우 +10포인트 매수청산, -20포인트 매수손절 B. 최근 3거래가 모두 매수, 승률이 100%일때 4번째 거래도 매수일 경우 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 C. 최근 3거래 승률이 100%일때 4번째 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 D. 지난 3개봉중 저가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 지난 3개봉중 고가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 (3개봉 전체가 아닌 각각 봉에 대한 데이터로 값을 확인해야합니다.) E. 포지션 진입 이후 10분이내에 손실이 5포인트인 경우 매수청산
프로필 이미지

에이드

2020-07-03 03:18:49

승률에 관계없이 4회차에 계약수가 늘어나는 현상이 있습니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : Re : Re : 수식 문의드려요. > 안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Tcond == true then { if Trade >= 5 then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } } 2 input : StartTime(90000),EndTime(150000); input : 기본수량(1); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0),vol(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; vol = 기본수량; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Trade >= 3 then { win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; } if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : StartTime(90000),EndTime(150000); input : 기본수량(1); var : Tcond(false),win(0),cnt(0),R(0),T1(0),Trade(0),vol(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; T1 = TotalTrades; vol = 기본수량; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; Trade = TotalTrades-t1; if Trade >= 3 then { win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; } if 진입조건 then { buy("b",OnClose,def,vol); } 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : Re : Re : 수식 문의드려요. > 2번식 수정부탁드립니다. endtime이 끝나고 starttime이 새로 시작하면 수익횟수를 초기화 하도록 부탁드리며 승률이 아닌 횟수로서 최근 매수로만 3회 수익 이후 4회차 포지션 진입시 매수일경우 계약수 2배로 부탁드리며 5회차는 기본계약수로 돌아가고 처음부터 다시 반복되는 수식을 부탁드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 문의드려요. > 안녕하세요 예스스탁입니다. 1 input : StartTime(90000),EndTime(150000); var : Tcond(false),win(0),cnt(0),R(0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if Tcond == true then { win = 0; for cnt = 1 to 5 { if PositionProfit(cnt) > 0 Then win = win +1; } R = win/5*100; if MarketPosition == 1 then { if R == 80 then { exitlong("bp1",atlimit,EntryPrice+5); exitlong("bl1",AtStop,EntryPrice-10); } if R == 50 then { exitlong("bp2",atlimit,EntryPrice+10); exitlong("bl2",AtStop,EntryPrice-20); } } } 2 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if MarketPosition(cnt) == 1 and PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 3 input : 기본수량(1); var : win(0),cnt(0),r(0),vol(0); win = 0; for cnt = 1 to 3 { if PositionProfit(1) > 0 Then win = win +1; } R = win/3*100; if MaxContracts(1) != 기본수량*2 and R == 100 Then vol = 기본수량*2; Else vol = 기본수량; if 진입조건 then { buy("b",OnClose,def,vol); } 4 if countif(abs(L-C) >= n,3) == 0 and countif(abs(H-C) >= n,3) == 0 and 매수진입 Then buy(); 5 if MarketPosition == 1 and TimeToMinutes(stime) < TimeToMinutes(EntryTime) +5 Then ExitLong("bx",AtStop,EntryPrice-5); 즐거운 하루되세요 > 에이드 님이 쓴 글입니다. > 제목 : 수식 문의드려요. > A. 정해진 거래 시간 중 (starttime~ endtime) 최근 5거래 승률이 80% 경우 +5포인트 매수청산, -10포인트 매수손절 최근 5거래 승률이 50% 경우 +10포인트 매수청산, -20포인트 매수손절 B. 최근 3거래가 모두 매수, 승률이 100%일때 4번째 거래도 매수일 경우 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 C. 최근 3거래 승률이 100%일때 4번째 계약수는 x2 5번째 거래 계약수는 기본계약수로 리셋 D. 지난 3개봉중 저가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 지난 3개봉중 고가와 종가의 차이가 N값 이상인 봉이 있는 경우 매수금지 (3개봉 전체가 아닌 각각 봉에 대한 데이터로 값을 확인해야합니다.) E. 포지션 진입 이후 10분이내에 손실이 5포인트인 경우 매수청산