커뮤니티

부탁드립니다

프로필 이미지
파생돌이
2022-10-06 16:04:07
921
글번호 162778
답변완료
수고하십니다 아래수식을 변수값을 바꿔서 사용할수 있게 수식부탁드립니다 Input : data2(292.5),data3(292.5); Input : data4(data2+2.5),data5(data3+2.5); var : cond21(false,data2),V2(0,data2); var : cond41(false,data4),V4(0,data4); if data2(sdate != sdate[1]) Then{ cond21 = false; } if data4(sdate != sdate[1]) Then{ cond41 = false; } if cond21 == false and abs(data2(L)-data3(H)) <= 0.5 or abs(data2(L)-data3(H)) <= 0.01 Then{ cond21 = true; V2 = (data2(l)+data3(h))/2; } if cond21 == false and abs(data2(H)-data3(L)) <= 0.5 or abs(data2(L)-data3(H)) <= 0.01 Then{ cond21 = true; V2 = (data2(h)+data3(l))/2; } if cond21 == true and CrossUp(data2(high),data3(low-0.01)) Then{ V2 = (data2(high)+data3(low))/2; } if cond21 == true and CrossDown(data2(Low),data3(High+0.01)) Then{ v2 = (data2(Low)+data3(High))/2; } if cond21 == true and CrossUp(data3(high),data2(low-0.01)) Then{ V2 = (data3(high)+data2(low))/2; } if cond21 == true and CrossDown(data3(Low),data2(High+0.01)) Then{ V2 = (data3(Low)+data2(High))/2; } ///////////////////////////////////////////////////////////////// if cond41 == false and abs(data4(L)-data5(H)) <= 0.5 or abs(data4(L)-data5(H)) <= 0.01 Then{ cond41 = true; V4 = (data4(l)+data5(h))/2; } if cond41 == false and abs(data4(H)-data5(L)) <= 0.5 or abs(data4(H)-data5(L)) <= 0.01 Then{ cond41 = true; V4 = (data4(l)+data5(h))/2; } if cond41 == true and CrossUp(data4(high),data5(low-0.01)) Then{ V4 = (data4(high)+data5(low))/2; } if cond41 == true and CrossDown(data4(Low),data5(High+0.01)) Then{ V4 = (data4(Low)+data5(High))/2; } if cond41 == true and CrossUp(data5(high),data4(low-0.01)) Then{ V4 = (data5(high)+data4(low))/2; } if cond41 == true and CrossDown(data5(Low),data4(High+0.01)) Then{ V4 = (data5(Low)+data4(High))/2; } if stime >= 090000 and stime <= 151500 Then{ plot1(V2); plot2(V4); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-10-07 11:15:29

안녕하세요 예스스탁입니다. 올려주신 내용을 정확히 이해하지 못했습니다. 데이타의 번호는 변수명으로 사용할 수 없습니다. 또한 수식은 차트에 적용되고 차트의 종목은 사용자분이 설정하셔야 합니다. 올려주신 내용이 수식에서 차트 종목을 설정하고자 하시는 내용이면 작성이 불가능합니다. 즐거운 하루되세요 > 파생돌이 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 수고하십니다 아래수식을 변수값을 바꿔서 사용할수 있게 수식부탁드립니다 Input : data2(292.5),data3(292.5); Input : data4(data2+2.5),data5(data3+2.5); var : cond21(false,data2),V2(0,data2); var : cond41(false,data4),V4(0,data4); if data2(sdate != sdate[1]) Then{ cond21 = false; } if data4(sdate != sdate[1]) Then{ cond41 = false; } if cond21 == false and abs(data2(L)-data3(H)) <= 0.5 or abs(data2(L)-data3(H)) <= 0.01 Then{ cond21 = true; V2 = (data2(l)+data3(h))/2; } if cond21 == false and abs(data2(H)-data3(L)) <= 0.5 or abs(data2(L)-data3(H)) <= 0.01 Then{ cond21 = true; V2 = (data2(h)+data3(l))/2; } if cond21 == true and CrossUp(data2(high),data3(low-0.01)) Then{ V2 = (data2(high)+data3(low))/2; } if cond21 == true and CrossDown(data2(Low),data3(High+0.01)) Then{ v2 = (data2(Low)+data3(High))/2; } if cond21 == true and CrossUp(data3(high),data2(low-0.01)) Then{ V2 = (data3(high)+data2(low))/2; } if cond21 == true and CrossDown(data3(Low),data2(High+0.01)) Then{ V2 = (data3(Low)+data2(High))/2; } ///////////////////////////////////////////////////////////////// if cond41 == false and abs(data4(L)-data5(H)) <= 0.5 or abs(data4(L)-data5(H)) <= 0.01 Then{ cond41 = true; V4 = (data4(l)+data5(h))/2; } if cond41 == false and abs(data4(H)-data5(L)) <= 0.5 or abs(data4(H)-data5(L)) <= 0.01 Then{ cond41 = true; V4 = (data4(l)+data5(h))/2; } if cond41 == true and CrossUp(data4(high),data5(low-0.01)) Then{ V4 = (data4(high)+data5(low))/2; } if cond41 == true and CrossDown(data4(Low),data5(High+0.01)) Then{ V4 = (data4(Low)+data5(High))/2; } if cond41 == true and CrossUp(data5(high),data4(low-0.01)) Then{ V4 = (data5(high)+data4(low))/2; } if cond41 == true and CrossDown(data5(Low),data4(High+0.01)) Then{ V4 = (data5(Low)+data4(High))/2; } if stime >= 090000 and stime <= 151500 Then{ plot1(V2); plot2(V4); }