커뮤니티

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

프로필 이미지
산수유
2024-06-11 08:12:57
862
글번호 180501
답변완료
아래의 식에서 계속 검증 오류가 나는데 원인을 찾을 수 없어서 질문드립니다. 오류부분 수정 좀 부탁드립니다. input : starttime(173000),Endtime(055000); Inputs: Length(20), StdDev(2), Bars(2); Input : Periods (20); Input :dif1(0),dif2(30); var : Slope(0); Slope = LRS(C,Periods); var: maxs(0),mins(0); maxs=max(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 큰거 mins=min(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 작은 거 var : difs(0); difs= maxs - mins input : 손실포인트(30); input : 목표수익(100); input : 진입수량(1); Var : BBTop(0),BBBot(0),BBMid(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0),BWidth(0); BBMid = ma(C,Length); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); BWidth = ((BBTop - BBBot)/ BBMid)*100; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and C > BBTop and BBtop > L and C > O and difs >=dif1 and difs <=dif2 Then { Buy("b",OnClosE,DeF,진입수량); ExitLong("bx1",AtStop,L); } #and HLE1 >=HLEnvelope and HLE2 <=HLEnvelope If MarketPosition >= 0 and C < BBBot and BBBot < H and C < O and difs >=dif1 and difs <=dif2 Then { Sell("s",OnClosE,DeF,진입수량); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopLoss(손실포인트,PointStop); SetStopProfittarget(목표수익,PointStop);
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2024-06-11 14:01:17

안녕하세요 예스스탁입니다. difs= maxs - mins 수식 중간에 위 내용에 문장이 마침이 없었습니다. input : starttime(173000),Endtime(055000); Inputs: Length(20), StdDev(2), Bars(2); Input : Periods (20); Input :dif1(0),dif2(30); var : Slope(0); Slope = LRS(C,Periods); var: maxs(0),mins(0); maxs=max(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 큰거 mins=min(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 작은 거 var : difs(0); difs= maxs - mins; //수정 input : 손실포인트(30); input : 목표수익(100); input : 진입수량(1); Var : BBTop(0),BBBot(0),BBMid(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0),BWidth(0); BBMid = ma(C,Length); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); BWidth = ((BBTop - BBBot)/ BBMid)*100; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and C > BBTop and BBtop > L and C > O and difs >=dif1 and difs <=dif2 Then { Buy("b",OnClosE,DeF,진입수량); ExitLong("bx1",AtStop,L); } #and HLE1 >=HLEnvelope and HLE2 <=HLEnvelope If MarketPosition >= 0 and C < BBBot and BBBot < H and C < O and difs >=dif1 and difs <=dif2 Then { Sell("s",OnClosE,DeF,진입수량); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopLoss(손실포인트,PointStop); SetStopProfittarget(목표수익,PointStop); 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > 아래의 식에서 계속 검증 오류가 나는데 원인을 찾을 수 없어서 질문드립니다. 오류부분 수정 좀 부탁드립니다. input : starttime(173000),Endtime(055000); Inputs: Length(20), StdDev(2), Bars(2); Input : Periods (20); Input :dif1(0),dif2(30); var : Slope(0); Slope = LRS(C,Periods); var: maxs(0),mins(0); maxs=max(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 큰거 mins=min(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 작은 거 var : difs(0); difs= maxs - mins input : 손실포인트(30); input : 목표수익(100); input : 진입수량(1); Var : BBTop(0),BBBot(0),BBMid(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0),BWidth(0); BBMid = ma(C,Length); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); BWidth = ((BBTop - BBBot)/ BBMid)*100; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and C > BBTop and BBtop > L and C > O and difs >=dif1 and difs <=dif2 Then { Buy("b",OnClosE,DeF,진입수량); ExitLong("bx1",AtStop,L); } #and HLE1 >=HLEnvelope and HLE2 <=HLEnvelope If MarketPosition >= 0 and C < BBBot and BBBot < H and C < O and difs >=dif1 and difs <=dif2 Then { Sell("s",OnClosE,DeF,진입수량); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopLoss(손실포인트,PointStop); SetStopProfittarget(목표수익,PointStop);
프로필 이미지

산수유

2024-06-12 10:20:52

ㅎ 기초적인 것도 못 찾았네요 ... 감사드립니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 수정 좀 부탁드립니다. > 안녕하세요 예스스탁입니다. difs= maxs - mins 수식 중간에 위 내용에 문장이 마침이 없었습니다. input : starttime(173000),Endtime(055000); Inputs: Length(20), StdDev(2), Bars(2); Input : Periods (20); Input :dif1(0),dif2(30); var : Slope(0); Slope = LRS(C,Periods); var: maxs(0),mins(0); maxs=max(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 큰거 mins=min(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 작은 거 var : difs(0); difs= maxs - mins; //수정 input : 손실포인트(30); input : 목표수익(100); input : 진입수량(1); Var : BBTop(0),BBBot(0),BBMid(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0),BWidth(0); BBMid = ma(C,Length); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); BWidth = ((BBTop - BBBot)/ BBMid)*100; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and C > BBTop and BBtop > L and C > O and difs >=dif1 and difs <=dif2 Then { Buy("b",OnClosE,DeF,진입수량); ExitLong("bx1",AtStop,L); } #and HLE1 >=HLEnvelope and HLE2 <=HLEnvelope If MarketPosition >= 0 and C < BBBot and BBBot < H and C < O and difs >=dif1 and difs <=dif2 Then { Sell("s",OnClosE,DeF,진입수량); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopLoss(손실포인트,PointStop); SetStopProfittarget(목표수익,PointStop); 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 수식 수정 좀 부탁드립니다. > 아래의 식에서 계속 검증 오류가 나는데 원인을 찾을 수 없어서 질문드립니다. 오류부분 수정 좀 부탁드립니다. input : starttime(173000),Endtime(055000); Inputs: Length(20), StdDev(2), Bars(2); Input : Periods (20); Input :dif1(0),dif2(30); var : Slope(0); Slope = LRS(C,Periods); var: maxs(0),mins(0); maxs=max(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 큰거 mins=min(Slope,Slope[1]); #1봉전 slope 과 해당봉의 siope 중 작은 거 var : difs(0); difs= maxs - mins input : 손실포인트(30); input : 목표수익(100); input : 진입수량(1); Var : BBTop(0),BBBot(0),BBMid(0),T(0); var : Tcond(False),trade(False),Sarv(0),entry(0),BWidth(0); BBMid = ma(C,Length); BBTop = BollBandup(Length, StdDev); BBBot = BollBanddown(Length, StdDev); BWidth = ((BBTop - BBBot)/ BBMid)*100; if Tcond == true and Trade == true Then { If MarketPosition <= 0 and C > BBTop and BBtop > L and C > O and difs >=dif1 and difs <=dif2 Then { Buy("b",OnClosE,DeF,진입수량); ExitLong("bx1",AtStop,L); } #and HLE1 >=HLEnvelope and HLE2 <=HLEnvelope If MarketPosition >= 0 and C < BBBot and BBBot < H and C < O and difs >=dif1 and difs <=dif2 Then { Sell("s",OnClosE,DeF,진입수량); ExitShort("sx1",AtStop,H); } } if MarketPosition == 1 Then { ExitLong("bx2",AtStop,L[BarsSinceEntry]); } if MarketPosition == -1 Then { ExitShort("sx2",AtStop,H[BarsSinceEntry]); } SetStopLoss(손실포인트,PointStop); SetStopProfittarget(목표수익,PointStop);