예스스탁
예스스탁 답변
2021-03-15 16:33:33
안녕하세요
예스스탁입니다.
Input : TH(100);
Input : TL(100);
Input : NH(50);
Input : NL(50);
input : ntime(60);
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0);
var : S1(0),D1(0),TM(0),TF(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
var1 = O;
}
}
Plot1(var1+PriceScale*TH,"+TL",RGB(255,255,0),DEF,1);
Plot2(var1+PriceScale*NH,"+NH",RGB(255,255,0),DEF,1);
Plot3(var1,"1차라인",RGB(255,255,0),DEF,1);
Plot4(var1-PriceScale*NL,"-NL",RGB(255,255,0),DEF,1);
Plot5(var1-PriceScale*TL,"-TL",RGB(255,255,0),DEF,1);
Text_Delete(tx1);
Text_Delete(tx2);
Text_Delete(tx3);
Text_Delete(tx4);
Text_Delete(tx5);
tx1 = Text_New(sdate,stime,var1,NumToStr(var1,2));
tx2 = Text_New(sdate,stime,var1+PriceScale*TH,NumToStr(var1+PriceScale*TH,2));
tx3 = Text_New(sdate,stime,var1-PriceScale*TL,NumToStr(var1-PriceScale*TL,2));
tx4 = Text_New(sdate,stime,var1+PriceScale*NH,NumToStr(var1+PriceScale*NH,2));
tx5 = Text_New(sdate,stime,var1-PriceScale*NL,NumToStr(var1-PriceScale*NL,2));
Text_SetStyle(tx1, 0, 1);
Text_SetStyle(tx2, 0, 1);
Text_SetStyle(tx3, 0, 1);
Text_SetStyle(tx4, 0, 1);
Text_SetStyle(tx5, 0, 1);
Text_SetColor(tx1, REd);
Text_SetColor(tx2, BLACK);
Text_SetColor(tx3, BLACK);
Text_SetColor(tx4, BLACK);
Text_SetColor(tx5, BLACK);
Text_SetSize(tx1,11);
Text_SetBold(tx1,1);
Text_SetSize(tx2,11);
Text_SetBold(tx2,1);
Text_SetSize(tx3,11);
Text_SetBold(tx3,1);
Text_SetSize(tx4,11);
Text_SetBold(tx4,1);
Text_SetSize(tx5,11);
Text_SetBold(tx5,1);
즐거운 하루되세요
> 스오어스 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 안녕하세요 주말 잘 보내셨습니까?
아래 수식을 보시면 한 캔들에서 숫자 표시 되게 했는데요
1. 숫자 엎에서 수평선 나오게 하고 싶고
2. 1분 봉에서 60분봉 캔들 처럼 계속 숫자와 수평선 나오게 하고 싶습니다.
다시 설명 드리자면 60분에서 시가 시작하면 시가 숫자 50자리 숫자 100자리 숫자 나오게 하는데
1분 봉에 사용하면 1분 봉만 시가 시작 하면서 숫자가 나오잖아요 계속 1분봉씩 발생하는데요.
제가 원하는게 1분 봉에 60분 봉의 시가 숫자 50자리 숫자 100자리 숫자 유지 되게 하고 싶습니다. 60분 끝나면 다음 새로운 60분봉에도 표시 되게 필요합니다.
가능할까요?ㅜㅜ
감사합니다. 힘내세요.
Input : TH(100);
Input : TL(100);
Input : NH(50);
Input : NL(50);
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0);
var1 = NextBarOpen;
Plot1 ((tx1),"1차라인",RGB(255,255,0),DEF,1);
Text_Delete(tx1);
Text_Delete(tx2);
Text_Delete(tx3);
Text_Delete(tx4);
Text_Delete(tx5);
tx1 = Text_New(sdate,stime,var1,NumToStr(var1,2));
tx2 = Text_New(sdate,stime,var1+PriceScale*tH,NumToStr(var1+PriceScale*TH,2));
tx3 = Text_New(sdate,stime,var1-PriceScale*tL,NumToStr(var1-PriceScale*TL,2));
tx4 = Text_New(sdate,stime,var1+PriceScale*NH,NumToStr(var1+PriceScale*NH,2));
tx5 = Text_New(sdate,stime,var1-PriceScale*NL,NumToStr(var1-PriceScale*NL,2));
Text_SetStyle(tx1, 0, 1);
Text_SetStyle(tx2, 0, 1);
Text_SetStyle(tx3, 0, 1);
Text_SetStyle(tx4, 0, 1);
Text_SetStyle(tx5, 0, 1);
Text_SetColor(tx1, REd);
Text_SetColor(tx2, BLACK);
Text_SetColor(tx3, BLACK);
Text_SetColor(tx4, BLACK);
Text_SetColor(tx5, BLACK);
Text_SetSize(tx1,11);
Text_SetBold(tx1,1);
Text_SetSize(tx2,11);
Text_SetBold(tx2,1);
Text_SetSize(tx3,11);
Text_SetBold(tx3,1);
Text_SetSize(tx4,11);
Text_SetBold(tx4,1);
Text_SetSize(tx5,11);
Text_SetBold(tx5,1);