예스스탁
예스스탁 답변
2025-09-12 13:15:04
안녕하세요
예스스탁입니다.
input : 기간(14);
var : S(0),R(0),u40(0),u30(0),순번조건(False);
var : cs(Nan),조건1(False),조건2(False),조건3(False),tx1(0),tx2(0);
S=Accum(1);
R=Rsi(기간);//14
if CrossDown(R,40) Then
u40 = S;
if CrossDown(R,30) Then
u30 = S;
순번조건=U40<u30 ;
if 순번조건 && 순번조건[1] == False Then
cs = 0;
if Crossup(R,30) Then
cs = cs+1;
조건1 = cs==1;
조건2 = cs==2;
조건3 = cs==3;
Plot1(R,"Rsi");
PlotBaseLine1(40,"40");
PlotBaseLine2(30,"30");
if 조건1 and 조건1[1] ==False Then
{
var1 = L;
tx1 = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,Red);
tx2 = Text_New_Self(sDate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,Red);
}
if 조건2 and 조건2[1] ==False Then
{
var2 = L;
tx1 = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,Red);
tx2 = Text_New_Self(sDate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,Red);
}
if 조건3 and 조건3[1] ==False Then
{
var3 = L;
tx1 = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,Red);
tx2 = Text_New_Self(sDate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,Red);
}
즐거운 하루되세요
> 파생돌이 님이 쓴 글입니다.
> 제목 : 부틱드립니다
> 수고하십니다
아래수식 Plot1,Plot2,Plot3을 아닌 캔들 저가에 각각"▲"표시
화면rsi에도 각각 "▲" 표시 수식부탁드립니다
input : 기간(14);
var : S(0),R(0),u40(0),u30(0),순번조건(False);
var : cs(Nan),조건1(False),조건2(False),조건3(False);
S=Accum(1);
R=Rsi(기간);//14
if CrossDown(R,40) Then
u40 = S;
if CrossDown(R,30) Then
u30 = S;
순번조건=U40<u30 ;
if 순번조건 && 순번조건[1] == False Then
cs = 0;
if Crossup(R,30) Then
cs = cs+1;
조건1 = cs==1;
조건2 = cs==2;
조건3 = cs==3;
if 조건1 and 조건1[1] ==False Then
var1 = L;
if 조건2 and 조건2[1] ==False Then
var2 = L;
if 조건3 and 조건3[1] ==False Then
var3 = L;
Plot1(Var1);
Plot2(Var2);
Plot3(Var3);