예스스탁
예스스탁 답변
2024-03-07 17:12:56
안녕하세요
예스스탁입니다.
input :shortPeriod(9);
input :midPeriod(26);
input :longperiod(52);
input :p1(20);
input :p2(20);
input :percent1(90);
input :percent2(90);
input :percent3(90);
input :d1(120);
var : LT(0),HT(0),NewH(0),Box1(False),BarsSince(0),TOP(0),BTM(0);
var1 = (highest(high,shortPeriod)+lowest(low,shortPeriod)+highest(high,midPeriod)+lowest(low,midPeriod))/4;
var2 = var1[midPeriod-1];
LT=LOWEST(L,P2);
HT=HIGHEST(H,P2);
BOX1=HIGHEST(H,P2-2)<HIGHEST(H,P2-1);
if H > HT[1] Then
{
NewH = H;
BarsSince = 0;
}
Else
{
if NewH > 0 Then
{
BarsSince = BarsSince+1;
if BarsSince == P2-2 and Box1 == true Then
{
TOP = NewH;
BTM = LT;
}
}
}
var1 = Ema(C,1);
Var2 = Ema(C,D1);
Var3 = Ema(C,10);
value1 = C/ema(C,60)*100;
value2 = C/ema(C,120)*100;
if CrossUp(c,top)
and (value1 <= Percent1 or Value2 <= Percent2)
and value2 <= Percent3
and var1<=Var2
and var1>=Var3 Then
Find(1);
즐거운 하루되세요
> 미서니 님이 쓴 글입니다.
> 제목 : 문의 드립니다.(박)
> 안녕하세요~
수식 문의 드립니다.
shortperido - 9
midperiod - 26
longperiod - 52
p1 - 20
p2 - 20
percent1 - 90
percent2 - 90
percent3 - 90
d1 - 120
이평방법 - 지수
shift((highest(high,shortPeriod)+lowest(low,shortPeriod)+highest(high,midPeriod)+lowest(low,midPeriod))/4,midPeriod-1),
LT=LOWEST(L,P2);
HT=HIGHEST(H,P2);
NewH=VALUEWHEN(1,H>HT(1),H);
BOX1=HIGHEST(H,P2-2)<HIGHEST(H,P2-1);
TOP=VALUEWHEN(1,BarsSince(H>HT(1))==(P2-2) AND BOX1,NewH);
BTM=VALUEWHEN(1,BarsSince(H>HT(1))==(P2-2) AND BOX1,LT);
CrossUp(c,top)
and
(Disparity(c,60,이평방법) <= Percent1
or
Disparity(c,120,이평방법) <= Percent2)
and
Disparity(c,120,이평방법) <= Percent3
and eavg(c,1)<=eavg(c,D1)
and eavg(c,1)>=eavg(c,10);
예스트레이더 언어로 부탁드립니다.
항상 건강하세요