커뮤니티

수식문의

프로필 이미지
심홍
2023-08-30 15:32:00
853
글번호 171992
답변완료
수고하십니다 아래수식은 일부입니다. 상승추세로 전환된 봉마다 지표가 표시됩니다. 아래조건으로 출현된 첫번째 봉만 표시되도록 참고수식 부탁드립니다 if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] >= L[2,1] - PriceScale* 1 Then Condition1 = true; Else Condition1 = False; if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] <= L[2,1]-0.5 Then Condition2 = true; Else Condition2 = False; if sDate != sDate[1] Then Condition3 = False; if (Condition1 == true or Condition2 == true) && V>DV && Asks>Bids Then Condition3 = true; if Condition3 == true Then Plot2(L,"매수");
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-08-31 10:42:47

안녕하세요 예스스탁입니다. if Condition3 == true Then Plot2(L,"매수"); 현재 condition3이 true이면 매봉 출력하게 되어 있습니다. true로 변경된 첫봉이면 전봉값은 false라는 내용을 추가하시면 됩니다. if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] >= L[2,1] - PriceScale* 1 Then Condition1 = true; Else Condition1 = False; if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] <= L[2,1]-0.5 Then Condition2 = true; Else Condition2 = False; if sDate != sDate[1] Then Condition3 = False; if (Condition1 == true or Condition2 == true) && V>DV && Asks>Bids Then Condition3 = true; if Condition3 == true and Condition3[1] == False Then Plot2(L,"매수"); 즐거운 하루되세요 > 심홍 님이 쓴 글입니다. > 제목 : 수식문의 > 수고하십니다 아래수식은 일부입니다. 상승추세로 전환된 봉마다 지표가 표시됩니다. 아래조건으로 출현된 첫번째 봉만 표시되도록 참고수식 부탁드립니다 if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] >= L[2,1] - PriceScale* 1 Then Condition1 = true; Else Condition1 = False; if L[1,1] == L[2,1] - PriceScale* 2 and L[1,1] <= L[2,1]-0.5 Then Condition2 = true; Else Condition2 = False; if sDate != sDate[1] Then Condition3 = False; if (Condition1 == true or Condition2 == true) && V>DV && Asks>Bids Then Condition3 = true; if Condition3 == true Then Plot2(L,"매수");