커뮤니티
다음 수식 부탁드립니다.
2017-02-23 15:19:31
101
글번호 107189
안녕하세요.
다음 지표와 수식을 활용하여 2가지 수식 부탁드립니다.
감사합니다.
(1식)
다음 지표(수식)이 상방이고, 시가위 첫 양봉에서 매수후 종가 청산.
다음 지표(수식)이 하방이고, 시가밑 첫 음봉에서 매도후 종가 청산.
(2식)
다음 지표(수식)이 상방이고 시가위 첫 양봉에서 매수후, 다음날 시초가 기준으로 같은 조건이면 보유, 반대조건(하방/시가밑 음봉)이면 포지션 청산과 매도 체결.
다음 지표(수식)이 하방이고 시가밑 첫 음봉에서 매도후, 다음날 시초가 기준으로 같은 조건이면 보유, 반대조건(상방/시가위 양봉)이면 포지션 청산과 매수 체결.
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
if c > dayopen then{
if SK > SK[1] and SK[1] < Sk[2] Then
buy("b");
if SK < SK[1] and SK[1] > Sk[2] Then
ExitLong("bx");
}
if c < dayopen then{
if SK < SK[1] and SK[1] > Sk[2] Then
sell("s");
if SK > SK[1] and SK[1] < Sk[2] Then
ExitShort("sx");
}
-----------
지표식
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
plot1(Sk);
plot2(sd);
PlotBaseLine1(20);
PlotBaseLine2(80);
답변 1
예스스탁 예스스탁 답변
2017-02-23 16:56:23
안녕하세요
예스스탁입니다.
1.
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
if bdate != Bdate[1] Then
T = 0;
if T == 0 and MarketPosition == 0 and sk > sk[1] and C > O and C > dayopen Then {
T = 1;
buy();
}
if T == 0 and MarketPosition == 0 and sk < sk[1] and C < O and C < dayopen Then {
T = -1;
sell();
}
SetStopEndofday(152000);
2
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
if bdate != Bdate[1] Then{
T = 0;
if MarketPosition == -1 and sk > sk[1] and C > O and C > dayopen Then
buy();
if MarketPosition == 1 and sk < sk[1] and C < O and C < dayopen Then
sell();
}
if T == 0 and MarketPosition == 0 and sk > sk[1] and C > O and C > dayopen Then {
T = 1;
buy();
}
if T == 0 and MarketPosition == 0 and sk < sk[1] and C < O and C < dayopen Then {
T = -1;
sell();
}
즐거운 하루되세요
> sky78 님이 쓴 글입니다.
> 제목 : 다음 수식 부탁드립니다.
> 안녕하세요.
다음 지표와 수식을 활용하여 2가지 수식 부탁드립니다.
감사합니다.
(1식)
다음 지표(수식)이 상방이고, 시가위 첫 양봉에서 매수후 종가 청산.
다음 지표(수식)이 하방이고, 시가밑 첫 음봉에서 매도후 종가 청산.
(2식)
다음 지표(수식)이 상방이고 시가위 첫 양봉에서 매수후, 다음날 시초가 기준으로 같은 조건이면 보유, 반대조건(하방/시가밑 음봉)이면 포지션 청산과 매도 체결.
다음 지표(수식)이 하방이고 시가밑 첫 음봉에서 매도후, 다음날 시초가 기준으로 같은 조건이면 보유, 반대조건(상방/시가위 양봉)이면 포지션 청산과 매수 체결.
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
if c > dayopen then{
if SK > SK[1] and SK[1] < Sk[2] Then
buy("b");
if SK < SK[1] and SK[1] > Sk[2] Then
ExitLong("bx");
}
if c < dayopen then{
if SK < SK[1] and SK[1] > Sk[2] Then
sell("s");
if SK > SK[1] and SK[1] < Sk[2] Then
ExitShort("sx");
}
-----------
지표식
input : short(12),long(26),sto1(14),sto2(3),sto3(3);
var : HH(0),LL(0),FK(0),SK(0),SD(0),T(0);
var1 = MACD(short,long);
HH = Highest(var1, sto1);
LL = Lowest(var1, sto2);
FK = (var1 - LL) / (HH-LL) * 100;
SK = ema(FK,sto1);
SD = ema(SK,sto2);
plot1(Sk);
plot2(sd);
PlotBaseLine1(20);
PlotBaseLine2(80);
다음글