1. 일봉차트에 월봉 타주기를 구현해 주세요
고맙습니다.
답변 1
예스스탁
예스스탁 답변
2023-03-13 14:53:34
안녕하세요
예스스탁입니다.
input : n(0);
var : cnt(0);
Array : monthO[100](0),monthH[100](0),monthL[100](0),monthC[100](0);
if bdate > bdate[1]+30 Then
{
for cnt = 99 downto 1
{
monthO[cnt] = monthO[cnt-1];
monthH[cnt] = monthH[cnt-1];
monthL[cnt] = monthL[cnt-1];
monthC[cnt] = monthC[cnt-1];
}
monthO[0] = O;
monthH[0] = H;
monthL[0] = L;
}
if monthH[0] > 0 and H > monthH[0] Then
monthH[0] = H;
if monthL[0] > 0 and L < monthL[0] Then
monthL[0] = L;
monthC[0] = C;
if monthO[n] > 0 Then
{
Plot1(monthO[n],"n월전시가");
Plot2(monthH[n],"n월전고가");
Plot3(monthL[n],"n월전저가");
Plot4(monthC[n],"n월전종가");
}
즐거운 하루되세요
> 서태공 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 1. 일봉차트에 월봉 타주기를 구현해 주세요
고맙습니다.