커뮤니티

추가부탁드립니다.

프로필 이미지
대구어린울프
2020-09-09 15:01:23
868
글번호 142223
답변완료
안녕하세요? 아래의 수식에서 이동평균선을 추가하고싶습니다. 1) 이평선 2개추가(외부변수) 2) 추가된 2개 이평선 기준으로, 정배열에서 매도진입 / 역배열에서 매수진입 이렇게 추가를 하고싶습니다. 부탁드립니다. 감사합니다. if MarketPosition == 0 and C[2] == O[2] and C[1] != O[1] and C > O Then Buy(); if MarketPosition == 0 and C[2] == O[2] and C[1] != O[1] and C < O Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-09-10 11:15:50

안녕하세요 예스스탁입니다. input : P1(5),P2(20); var1 = ma(C,P1); Var2 = ma(C,P2); if MarketPosition == 0 and var1 > Var2 and C[2] == O[2] and C[1] != O[1] and C > O Then Buy(); if MarketPosition == 0 and var1 < Var2 and C[2] == O[2] and C[1] != O[1] and C < O Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 추가부탁드립니다. > 안녕하세요? 아래의 수식에서 이동평균선을 추가하고싶습니다. 1) 이평선 2개추가(외부변수) 2) 추가된 2개 이평선 기준으로, 정배열에서 매도진입 / 역배열에서 매수진입 이렇게 추가를 하고싶습니다. 부탁드립니다. 감사합니다. if MarketPosition == 0 and C[2] == O[2] and C[1] != O[1] and C > O Then Buy(); if MarketPosition == 0 and C[2] == O[2] and C[1] != O[1] and C < O Then Sell(); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);