커뮤니티

검토부탁드립니다.

프로필 이미지
대구어린울프
2021-06-08 18:07:11
971
글번호 149773
답변완료
안녕하세요? 장기이평선과의 간격이 N pt이내일때만 진입해야하는데, 차트상 범위밖인데도 진입이 되고있습니다. 부디, 이상여부 검토부탁드리겠습니다. 감사합니다. input : p1(5),P2(20),pt(0.5); var1 = ma(C,p1); Var2 = ma(C,p2); if var1 > Var2 and C[2] > O[2] and C[1] < O[1] and C > O and C-max(var1,var2) <= PriceScale*n Then Buy(); if var1 < Var2 and C[2] < O[2] and C[1] > O[1] and C < O and C-max(var1,var2) <= pt Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-06-09 10:44:07

안녕하세요 예스스탁입니다. 이평 2개 중 큰값 기준이면 1번, 장기이평 기준이면 2번식 이용하시면 됩니다. 1 input : p1(5),P2(20),pt(0.5); var1 = ma(C,p1); Var2 = ma(C,p2); if var1 > Var2 and C[2] > O[2] and C[1] < O[1] and C > O and abs(C-max(var1,var2)) <= pt Then Buy(); if var1 < Var2 and C[2] < O[2] and C[1] > O[1] and C < O and abs(C-max(var1,var2)) <= pt Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2 input : p1(5),P2(20),pt(0.5); var1 = ma(C,p1); Var2 = ma(C,p2); if var1 > Var2 and C[2] > O[2] and C[1] < O[1] and C > O and abs(C-var2) <= pt Then Buy(); if var1 < Var2 and C[2] < O[2] and C[1] > O[1] and C < O and abs(C-var2) <= pt Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 검토부탁드립니다. > 안녕하세요? 장기이평선과의 간격이 N pt이내일때만 진입해야하는데, 차트상 범위밖인데도 진입이 되고있습니다. 부디, 이상여부 검토부탁드리겠습니다. 감사합니다. input : p1(5),P2(20),pt(0.5); var1 = ma(C,p1); Var2 = ma(C,p2); if var1 > Var2 and C[2] > O[2] and C[1] < O[1] and C > O and C-max(var1,var2) <= PriceScale*n Then Buy(); if var1 < Var2 and C[2] < O[2] and C[1] > O[1] and C < O and C-max(var1,var2) <= pt Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);