커뮤니티

수식 수정 좀 부탁드립니다.

프로필 이미지
산수유
2024-05-21 13:47:08
1160
글번호 179797
답변완료
Inputs: Length(9), StdDev(2), Bars(2); Variables: BBTop(0),BBBot(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); If CountIF(Close < BBBot, Bars) == Bars Then Buy("BBtop", AtStop, BBBot); If CountIF(Close > BBTop, Bars) == Bars Then Sell("BBbot", AtStop, BBTop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 위의 식을 종가가 볼린저밴드 상단선 밖에 만들어진 양봉종가에 매수진입(돌파) 손절은 진입한 양봉의 저가 이탈시 실시간 손절 익절은 70p 종가가 볼린저 밴드 하단선 밖에 만들어진 음봉종가에 매도진입(이탈) 손절은 진입한 음봉의 고가 돌파시 실시간 손절 익절은 70p 그리고 전략실행시간은 17시부터05시50분까지로 설정부탁드립니다. 부탁좀 드리겠습니다.
시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2024-05-21 14:47:42

안녕하세요 예스스탁입니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == False Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > Inputs: Length(9), StdDev(2), Bars(2); Variables: BBTop(0),BBBot(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); If CountIF(Close < BBBot, Bars) == Bars Then Buy("BBtop", AtStop, BBBot); If CountIF(Close > BBTop, Bars) == Bars Then Sell("BBbot", AtStop, BBTop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 위의 식을 종가가 볼린저밴드 상단선 밖에 만들어진 양봉종가에 매수진입(돌파) 손절은 진입한 양봉의 저가 이탈시 실시간 손절 익절은 70p 종가가 볼린저 밴드 하단선 밖에 만들어진 음봉종가에 매도진입(이탈) 손절은 진입한 음봉의 고가 돌파시 실시간 손절 익절은 70p 그리고 전략실행시간은 17시부터05시50분까지로 설정부탁드립니다. 부탁좀 드리겠습니다.
프로필 이미지

산수유

2024-05-21 15:41:15

항상 감사드립니다. 그런데 수식 검증하니 이상은 없는데 신호가 한 개도 발생을 안하는데 이유를 모르겠습니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == False Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > Inputs: Length(9), StdDev(2), Bars(2); Variables: BBTop(0),BBBot(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); If CountIF(Close < BBBot, Bars) == Bars Then Buy("BBtop", AtStop, BBBot); If CountIF(Close > BBTop, Bars) == Bars Then Sell("BBbot", AtStop, BBTop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 위의 식을 종가가 볼린저밴드 상단선 밖에 만들어진 양봉종가에 매수진입(돌파) 손절은 진입한 양봉의 저가 이탈시 실시간 손절 익절은 70p 종가가 볼린저 밴드 하단선 밖에 만들어진 음봉종가에 매도진입(이탈) 손절은 진입한 음봉의 고가 돌파시 실시간 손절 익절은 70p 그리고 전략실행시간은 17시부터05시50분까지로 설정부탁드립니다. 부탁좀 드리겠습니다.
프로필 이미지

예스스탁 예스스탁 답변

2024-05-21 15:48:21

안녕하세요 예스스탁입니다. trade변수 설정이 반대로 되어 있었습니다. 아래식 적용하시면 됩니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : Re : Re : 수식 수정 좀 부탁드립니다. > 항상 감사드립니다. 그런데 수식 검증하니 이상은 없는데 신호가 한 개도 발생을 안하는데 이유를 모르겠습니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == False Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > Inputs: Length(9), StdDev(2), Bars(2); Variables: BBTop(0),BBBot(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); If CountIF(Close < BBBot, Bars) == Bars Then Buy("BBtop", AtStop, BBBot); If CountIF(Close > BBTop, Bars) == Bars Then Sell("BBbot", AtStop, BBTop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 위의 식을 종가가 볼린저밴드 상단선 밖에 만들어진 양봉종가에 매수진입(돌파) 손절은 진입한 양봉의 저가 이탈시 실시간 손절 익절은 70p 종가가 볼린저 밴드 하단선 밖에 만들어진 음봉종가에 매도진입(이탈) 손절은 진입한 음봉의 고가 돌파시 실시간 손절 익절은 70p 그리고 전략실행시간은 17시부터05시50분까지로 설정부탁드립니다. 부탁좀 드리겠습니다.
프로필 이미지

산수유

2024-05-21 15:52:07

항상 감사드립니다. 감사해요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : Re : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. trade변수 설정이 반대로 되어 있었습니다. 아래식 적용하시면 됩니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : Re : Re : 수식 수정 좀 부탁드립니다. > 항상 감사드립니다. 그런데 수식 검증하니 이상은 없는데 신호가 한 개도 발생을 안하는데 이유를 모르겠습니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. input : starttime(170000),Endtime(055000); Inputs: Length(9), StdDev(2), Bars(2); Var : BBTop(0),BBBot(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if Tcond == true and Trade == False Then { If MarketPosition <= 0 and CrossUp(C,BBTop) and C > O Then { Buy("b"); ExitLong("bx1",AtStop,L); } If MarketPosition >= 0 and CrossDown(C,BBBot) and C < O Then { Sell("s"); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopProfittarget(70,PointStop); #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > Inputs: Length(9), StdDev(2), Bars(2); Variables: BBTop(0),BBBot(0); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); If CountIF(Close < BBBot, Bars) == Bars Then Buy("BBtop", AtStop, BBBot); If CountIF(Close > BBTop, Bars) == Bars Then Sell("BBbot", AtStop, BBTop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; trade = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 0; if C > value1 and C > Sarv Then T = 1; if C < value2 and C < Sarv Then T = -1; } Else { if T == 1 and !(C > value1 and C > Sarv) Then T = 0; if T == -1 and !(C < value2 and C < Sarv) Then T = 0; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; #고가가 저가대비 300포인트 이상 크면 if Tcond == true and H >= L+300 Then { #trade는 False trade = False; #매수포지션이면 청산 if MarketPosition == 1 Then exitlong(); #매도포지션이면 청산 if MarketPosition == -1 Then ExitShort(); } 위의 식을 종가가 볼린저밴드 상단선 밖에 만들어진 양봉종가에 매수진입(돌파) 손절은 진입한 양봉의 저가 이탈시 실시간 손절 익절은 70p 종가가 볼린저 밴드 하단선 밖에 만들어진 음봉종가에 매도진입(이탈) 손절은 진입한 음봉의 고가 돌파시 실시간 손절 익절은 70p 그리고 전략실행시간은 17시부터05시50분까지로 설정부탁드립니다. 부탁좀 드리겠습니다.