커뮤니티

부탁드립니다

프로필 이미지
파생돌이
2020-05-28 17:20:18
2479
글번호 139329
답변완료
수고하십니다 *아래수식을 적용해 보니 봉에 별표시가 안보이네요 수식부탁드립니다 input : 기간1(12),기간2(26),기간3(9); var : MM(0),MS(0),조건(false),MV(0),비교(false),tx(0); MM=MACD(기간1,기간2); Ms=ema(MM,기간3); 조건=MM>MM[1]&&MM[1]<MM[2]&&MM<Ms; if 조건 Then Mv = L[1]; 비교=M<Ms&&MM[1]<Ms[1]&& MM[2]<Ms[2]&& MM[3]<Ms[3]&& MM[4]<Ms[4]&& MM[5]<Ms[5]&& MM[6]<Ms[6]&& MM[7]<Ms[7]&& MM[8]<Ms[8]&& MM[9]<Ms[9]; if CrossDOWN(C,Mv)&&비교 Then{ tx = text_new(sdate,stime,H+PriceScale*5,"★"); #Text_SetStyle(tx,2,1); Text_SetColor(tx,BLACK); Text_SetBold(tx,4);}
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-05-29 10:51:24

안녕하세요 예스스탁입니다. 식을 수정했습니다. input : 기간1(12),기간2(26),기간3(9); var : MM(0),MS(0),조건(false),MV(0),비교(false),tx(0); MM=MACD(기간1,기간2); Ms=ema(MM,기간3); 조건=MM>MM[1]&&MM[1]<MM[2]&&MM<Ms; if 조건 Then Mv = L[1]; 비교 = MM<Ms&&MM[1]<Ms[1]&& MM[2]<Ms[2]&& MM[3]<Ms[3]&& MM[4]<Ms[4]&& MM[5]<Ms[5]&& MM[6]<Ms[6]&& MM[7]<Ms[7]&& MM[8]<Ms[8]&& MM[9]<Ms[9]; if CrossDOWN(C,Mv)&&비교 Then{ tx = text_new(sdate,stime,H+PriceScale*5,"★"); #Text_SetStyle(tx,2,1); Text_SetColor(tx,BLACK); Text_SetBold(tx,4);} 즐거운 하루되세요 > 파생돌이 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 수고하십니다 *아래수식을 적용해 보니 봉에 별표시가 안보이네요 수식부탁드립니다 input : 기간1(12),기간2(26),기간3(9); var : MM(0),MS(0),조건(false),MV(0),비교(false),tx(0); MM=MACD(기간1,기간2); Ms=ema(MM,기간3); 조건=MM>MM[1]&&MM[1]<MM[2]&&MM<Ms; if 조건 Then Mv = L[1]; 비교=M<Ms&&MM[1]<Ms[1]&& MM[2]<Ms[2]&& MM[3]<Ms[3]&& MM[4]<Ms[4]&& MM[5]<Ms[5]&& MM[6]<Ms[6]&& MM[7]<Ms[7]&& MM[8]<Ms[8]&& MM[9]<Ms[9]; if CrossDOWN(C,Mv)&&비교 Then{ tx = text_new(sdate,stime,H+PriceScale*5,"★"); #Text_SetStyle(tx,2,1); Text_SetColor(tx,BLACK); Text_SetBold(tx,4);}