커뮤니티

부탁 드립니다

프로필 이미지
마도로스77
2017-03-22 16:02:03
102
글번호 108094
답변완료
/* 12시부터 새벽1시 사이에 신호가 나오게 하는수익 같은데 두 수식의 차이점(시간설정 하는 부분)이 뭔가요 어떤때는 신호가 안나오기도 하는것 같은데,,, 초보라서 죄송 합니다 ^^*/ input : sto1(10),sto2(5),sto3(2); var : loss(0),stok(0),stod(0); var : T1(0),entry(0),Tcond(false); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then{ Tcond = true; T1 = TotalTrades; } if stime == 010000 or (stime > 010000 and stime[1] < 010000) Then Tcond = false; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if Tcond = true and Entry<3 and crossdown(stok,50) Then sell(); /* ------------------------------------------------------------------------------ */ input : sto1(10),sto2(5),sto3(2); var : loss(0),stok(0),stod(0); var : T1(0),entry(0),Tcond(false); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then{ Tcond = true; T1 = TotalTrades; } if stime == 010000 or (stime > 010000 and stime[1] < 010000) Then Tcond = false; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if stime >= 120000 or stime < 030000 then{ if Entry<3 and crossup(stod,50) Then buy("매수1"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-03-22 17:33:43

안녕하세요 예스스탁입니다. 올리신 식 중 위의 식은 매도만 하는식이고 낮12시~새벽1시까지 거래하는 식이고 아래 식은 매수만 하는식이고 낮12시~새벽3시까지 거래하는 식입니다. 매수식은 Tcond에 true나 false가 저장되는 시간은 관계가 없고 매수조건식 자체에 시간이 지정되어 있습니다. 즐거운 하루되세요 > 마도로스77 님이 쓴 글입니다. > 제목 : 부탁 드립니다 > /* 12시부터 새벽1시 사이에 신호가 나오게 하는수익 같은데 두 수식의 차이점(시간설정 하는 부분)이 뭔가요 어떤때는 신호가 안나오기도 하는것 같은데,,, 초보라서 죄송 합니다 ^^*/ input : sto1(10),sto2(5),sto3(2); var : loss(0),stok(0),stod(0); var : T1(0),entry(0),Tcond(false); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then{ Tcond = true; T1 = TotalTrades; } if stime == 010000 or (stime > 010000 and stime[1] < 010000) Then Tcond = false; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if Tcond = true and Entry<3 and crossdown(stok,50) Then sell(); /* ------------------------------------------------------------------------------ */ input : sto1(10),sto2(5),sto3(2); var : loss(0),stok(0),stod(0); var : T1(0),entry(0),Tcond(false); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then{ Tcond = true; T1 = TotalTrades; } if stime == 010000 or (stime > 010000 and stime[1] < 010000) Then Tcond = false; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if stime >= 120000 or stime < 030000 then{ if Entry<3 and crossup(stod,50) Then buy("매수1"); }