예스스탁
예스스탁 답변
2026-02-25 16:47:20
안녕하세요
예스스탁입니다.
문의하신 내용은 참조데이터를 이용하는 식으로 만드셔야 합니다.
기본종목과 같은 종목을 다른주기로 여러개 추가하신 후에
아래와 같이 그리드로 표시하는 수식을 만드셔서 차트에 적용하시면 됩니다.
별도로 plot으로 출력되는 내용은 없으므로 강조식이나 검색식으로 작성해서 적용하시면 됩니다.
수식에서는 시간상 data1,data2,data3까지만 작성해 드립니다.
원하시는 만큼 데이터 추가하시고 그에 따른 수식 추가하시면 됩니다.
Input : RSIPeriod(9);
input : sto1(10),sto2(5);
var : TF1("",Data1),TF2("",Data2),TF3("",data3);
var : RSI1(0,Data1),RSI2(0,Data2),RSI3(0,Data3);
var : stok1(0,Data1),stok2(0,Data2),stok3(0,Data3);
RSI1 = data1(RSI(RSIPeriod));
RSI2 = data2(RSI(RSIPeriod));
RSI3 = data3(RSI(RSIPeriod));
stok1 = data1(StochasticsK(sto1,sto2));
stok2 = data2(StochasticsK(sto1,sto2));
stok3 = data3(StochasticsK(sto1,sto2));
var : grid(0);
if Data1(DataCompress) == 0 Then
TF1 = NumToStr(Data1(BarInterval),0) + "틱";
if Data1(DataCompress) == 1 Then
TF1 = NumToStr(Data1(BarInterval),0) + "초";
if Data1(DataCompress) == 2 Then
TF1 = NumToStr(Data1(BarInterval),0) + "분";
if Data1(DataCompress) == 3 Then
TF1 = "일";
if Data2(DataCompress) == 0 Then
TF2 = NumToStr(Data2(BarInterval),0) + "틱";
if Data2(DataCompress) == 1 Then
TF2 = NumToStr(Data2(BarInterval),0) + "초";
if Data2(DataCompress) == 2 Then
TF2 = NumToStr(Data2(BarInterval),0) + "분";
if Data2(DataCompress) == 3 Then
TF2 = "일";
if Data3(DataCompress) == 0 Then
TF3 = NumToStr(Data3(BarInterval),0) + "틱";
if Data3(DataCompress) == 1 Then
TF3 = NumToStr(Data3(BarInterval),0) + "초";
if Data3(DataCompress) == 2 Then
TF3 = NumToStr(Data3(BarInterval),0) + "분";
if Data3(DataCompress) == 3 Then
TF3 = "일";
if LastBarOnChart == 1 Then
{
#Data1 주기와 지표값
Grid_Cell(Grid,0,0,TF1,0,0,BLACK,White);
Grid_Cell(Grid,1,0,"RSI",0,0,BLACK,White);
Grid_Cell(Grid,2,0,NumToStr(RSI1,2),0,0,Red,White);
Grid_Cell(Grid,3,0,"stok",0,0,BLACK,White);
Grid_Cell(Grid,4,0,NumToStr(stok1,2),0,0,Red,White);
#Data2 주기와 지표값
Grid_Cell(Grid,0,1,TF2,0,0,BLACK,White);
Grid_Cell(Grid,1,1,"RSI",0,0,BLACK,White);
Grid_Cell(Grid,2,1,NumToStr(RSI2,2),0,0,Red,White);
Grid_Cell(Grid,3,1,"stok",0,0,BLACK,White);
Grid_Cell(Grid,4,1,NumToStr(stok2,2),0,0,Red,White);
#Data3 주기와 지표값
Grid_Cell(Grid,0,2,TF3,0,0,BLACK,White);
Grid_Cell(Grid,1,2,"RSI",0,0,BLACK,White);
Grid_Cell(Grid,2,2,NumToStr(RSI3,2),0,0,Red,White);
Grid_Cell(Grid,3,2,"stok",0,0,BLACK,White);
Grid_Cell(Grid,4,2,NumToStr(stok3,2),0,0,Red,White);
}
즐거운 하루되세요