예스스탁
예스스탁 답변
2021-01-07 13:35:21
안녕하세요
예스스탁입니다.
1
input : N(100);
var : tx(0);
var1 = abs(C-O)/PriceScale;
if C > O and var1 >= N Then
{
tx = Text_New(sdate,stime,H+PriceScale,"+"+NumToStr(var1,0));
Text_SetColor(tx,RED);
Text_SetStyle(tx,2,1);
}
if C < O and var1 >= N Then
{
tx = Text_New(sdate,stime,L-PriceScale,"-"+NumToStr(var1,0));
Text_SetColor(tx,BLUE);
Text_SetStyle(tx,2,0);
}
2
아래는 조건만족시 삼각형으로 표시되게 작성한 식입니다.
input : N(100);
var : tx(0);
var1 = abs(C-O)/PriceScale;
if C > O and var1 >= N Then
{
tx = Text_New(sdate,stime,H+PriceScale,"▲");
Text_SetColor(tx,RED);
Text_SetStyle(tx,2,1);
}
if C < O and var1 >= N Then
{
Sell("s");
tx = Text_New(sdate,stime,L-PriceScale,"▼");
Text_SetColor(tx,BLUE);
Text_SetStyle(tx,2,0);
}
3
아래는 매수와 매도신호가 발생하는 시스템식입니다.
input : N(100);
var : tx(0);
var1 = abs(C-O)/PriceScale;
if C > O and var1 >= N Then
{
Buy("b");
tx = Text_New(sdate,stime,H+PriceScale,"+"+NumToStr(var1,0));
Text_SetColor(tx,RED);
Text_SetStyle(tx,2,1);
}
if C < O and var1 >= N Then
{
Sell("s");
tx = Text_New(sdate,stime,L-PriceScale,"-"+NumToStr(var1,0));
Text_SetColor(tx,BLUE);
Text_SetStyle(tx,2,0);
}
즐거운 하루되세요
> 체리피커 님이 쓴 글입니다.
> 제목 : 캔들 틱수 표시
> 새해 복 많이 받으십시요^^
1.캔들의 틱수를 표시할 때
var : tx(0);
var1 = abs(C-O)/PriceScale;
if C > O Then
{
tx = Text_New(sdate,stime,H+PriceScale,"+"+NumToStr(var1,0));
Text_SetColor(tx,RED);
Text_SetStyle(tx,2,1);
}
if C < O Then
{
tx = Text_New(sdate,stime,L-PriceScale,"-"+NumToStr(var1,0));
Text_SetColor(tx,BLUE);
Text_SetStyle(tx,2,0);
}
이 수식을 이용하는데 모든 캔들에 표시가 되어 차트가 지저분해 집니다
특정 틱수 이상만 표시 할 수 있는 방법을 알고 싶습니다
예)100틱 이상 캔들의 값만 표시 양봉, 음봉 모두 표시
2.해당 캔들이 발생시 화살표 표시가 되게 두가지로 부탁드립니다
감사합니다~^^