커뮤니티

62427번 나스닥 거래시간 설정 재문의

프로필 이미지
참새사냥꾼
2019-05-08 20:51:30
248
글번호 128519
답변완료
나스닥 거래시간 설정에 관련해서 답변을 받았습니다. 그런데 작성해주신 수식을 적용했더니... 진입신호가 전혀 나오질 않습니다. 확인부탁드립니다. 거래시간은 22시30분부터 다음날 새벽5시까지 설정하고 싶습니다. 작성해주신 수식에 보면.. input에 P, 진입횟수,kk,mm 이런 것들이 있는데.. 수식에서는 전혀 사용되지 않는것 같은데 재확인부탁합니다. input : 시작시간1(200000),끝시간1(050000),P(20),진입횟수(3),kk(20),mm(20); var : NP(0),PreNP(0),daypl(0); NP=NetProfit; if (sdate != sdate[1] and stime >= 시작시간1) or (sdate == sdate[1] and stime >= 시작시간1 and stime < 시작시간1) Then { Condition1 = true; PreNP = NP; } if (sdate != sdate[1] and stime >= 끝시간1) or (sdate == sdate[1] and stime >= 끝시간1 and stime < 끝시간1) Then { Condition1 = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } dayPL= NP - preNP ; Condition2 = (dayPL > 30*PriceScale or dayPL < -55*PriceScale ); //손익에 따른 제한 IF crossup(BB,100) Then t=2; IF crossup(BB,70) then t=1; IF CrossDown(c,조건1) and (Condition2 == False) then { t=-1; if (t[1] == 2 and condition1 == True) Then buy("매수진입",AtMarket); } // 매수조건 설정 IF CrossDown(BB,0) Then p=2; IF CrossDown(BB,30) then p=1; IF CrossUp(c,조건1) and (Condition2 == False) then { p=-1; if (p[1] ==2 and condition1 == True) Then Sell("매도진입",AtMarket); } // 매도조건 설정 SetStopProfittarget(17*PriceScale,PointStop); SetStopLoss(25*PriceScale, PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-05-09 08:45:31

안녕하세요 예스스탁입니다. input에 P, 진입횟수,kk,mm 는 삭제 하시기 바랍니다. 수식을 수정해 드립니다. 기존 진입내용으로 신호를 볼수 없어 이평조건으로 대체했습니다. 해당 영역에 사용하시는 진입수식들 추가하시면 됩니다. input : 시작시간1(223000),끝시간1(050000); var : NP(0),PreNP(0),daypl(0),bb(0),t(0),p(0); NP=NetProfit; if (sdate != sdate[1] and stime >= 시작시간1) or (sdate == sdate[1] and stime >= 시작시간1 and stime[1] < 시작시간1) Then { Condition1 = true; PreNP = NP; } if (sdate != sdate[1] and stime >= 끝시간1) or (sdate == sdate[1] and stime >= 끝시간1 and stime[1] < 끝시간1) Then { Condition1 = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } dayPL= NP - preNP ; Condition2 = (dayPL > 30*PriceScale or dayPL < -55*PriceScale ); //손익에 따른 제한 if Condition1 == true and Condition2 == false then { if crossup(c,ma(C,20)) Then buy("b"); if CrossDown(c,ma(C,20)) Then sell("s"); } SetStopProfittarget(17*PriceScale,PointStop); SetStopLoss(25*PriceScale, PointStop); 즐거운 하루되세요 > 참새사냥꾼 님이 쓴 글입니다. > 제목 : 62427번 나스닥 거래시간 설정 재문의 > 나스닥 거래시간 설정에 관련해서 답변을 받았습니다. 그런데 작성해주신 수식을 적용했더니... 진입신호가 전혀 나오질 않습니다. 확인부탁드립니다. 거래시간은 22시30분부터 다음날 새벽5시까지 설정하고 싶습니다. 작성해주신 수식에 보면.. input에 P, 진입횟수,kk,mm 이런 것들이 있는데.. 수식에서는 전혀 사용되지 않는것 같은데 재확인부탁합니다. input : 시작시간1(200000),끝시간1(050000),P(20),진입횟수(3),kk(20),mm(20); var : NP(0),PreNP(0),daypl(0); NP=NetProfit; if (sdate != sdate[1] and stime >= 시작시간1) or (sdate == sdate[1] and stime >= 시작시간1 and stime < 시작시간1) Then { Condition1 = true; PreNP = NP; } if (sdate != sdate[1] and stime >= 끝시간1) or (sdate == sdate[1] and stime >= 끝시간1 and stime < 끝시간1) Then { Condition1 = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } dayPL= NP - preNP ; Condition2 = (dayPL > 30*PriceScale or dayPL < -55*PriceScale ); //손익에 따른 제한 IF crossup(BB,100) Then t=2; IF crossup(BB,70) then t=1; IF CrossDown(c,조건1) and (Condition2 == False) then { t=-1; if (t[1] == 2 and condition1 == True) Then buy("매수진입",AtMarket); } // 매수조건 설정 IF CrossDown(BB,0) Then p=2; IF CrossDown(BB,30) then p=1; IF CrossUp(c,조건1) and (Condition2 == False) then { p=-1; if (p[1] ==2 and condition1 == True) Then Sell("매도진입",AtMarket); } // 매도조건 설정 SetStopProfittarget(17*PriceScale,PointStop); SetStopLoss(25*PriceScale, PointStop);