안녕하세요?
글번호 47174번 재요청드립니다.
에스트레이더 강조에 탑재되어 있는 이격도 102이상, 98이하를 표시하고 작성해주신 스크립트를 적용해서 보면 필터링이 되지 않습니다.
다시 한번 더 검수 부탁드립니다.
#이격도 102 이상
Input : Period(20),OverBgt(102);
var1 = Disparity(Period);
if var1 >= OverBgt Then
PlotPaintBar(High, Low, "이격",MAGENTA);
else
NoPlot(1);
#이격도 98이하
Input : Period(20),OverSold(98);
var1 = Disparity(Period);
if var1 <= OverSold Then
PlotPaintBar(High, Low, "이격",LGREEN);
else
NoPlot(1);
답변 1
예스스탁
예스스탁 답변
2016-04-11 10:42:15
안녕하세요
예스스탁입니다.
식을 수정했습니다.
input : starttime(70000), xtime(60000);
var : tcond(false),cond1(false),cond2(false),TT(0),T1(0);
if stime == starttime or (stime > starttime and stime[1] < starttime) Then{
Tcond = true;
Condition1 = false;
Condition2 = false;
}
if stime == xtime or (stime > xtime and stime[1] < Xtime) Then{
Tcond = false;
}
var1 = ma(c,5);
var2 = ma(c,20);
var3 = Disparity(20);
cond1 = C > var1 and var1 > var2;
cond2 = C < var1 and var1 < var2;
if MarketPosition == 0 Then
TT = TotalTrades;
Else
TT = TotalTrades+1;
if crossup(var1,var2) or CrossDown(var1,var2) Then
T1 = TT;
if cond1 == true and cond1[1] == false then
Condition1 = true;
if cond2 == true and cond2[1] == false then
Condition2 = true;
if Tcond == true And
Condition1 == true and cond1 == true and
var1 > var1[1] and var2 > var2[1] Then{
if TT-T1 == 0 and var3 < 102 Then
buy();
#첫진입이 아닐때
if TT-T1 > 0 Then
buy();
}
if Tcond == true And
Condition2 == true and Cond2 == true and
var1 < var1[1] and var2 < var2[1] Then{
if TT-T1 == 0 and var3 > 98 Then
sell();
if TT-TT == 0 Then
sell();
}
즐거운 하루되세요
> 통큰베팅 님이 쓴 글입니다.
> 제목 : 글번호 47174번 재질문
> 안녕하세요?
글번호 47174번 재요청드립니다.
에스트레이더 강조에 탑재되어 있는 이격도 102이상, 98이하를 표시하고 작성해주신 스크립트를 적용해서 보면 필터링이 되지 않습니다.
다시 한번 더 검수 부탁드립니다.
#이격도 102 이상
Input : Period(20),OverBgt(102);
var1 = Disparity(Period);
if var1 >= OverBgt Then
PlotPaintBar(High, Low, "이격",MAGENTA);
else
NoPlot(1);
#이격도 98이하
Input : Period(20),OverSold(98);
var1 = Disparity(Period);
if var1 <= OverSold Then
PlotPaintBar(High, Low, "이격",LGREEN);
else
NoPlot(1);