예스스탁
예스스탁 답변
2025-03-25 09:05:14
안녕하세요
예스스탁입니다.
종가파라볼릭 함수식 자체를 변경해서 처리해 드리긴 어렵습니다.
2틱이상 전환되었을때만 동그라미가 표시되게 수정해 드립니다.
Input : af(0.01), maxAF(0.2);
Var : cSarv(0),TL(0),T(0),tx(0);
Var : cSar(0);
var7 = cSar(af,maxAF);
plot1(var7, "CSAR",IFF(c>var7,Red,Green));
cSarv = csar(af,maxAF);
If crossup(c,cSarv) Then
{
var1 = cSarv;
Var2 = var1[1];
Var3 = var2[1];
if abs(var1-var4) >= PriceScale*2 and
var1 <= var2+PriceScale*1 and var1 >= var2-PriceScale*1 and var2 > 0
and var1<= highest(H,2000)-0.8 and var1<= lowest(L,1000)+0.1 Then
{
Tx = Text_New(sDate,sTime,var1-0.1,"●");
Text_SetColor(Tx,Red);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
if abs(var1-var4) >= PriceScale*2 and
var3 > 0 and max(var1,var2,var3) <= min(var1,var2,var3)+PriceScale*1
and var1<= highest(H,2000)-0.8 and var1<= lowest(L,1000)+0.15 Then
{
Tx = Text_New(sDate,sTime,var1-0.1,"●");
Text_SetColor(Tx,Blue);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
}
If CrossDown(c,cSarv) Then
{
var4 = csarv;
Var5 = var4[1];
Var6 = var5[1];
if abs(var1-var4) >= PriceScale*2 and
var4 <= var5+PriceScale*1 and var4 >= var5-PriceScale*1 and var5 > 0
and var4>= lowest(L,1200)+0.8 and var4 >= highest(H,600)-0.1 Then
{
Tx = Text_New(sDate,sTime,var4+0.1,"●");
Text_SetColor(Tx,Red);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
if abs(var1-var4) >= PriceScale*2 and
var6 > 0 and max(var4,var5,var6) <= min(var4,var5,var6)+PriceScale*1
and var4>= lowest(L,1200)+0.8 and var4 >= highest(H,600)-0.1 Then
{
Tx = Text_New(sDate,sTime,var4+0.1,"●");
Text_SetColor(Tx,Blue);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
}
즐거운 하루되세요
> 고성 님이 쓴 글입니다.
> 제목 : 파라볼릭 전환 폭
> Input : af(0.01), maxAF(0.2);
Var : cSarv(0),TL(0),T(0),tx(0);
Var : cSar(0);
var7 = cSar(af,maxAF);
plot1(var7, "CSAR",IFF(c>var7,Red,Green));
cSarv = csar(af,maxAF);
If crossup(c,cSarv) Then
{
var1 = cSarv;
Var2 = var1[1];
Var3 = var2[1];
if var1 <= var2+PriceScale*1 and var1 >= var2-PriceScale*1 and var2 > 0
and var1<= highest(H,2000)-0.8 and var1<= lowest(L,1000)+0.1 Then
{
Tx = Text_New(sDate,sTime,var1-0.1,"●");
Text_SetColor(Tx,Red);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
if var3 > 0 and max(var1,var2,var3) <= min(var1,var2,var3)+PriceScale*1
and var1<= highest(H,2000)-0.8 and var1<= lowest(L,1000)+0.15 Then
{
Tx = Text_New(sDate,sTime,var1-0.1,"●");
Text_SetColor(Tx,Blue);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
}
If CrossDown(c,cSarv) Then
{
var4 = csarv;
Var5 = var4[1];
Var6 = var5[1];
if var4 <= var5+PriceScale*1 and var4 >= var5-PriceScale*1 and var5 > 0
and var4>= lowest(L,1200)+0.8 and var4 >= highest(H,600)-0.1 Then
{
Tx = Text_New(sDate,sTime,var4+0.1,"●");
Text_SetColor(Tx,Red);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
if var6 > 0 and max(var4,var5,var6) <= min(var4,var5,var6)+PriceScale*1
and var4>= lowest(L,1200)+0.8 and var4 >= highest(H,600)-0.1 Then
{
Tx = Text_New(sDate,sTime,var4+0.1,"●");
Text_SetColor(Tx,Blue);
Text_SetStyle(Tx,2,2);
Text_SetSize(Tx,17);
}
}
파라 양음 전환시, 상하 폭이 2틱 이상만 전환. 1틱은 전환 금지.
5틱 차트에서 너무 민감한 전환 방지. 감사합니다.